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
19ded564
Commit
19ded564
authored
Jun 29, 2015
by
Julius Volz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update and improve storage docs.
parent
f52f892c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
storage.md
content/docs/operating/storage.md
+8
-1
No files found.
content/docs/operating/storage.md
View file @
19ded564
...
@@ -45,7 +45,7 @@ index via the following flags:
...
@@ -45,7 +45,7 @@ index via the following flags:
Prometheus stores its on-disk time series data under the directory
Prometheus stores its on-disk time series data under the directory
specified by the flag
`storage.local.path`
. The default path is
specified by the flag
`storage.local.path`
. The default path is
`
/tmp/metrics
`
, which is good to try something out quickly but most
`
./data
`
, which is good to try something out quickly but most
likely not what you want for actual operations. The flag
likely not what you want for actual operations. The flag
`storage.local.retention`
allows you to configure the retention time
`storage.local.retention`
allows you to configure the retention time
for samples. Adjust it to your needs and your available disk space.
for samples. Adjust it to your needs and your available disk space.
...
@@ -69,6 +69,13 @@ of thumb, keep it somewhere between 50% and 100% of the
...
@@ -69,6 +69,13 @@ of thumb, keep it somewhere between 50% and 100% of the
is larger checkpoints. The consequences of a value too low are much
is larger checkpoints. The consequences of a value too low are much
more serious.
more serious.
Out of the metrics that Prometheus exposes about itself, the following are
particularly useful for tuning the flags above:
*
`prometheus_local_storage_memory_series`
: The current number of series held in memory.
*
`prometheus_local_storage_memory_chunks`
: The current number of chunks held in memory.
*
`prometheus_local_storage_chunks_to_persist`
: The number of memory chunks that still need to be persisted to disk.
## Crash recovery
## Crash recovery
Prometheus saves chunks to disk as soon as possible after they are
Prometheus saves chunks to disk as soon as possible after they are
...
...
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