rabbitmq / rabbitmq-prometheus

A minimalistic Prometheus exporter of core RabbitMQ metrics
Other
145 stars 109 forks source link

prometheus_rabbitmq_core_metrics_collector: Expose product info #49

Closed dumbbell closed 4 years ago

dumbbell commented 4 years ago

They are the product name & version. They are added at the beginning of rabbitmq_build_info if they are set. If they are not, the content of rabbitmq_build_info is the same as before.

Here is an example:

The value of rabbitmq_build_info with a standard RabbitMQ server:

rabbitmq_build_info{rabbitmq_version="3.8.0+rc.1.336.ge61c608",prometheus_plugin_version="3.9.0-alpha.314-2020.06.17",prometheus_client_version="4.6.0",erlang_version="21.3.8.13"} 1

The value if the product version is overriden and set to 2020.06:

rabbitmq_build_info{product_version="2020.06",rabbitmq_version="3.8.0+rc.1.336.ge61c608",prometheus_plugin_version="3.9.0-alpha.314-2020.06.17",prometheus_client_version="4.6.0",erlang_version="21.3.8.13"} 1
dumbbell commented 4 years ago

Thank you for the tests!

Yes, we can backport the branch to 3.8.x once the entire CI is happy.

dumbbell commented 4 years ago

Backported to 3.8.x.