graylog-labs / graylog-plugin-metrics-reporter

Graylog Metrics Reporter Plugins

Home Page:https://www.graylog.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`metrics_datadog_enabled` filter seems to be ignored

kishorenc opened this issue · comments

Re-posting this forum post as an issue here:

We’re currently using the Datadog metrics reporter. It’s working fine but we wanted to filter the number of metrics it sends to Graylog. I tried doing that by adding the following line to Graylog config:

metrics_datadog_include_metrics = org.graylog2.shared.journal.KafkaJournal.uncommittedMessages

However, when I added this line and restarted the Graylog server, the filtering did not kick in: all Graylog metrics were sent to Datadog, while I expected only uncommittedMessages to be sent.

I tried this on one more host with the same result. Also, tried with a wildcard pattern like org.graylog2.shared.* -- still all metrics were being sent.

I’ve only 2 other metrics related configuration:

metrics_datadog_enabled = true
metrics_datadog_transport = UDP

I am using the following JAR which does seem to contain the code required for metric filtering: https://github.com/graylog-labs/graylog-plugin-metrics-reporter/releases/download/2.4.0-beta.3/metrics-reporter-datadog-2.4.0-beta.3.jar 1

This issue does not seem to be confined to just datadog. Even with statsd, filtering of metrics does not happen.

This turned out to be an issue with our metrics collector. Closing the issue. Sorry for the false alarm.