infowolfe.sd-agent
infowolfe.sd-agent
[Server Density] is a cloud-based monitoring service that helps you manage cloud resources, check websites/apps, and monitor server instances. Its agent, which is based on Python, is easy to set up, highly customizable, and can be extended using both paid plugins or custom ones. This [Ansible] role is designed to install the [Server Density] agent as part of your playbook.
Installation
This role needs Ansible version 1.5 or higher.
Requirements
Note: This role uses the 'uri' module, which requires httplib2. This will be installed automatically for you.
Role Variables
Right now, you need to set only two variables. This section might include more in the future.
---
sd_url: "https://example.serverdensity.io"
sd_api_token: "your_api_key"
sd_group: "{{ tag_class_foo }}" # optional definition of SD group
If you don't set sd_url
or sd_api_token
, the role will likely fail because no default values are provided.
Optional variables (with default values) are detailed in roles/infowolfe.sd-agent/templates/config.cfg.j2
.
---
- sd:
- loglevel: error
- plugin_dir: no default
- rundir: /run
- tmpdir: /tmp/sd-agent
- apache_status_url: ''
- apache_user: ''
- apache_pass: ''
- mongodb_server: ''
- mongodb_dbstats: ''
- mongodb_replset: ''
- mysql_server: ''
- mysql_user: ''
- mysql_pass: ''
- nginx_status_url: ''
- rabbitmq_status_url: http://localhost:55672/api/overview
- rabbitmq_user: guest
- rabbitmq_pass: guest
Dependencies
There are no dependencies.
Example Playbook
- hosts: servers
roles:
- { role: infowolfe.sd-agent }
License
BSD
Author Information
You can contact me on freenode (#ansible), on Twitter, Google Hangouts (formerly Google Talk), and through issues/pull requests here on [GitHub]. If you're clever, you'll notice I also have a Gmail email address.
ServerDensity python agent install
ansible-galaxy install infowolfe.sd-agent