Add monitoring of redis

add monitoring of redis

Change-Id: Ic6becef0c528083d48458c8dcaa10a2ca6c238a9
This commit is contained in:
pangliye 2018-11-08 14:17:51 +08:00
parent 0e7697505b
commit daf5a637a3
1 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,10 @@
username = "{{ outward_rabbitmq_user }}"
password = "{{ outward_rabbitmq_password }}"
{% endif %}
{% if inventory_hostname in groups['redis'] and enable_redis | bool %}
[[inputs.redis]]
servers = ["{{ tcp://:{{ redis_master_password }}@{{ api_interface_address }}:{{ redis_port }}"]
{% endif %}
{% if inventory_hostname in groups['mariadb'] and (enable_mariadb or enable_external_mariadb_load_balancer) | bool %}
[[inputs.mysql]]
servers = ["{{ database_user }}:{{ database_password }}@{{ mariadb_proto }}({{ api_interface_address }}:{{ database_port }})/"]