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"} 1

Related terms

Taught in

References

Certification courses