Commit 615c1598 authored by Björn Rabenstein's avatar Björn Rabenstein

Merge pull request #101 from prometheus/beorn7/doc-improve

Improve wording in the naming section even more.
parents ffac51f0 6bc71824
...@@ -26,10 +26,13 @@ A metric name... ...@@ -26,10 +26,13 @@ A metric name...
* <code><b>http</b>\_request\_duration\_microseconds</code> * <code><b>http</b>\_request\_duration\_microseconds</code>
(for all HTTP requests) (for all HTTP requests)
* ...must have a single unit (i.e. do not mix seconds with milliseconds). * ...must have a single unit (i.e. do not mix seconds with milliseconds).
* ...should have a suffix describing the unit. * ...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>api\_http\_request\_latency\_<b>milliseconds</b></code> * <code>http\_request\_duration\_<b>microseconds</b></code>
* <code>node\_memory\_usage\_<b>bytes</b></code> * <code>node\_memory\_usage\_<b>bytes</b></code>
* <code>api\_http\_requests\_<b>total</b></code> (for an accumulating count) * <code>http\_requests\_<b>total</b></code>
(for a unit-less accumulating count)
* <code>process\_cpu\_<b>seconds\_total</b></code>
(for an accumulating count with unit)
* ...should represent the same logical thing-being-measured across all label * ...should represent the same logical thing-being-measured across all label
dimensions. dimensions.
* request duration * request duration
......
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