Commit d1155364 authored by Julius Volz's avatar Julius Volz

Add base units requirement to naming best practices doc

parent 63d90025
...@@ -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