telegraf configuration for remote_agent
Change-Id: I8ce7240d23b945402f82279791f8eea31ddf2197
diff --git a/ceph/meta/telegraf.yml b/ceph/meta/telegraf.yml
index 72cfe4c..606960d 100644
--- a/ceph/meta/telegraf.yml
+++ b/ceph/meta/telegraf.yml
@@ -63,6 +63,15 @@
gather_cluster_stats: false
gather_pool_loads: false
{%- endif %}
+{%- elif monitoring.get('cluster_stats').get('enabled') %}
+remote_agent:
+ input:
+ ceph:
+ template: ceph/files/telegraf.conf
+ ceph_user: client.{{ monitoring.cluster_stats.ceph_user| default('admin') }}
+ gather_admin_socket_stats: false
+ gather_cluster_stats: true
+ gather_pool_loads: true
{%- endif %}
{%- if osd is defined and osd.get('enabled') %}