info metric
A gauge whose value is always 1, used only to carry text such as a version string in its labels.
In more detail
Strings cannot be metric values, so build details are attached as labels on a constant series. You can join it to other metrics in queries to see which version produced them.
Example
checkout_build_info{version="1.4.0"} 1Related terms
- gauge — A metric that can go up and down and describes a level right now, such as queue depth, memory in use or open connections.
- metric label — A name and value attached to a metric, such as status="200", that splits one metric into separate series you can compare.
Taught in
- The Prometheus Exposition Format — Full-Stack Observability: Metrics, Tracing & Logging
- Fifteen Lines And No Answer: Aggregating Over Labels — Prometheus Certified Associate (PCA) Exam Prep
- Is The New Version Worse? Binary Operators And Matching — Prometheus Certified Associate (PCA) Exam Prep
- Thirty Second Checkouts Nobody Saw: Client Libraries — Prometheus Certified Associate (PCA) Exam Prep
- Milliseconds Versus Seconds: Naming Metrics And Labels — Prometheus Certified Associate (PCA) Exam Prep
- Instrumentation Sprint: Sixteen Calls On Code And Exporters — Prometheus Certified Associate (PCA) Exam Prep