juju prometheus metrics should include a build_info metric

Bug #1978006 reported by John A Meinel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
Fix Released
High
John A Meinel

Bug Description

We want an easy way to track what version is being run alongside all the other metrics that are being rendered.
That way you can see very clearly the pre and post values. (what version was this controller running during this outage from 2 days ago, etc)

Long term it might be nice to have aggregated 'what versions are agents running' but just having the versions for the controllers would be a big win.

Note the recommendations from Prometheus
https://prometheus.io/docs/instrumenting/writing_exporters/#target-labels-not-static-scraped-labels

The library itself has a NewBuildInfoCollector
https://github.com/prometheus/client_golang/blob/2c3d072cdd4dbd9dbbfe415cbd01851db8962289/prometheus/build_info_collector.go#L22

However it pretty much only grabs the golang version information, vs the other information that Juju exposes.

Revision history for this message
John A Meinel (jameinel) wrote :
John A Meinel (jameinel)
Changed in juju:
status: In Progress → Fix Committed
Changed in juju:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.