Skip to content

Commit ece7e32

Browse files
cdanisSuperQ
authored andcommitted
naming: add mention of version pseudo-metrics and _info suffix (prometheus#1379)
The _info suffix is used in the Prometheus server itself for this purpose, so this seems to be something of an informal standard; let's make it formal. Signed-off-by: Chris Danis <cdanis@gmail.com>
1 parent 5724900 commit ece7e32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/docs/practices/naming.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ A metric name...
3535
(for a unit-less accumulating count)
3636
* <code>process\_cpu\_<b>seconds\_total</b></code>
3737
(for an accumulating count with unit)
38+
* <code>foobar_build<b>\_info</b></code>
39+
(for a pseudo-metric that provides [metadata](https://www.robustperception.io/exposing-the-software-version-to-prometheus) about the running binary)
3840
* ...should represent the same logical thing-being-measured across all label
3941
dimensions.
4042
* request duration

0 commit comments

Comments
 (0)