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
b0117f5c
Commit
b0117f5c
authored
Nov 06, 2015
by
Björn Rabenstein
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #256 from prometheus/beorn7/doc-improve
Improve storage optimization doc
parents
a9568dfa
79cfe2f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
storage.md
content/docs/operating/storage.md
+17
-0
No files found.
content/docs/operating/storage.md
View file @
b0117f5c
...
@@ -77,6 +77,23 @@ particularly useful for tuning the flags above:
...
@@ -77,6 +77,23 @@ particularly useful for tuning the flags above:
*
`prometheus_local_storage_memory_chunks`
: The current number of chunks 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.
*
`prometheus_local_storage_chunks_to_persist`
: The number of memory chunks that still need to be persisted to disk.
PromQL queries that involve a high number of time series will make heavy use of
the LevelDB backed indices. If you need to run queries of that kind, tweaking
the index cache sizes might be required. The following flags are relevant:
*
`-storage.local.index-cache-size.label-name-to-label-values`
: For regular
expression matching.
*
`-storage.local.index-cache-size.label-pair-to-fingerprints`
: Increase the
size if a large number of time series share the same label pair or name.
*
`-storage.local.index-cache-size.fingerprint-to-metric`
and
`-storage.local.index-cache-size.fingerprint-to-timerange`
: Increase the size
if you have a large number of archived time series, i.e. series that have not
received samples in a while but are still not old enough to be purged
completely.
You have to experiment with the flag values to find out what helps. If a query
touches 100,000+ time series, hundreds of MiB might be reasonable.
## 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