graylog-labs / graylog-plugin-metrics

Graylog output plugin for Graphite and Ganglia
Apache License 2.0
18 stars 6 forks source link

Allow flexible metric name construction #5

Closed henrikjohansen closed 8 years ago

henrikjohansen commented 8 years ago

Currently this plugin does not support using field content as part of the metric name that gets shipped to Graphite or Ganglia which in many cases is desirable ...

If a field called 'username' contains the value 'user_a' I would like to be able to create metrics such as 'authentication.user_a.failed' and increment that for every failed auth attempt.

Likewise for a field called 'src_ip' with the field content '1.2.3.4' I would like to be able to create a metric such as 'connections.1.2.3.4' and increment that for every failed auth attempt.

This could also be domain names, SSL certificates, port number, http error codes, etc

mariussturm commented 8 years ago

In v1.2.0 you can append field values to the metric name. Putting it at a random place in the metric name is a little bit complicated from UI perspective. But I guess something like 'authentication.failed.user_a' is also ok.

oba11 commented 8 years ago

@mariussturm Is it possible to append multiple multiple values in the metric name, tried field1.field2 but didnt work