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
74f3e67b
Commit
74f3e67b
authored
May 22, 2015
by
Björn Rabenstein
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #95 from prometheus/beorn7/doc-improve
Two minor docs improvements.
parents
a9112d71
745ac28c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
11 deletions
+28
-11
install.md
content/docs/introduction/install.md
+11
-2
naming.md
content/docs/practices/naming.md
+17
-9
No files found.
content/docs/introduction/install.md
View file @
74f3e67b
...
...
@@ -13,11 +13,20 @@ GitHub repositories. For example, for the main Prometheus server, binary
releases are available at
[
https://github.com/prometheus/prometheus/releases
](
https://github.com/prometheus/prometheus/releases
)
.
We also plan on providing packages for common Linux distributions so
on.
Debian and RPM packages are being worked
on.
## From source
For building Prometheus from source, see the relevant
[
`README.md` section
](
https://github.com/prometheus/prometheus/blob/master/README.md#use-make
)
.
For building Prometheus from source, see the relevant
[
`README.md`
section](https://github.com/prometheus/prometheus/blob/master/README.md#use-make).
Note that this documentation (as published on
[
prometheus.io
](
http://prometheus.io
)
) refers to the latest production
release. The head of the
[
prometheus/docs
](
https://github.com/prometheus/docs
)
GitHub
repository refers to the (possibly not yet released) head of the
[
prometheus/prometheus
](
https://github.com/prometheus/prometheus
)
(
and
other) repositories.
## Using Docker
...
...
content/docs/practices/naming.md
View file @
74f3e67b
...
...
@@ -6,24 +6,32 @@ sort_rank: 1
# Metric and label naming
The metric and label conventions presented in this document are not required
for using Prometheus, but can serve as both a style-guide and collection of
for using Prometheus, but can serve as both a style-guide and
a
collection of
best practices. Individual organizations may want to approach e.g. naming
conventions differently.
## Metric names
A metric name
:
A metric name
...
*
should have a (single-word) application prefix relevant to the containing Prometheus domain
*
...should have a (single-word) application prefix relevant to the domain the
metric belongs to. The prefix is sometimes referred to as
`namespace`
by
client libraries. For metrics specific to an application, the prefix is
usually the application name itself. Sometimes, however, metrics are more
generic, like standardized metrics exported by client libraries. Examples:
*
<code><b>
prometheus
</b>
\_
notifications
\_
total
</code>
*
<code><b>
indexer
</b>
\_
requests
\_
latencies
\_
milliseconds
</code>
*
<code><b>
processor
</b>
\_
requests
\_
total
</code>
*
must have a single unit (i.e. do not mix seconds with milliseconds)
*
should have a units suffix
(specific to the Prometheus server)
*
<code><b>
process
</b>
\_
cpu
\_
seconds
\_
total
</code>
(exported by many client libraries)
*
<code><b>
http
</b>
\_
request
\_
duration
\_
microseconds
</code>
(for all HTTP requests)
*
...must have a single unit (i.e. do not mix seconds with milliseconds).
*
...should have a suffix describing the unit.
*
<code>
api
\_
http
\_
request
\_
latency
\_
<b>
milliseconds
</b></code>
*
<code>
node
\_
memory
\_
usage
\_
<b>
bytes
</b></code>
*
<code>
api
\_
http
\_
requests
\_
<b>
total
</b></code>
(for an accumulating count)
*
should represent the same logical thing-being-measured across all label dimensions
*
...should represent the same logical thing-being-measured across all label
dimensions.
*
request duration
*
bytes of data transfer
*
instantaneous resource usage as a percentage
...
...
@@ -44,7 +52,7 @@ Use labels to differentiate the characteristics of the thing that is being measu
Do not put the label names in the metric name, as this introduces redundancy
and will cause confusion if the respective labels are aggregated away.
CAUTION:
<b>
CAUTION:
</b>
Remember that every unique key-value label pair
CAUTION:
**CAUTION:**
Remember that every unique key-value label pair
represents a new time series, which can dramatically increase the amount of
data stored. Do not use labels to store dimensions with high cardinality (many
different label values), such as user IDs, email addresses, or other unbounded
...
...
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