fluent-plugin-prometheus icon indicating copy to clipboard operation
fluent-plugin-prometheus copied to clipboard

fluentd_build_info

Open kfdm opened this issue 7 years ago • 5 comments

For many exporters, there's a bit of metadata that is added to the metrics. For example from Prometheus itself

# HELP prometheus_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which prometheus was built.
# TYPE prometheus_build_info gauge
prometheus_build_info{branch="HEAD",goversion="go1.9.1",revision="3a7c51ab70fc7615cd318204d3aa7c078b7c5b20",version="1.8.1"} 1

or Grafana

# HELP grafana_info Information about the Grafana
# TYPE grafana_info gauge
grafana_info{version="4.6.1"} 1

Would you accept a pull request to add similar metadata to this plugin? I was thinking something like

fluentd_build_info{rubyversion="??", tdagentversion="??"} 1

Would be useful to help see what was deployed

kfdm avatar Nov 14 '17 01:11 kfdm

fluentdversion is better than tdagentversion. Hard to get tdagentversion from inside fluentd.

repeatedly avatar Nov 14 '17 21:11 repeatedly

Would you accept a pull request to add similar metadata to this plugin?

yes, I appreciate it.

kazegusuri avatar Nov 18 '17 04:11 kazegusuri

Sounds good! I'll try to get you a PR in the next few weeks :)

kfdm avatar Nov 20 '17 23:11 kfdm

@kazegusuri hey. any progress here?

Jasstkn avatar Jun 17 '22 18:06 Jasstkn

Hi, I'd like to tackle this, but... I'm completely new at Ruby and don't understand the codebase at all. Could someone with more knowledge point me to where I should look / get inspiration from?

colinleroy avatar Mar 28 '24 10:03 colinleroy