Commit d5aa1931 authored by Richard Hartmann's avatar Richard Hartmann Committed by Brian Brazil

Instrumentation.md: Move label cardinality to here (#726)

This was https://github.com/prometheus/docs/pull/330
parent 5a2711c1
...@@ -190,8 +190,20 @@ that large, investigate alternate solutions such as reducing the number of ...@@ -190,8 +190,20 @@ that large, investigate alternate solutions such as reducing the number of
dimensions or moving the analysis away from monitoring and to a general-purpose dimensions or moving the analysis away from monitoring and to a general-purpose
processing system. processing system.
If you are unsure, start with no labels and add more To give you a better idea of the underlying numbers, let's look at node_exporter.
labels over time as concrete use cases arise. node_exporter exposes metrics for every mounted filesystem. Every node will have
in the tens of timeseries for, say, `node_filesystem_avail`. If you have
10,000 nodes, you will end up with roughly 100,000 timeseries for
`node_filesystem_avail`, which is fine for Prometheus to handle.
If you were to now add quota per user, you would quickly reach a double digit
number of millions with 10,000 users on 10,000 nodes. This is too much for the
current implementation of Prometheus. Even with smaller numbers, there's an
opportunity cost as you can't have other, potentially more useful metrics on
this machine any more.
If you are unsure, start with no labels and add more labels over time as
concrete use cases arise.
### Counter vs. gauge, summary vs. histogram ### Counter vs. gauge, summary vs. histogram
......
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