From 54e30f7ef31e3d92a04b597e3a90c783d5437aa7 Mon Sep 17 00:00:00 2001 From: Ildar Svetlov Date: Wed, 31 Jan 2018 10:55:31 +0400 Subject: [PATCH] Exclude every queue measurement gathering Since https://github.com/influxdata/telegraf/pull/3702 was merged we can skip `rabbitmq_queue` measurement. We don't have alerts/dashboards based on this metrics. Let's disable gathering. PROD-Related: PROD-17026 Change-Id: I8da572741918506a139f02d92f04aec08934068d --- rabbitmq/files/telegraf.conf | 6 ++++++ rabbitmq/meta/telegraf.yml | 1 + 2 files changed, 7 insertions(+) diff --git a/rabbitmq/files/telegraf.conf b/rabbitmq/files/telegraf.conf index add724b..79bf250 100644 --- a/rabbitmq/files/telegraf.conf +++ b/rabbitmq/files/telegraf.conf @@ -8,4 +8,10 @@ {%- if values.queues is defined %} queues = {{ values.queues|json }} {%- endif %} +{%- if values.queue_name_include is defined %} + queue_name_include = {{ values.queue_name_include|json }} +{%- endif %} +{%- if values.queue_name_exclude is defined %} + queue_name_exclude = {{ values.queue_name_exclude|json }} +{%- endif %} {%- include 'telegraf/files/input/_tags.conf' %} diff --git a/rabbitmq/meta/telegraf.yml b/rabbitmq/meta/telegraf.yml index 6c0d9d7..66ea8f3 100644 --- a/rabbitmq/meta/telegraf.yml +++ b/rabbitmq/meta/telegraf.yml @@ -9,6 +9,7 @@ agent: password: >- {{ server.admin.password }} nodes: [ "rabbit@{{ grains.host }}" ] + queue_name_exclude: [ "*" ] tagexclude: [ "node", "url" ] tagdrop: queue: [ "*_fanout_*", "reply_*" ]