Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
docs
Commits
d5aa1931
Commit
d5aa1931
authored
Aug 28, 2017
by
Richard Hartmann
Committed by
Brian Brazil
Aug 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Instrumentation.md: Move label cardinality to here (#726)
This was
https://github.com/prometheus/docs/pull/330
parent
5a2711c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
instrumentation.md
content/docs/practices/instrumentation.md
+14
-2
No files found.
content/docs/practices/instrumentation.md
View file @
d5aa1931
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment