Rheinwerk.rs_collector
rs-collector
This roles installs and configures rs-collector, the Rust based, scollector compatible telemetry collector for Bosun.
Requirements
None.
Role Variables
There are three variables that drive this role: _rs_collector, RW_APT_CACHE_UPDATE, and RW_ENABLE_DOWNLOADS. _rs_collector is a map that contains all configuration and settings for this role. RW_APT_CACHE_UPDATE and RW_ENABLE_DOWNLOADS may be specified as extra variables on invocation of Ansible in order to force apt-get update or install the latest version of rs-configuration, respectively. Please see defaults/main.yml for details.
Dependencies
None.
Example Playbook
The general contract of this role is to take the variables map _rs_collector from defaults/main.yml as a template for your configuration and pass that configuration as a parameter to this role.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: <HOST THAT IS ALLOWED TO MANAGE MYSQL>
var:
RW_APT_CACHE_UPDATE: yes
RS_COLLECTOR:
use_default_config: yes
server:
ip: localhost
port: 8070
hostname: "{{ ansible_hostname }}"
domain:
hostgroup: my-group
common:
tags:
one_tag: one_value
galera:
- user: root
password: toor
socket: /var/lib/mysql.sock
jvm:
- command: regex
name: "assigned name"
hasipaddr:
ipv4:
- "127.0.0.1"
- "192.168.205.7"
mongo:
- name: replicaset01
host: localhost
port: 27017
postfix: []
extra_lines: |
# Mööp
roles:
- { role: rs_collector, tags: [ 'rs_collector' ], _rs_collector: "{{ RS_COLLECTOR }}" }
License
Please see LICENSE.
Author Information
Original author is Lukas Pustina as member of the Rheinwerk project.
Installs and configures rs-collector, the Rust based, scollector compatible telemetry collector for Bosun.
ansible-galaxy install Rheinwerk.rs_collector