Commit a7ff2252 authored by Brian Brazil's avatar Brian Brazil Committed by GitHub

Merge pull request #574 from prometheus/base-units

Add base units requirement to naming best practices doc
parents e5dd9ac8 d1155364
...@@ -26,6 +26,7 @@ A metric name... ...@@ -26,6 +26,7 @@ A metric name...
* <code><b>http</b>\_request\_duration\_seconds</code> * <code><b>http</b>\_request\_duration\_seconds</code>
(for all HTTP requests) (for all HTTP requests)
* ...must have a single unit (i.e. do not mix seconds with milliseconds, or seconds with bytes). * ...must have a single unit (i.e. do not mix seconds with milliseconds, or seconds with bytes).
* ...should use base units (e.g. seconds, bytes, meters - not milliseconds, megabytes, kilometers).
* ...should have a suffix describing the unit, in plural form. Note that an accumulating count has `total` as a suffix, in addition to the unit if applicable. * ...should have a suffix describing the unit, in plural form. Note that an accumulating count has `total` as a suffix, in addition to the unit if applicable.
* <code>http\_request\_duration\_<b>seconds</b></code> * <code>http\_request\_duration\_<b>seconds</b></code>
* <code>node\_memory\_usage\_<b>bytes</b></code> * <code>node\_memory\_usage\_<b>bytes</b></code>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment