Comments (6)
Thanks for reporting this. /flags
returns the flags the user has set and the defaults as known to kingpin
(the flags parser we use)
prometheus/cmd/prometheus/main.go
Lines 806 to 813 in 76b0318
For --storage.tsdb.retention.time
, the default value we inform kingpin
about is indeed 0s
:
prometheus/cmd/prometheus/main.go
Lines 345 to 346 in 76b0318
as the zero value of
prometheus/cmd/prometheus/main.go
Line 251 in 76b0318
15d
is only used when neither --storage.tsdb.retention.time
nor --storage.tsdb.retention.size
is set. It's done here:
prometheus/cmd/prometheus/main.go
Lines 571 to 574 in 76b0318
outside of kingpin
(as it doesnโt seem to support such advanced dependencies/conditions)
What we can do, is make https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects as explicit as the description in
prometheus/cmd/prometheus/main.go
Line 251 in 76b0318
/flags
page about how we consider the defaults.
We could set newFlagRetentionDuration
as well to defaultRetentionDuration
in
prometheus/cmd/prometheus/main.go
Lines 571 to 574 in 76b0318
kingpin
know about the "real/final" default, but I don't think it's a good idea.from prometheus.
Thanks a lot for the quick and detailed answer. The reason I noticed this behavior was because the cloudflare pint tool was complaining about my retention time being 0s and thus being shorter than some of the ranges that I was querying (like 2m). After that I was a bit confused whats going on because when I was running a query it seemed like that there was a history kept but I was not able to validate that it was the 15days claimed or just the cleanup running infrequently. After checking I just noticed that the /status
endpoint shows me the 15d retention time when I do not use the flags which is kind of what I was looking for. Noting it under the operational aspects probably would also helpful I think.
from prometheus.
Let's start by making https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects as clera as
prometheus/cmd/prometheus/main.go
Lines 345 to 346 in 76b0318
from prometheus.
Let's start by making https://prometheus.io/docs/prometheus/latest/storage/#operational-aspects as clera as
prometheus/cmd/prometheus/main.go
Lines 345 to 346 in 76b0318
then.
Hi @machine424,
I have updated the doc as mentioned by u in the PR #13982
I'd like to further work on this task. Will work on this and let u know
from prometheus.
/assign
from prometheus.
Related Issues (20)
- Some aggregations and functions produce incorrect results for native histograms HOT 9
- docker image does not recognise timezone appropriately HOT 1
- OOM crashloop auto-recovery HOT 1
- discovery(scaleway): instances without private IPs are not added to the target lists
- protocol error: received DATA after END_STREAM HOT 3
- Prometheus does not recognize `HELP` and `TYPE` for OpenMetrics counters HOT 3
- Idea to improve performance after missing a cache during scrape processing
- Promethues counter decreases by 1 for some time series data HOT 7
- prometheus is very slow for query and almost unavailable HOT 3
- Persist alert 'keep_firing_for' state across restarts HOT 6
- --enable-feature: Consider removing no-default-scrape-port HOT 1
- promtool syntax detects errors HOT 1
- Please sign your releases HOT 2
- Prometheus too old sample issue HOT 1
- docs: Remove the section about remote read JSON responses - it only supports proto response or errors HOT 2
- Corrupting data written to remote storage in case sample_age_limit is hit HOT 2
- Implement support for dots in metric and label names. HOT 1
- Do the remote-write support the recording rule data? HOT 1
- Unable to add namespace in nomad_sd_configs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus.