graylog-plugin-metrics-reporter icon indicating copy to clipboard operation
graylog-plugin-metrics-reporter copied to clipboard

Support Tags/Labels

Open jalogisch opened this issue 7 years ago • 3 comments

To make the handling of metrics easier it would be nice to have the option to use tags/lables in the metrics. This way it would be easier to work with Grafana and the data given by Graylog.

Current Metrics

org_graylog2_inputs_extractors_GrokExtractor_grok_0e0ac0c0_e7c8_11e6_846a_0050569e5d86_executionTime{quantile="0.5",} 0.0
org_graylog2_inputs_extractors_GrokExtractor_grok_2834e930_1c26_11e6_90bc_0050569e5d86_executionTime{quantile="0.5",} 0.0

Requested Metrics

org_graylog2_inputs_extractors_GrokExtractor_grok_executionTime{quantile="0.5",id="0e0ac0c0_e7c8_11e6_846a_0050569e5d86"} 0.0
org_graylog2_inputs_extractors_GrokExtractor_grok_executionTime{quantile="0.5",id="2834e930_1c26_11e6_90bc_0050569e5d86"} 0.0

jalogisch avatar May 11 '18 10:05 jalogisch

@jalogisch The metrics library used by Graylog doesn't support tags and not every metrics store (such as Graphite or statsd) supports tags either.

joschi avatar May 11 '18 11:05 joschi

Quick update for anyone looking into this:

  • dropwizard supports tags from version 4.1.8 onwards (changelog).
  • Graylog 4.0.1 uses dropwizard 4.1.9 (pom.xml). So technically it should already be possible.

Nevertheless, the approach in https://github.com/Graylog2/graylog2-server/issues/9914 looks a lot more promissing.

l0calhost avatar Jan 18 '21 08:01 l0calhost

  • dropwizard supports tags from version 4.1.8 onwards (changelog).

That's only a special case for the Graphite Metrics Reporter.

Tags for metrics will be supported in Dropwizard Metrics 5.x, though. There's no scheduled date for Dropwizard Metrics 5.0.0 GA yet.

joschi avatar Jan 18 '21 08:01 joschi