Description
What is the problem?
Currently our metric_metadata.json - used to describe the prometheus metrics we expose - is handwritten. This was done in the interests of time. It leaves us open to forgetting to update it if more metrics are added however.
What is the solution?
Autogenerate this file. The metrics definitions in statistician/statistician.go already have most of the information we need. It should be possible to write a Go script that imports them and generates the file.
Attachments
Issue Links
- relates to
-
MB-55402 Improve Metrics Definitions: Backup Service
- Closed
For Gerrit Dashboard: MB-56327 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
189283,2 | MB-55402 Add metric_metadata.json | neo | cbbs | Status: MERGED | +2 | +1 |
189591,3 | MB-56327 Autogenerate metrics_metadata.json | master | cbbs | Status: MERGED | +2 | +1 |
190162,3 | MB-56327 Fix mispellings in metric generation | master | cbbs | Status: MERGED | +2 | +1 |