Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upscrape: configurable startTimeMargin #4759
Comments
This comment has been minimized.
This comment has been minimized.
|
maxAheadTime is from now, not the TSDB's last ingested timestamp. It only prevents you ingesting data from the future, as a safeguard. |
thomschke
changed the title
scrape: configurable maxAheadTime
scrape: configurable startTimeMargin
Oct 19, 2018
This comment has been minimized.
This comment has been minimized.
|
Sure, the lower bound of TSDB (startTimeMargin) is the problem - sorry :-) prometheus/cmd/prometheus/main.go Lines 574 to 575 in 3241c52 prometheus/storage/tsdb/tsdb.go Line 162 in 3241c52 |
This comment has been minimized.
This comment has been minimized.
|
A workaround is by increasing |
This comment has been minimized.
This comment has been minimized.
|
Hi @brian-brazil, can you explain a little bit the drawbacks of increasing prometheus/cmd/prometheus/main.go Lines 156 to 157 in f34b260 |
thomschke commentedOct 18, 2018
Proposal
Use case. Why is this important?
Sometimes I'm using Prom/Grafana to persist/visualize historical timeseries data
with the help of a stateful metric-exporter that provide data step-by-step (include timestamp)
For this use case I have to increase "maxAheadTime"
but in the moment it's a fixed value of 10s.
prometheus/scrape/scrape.go
Line 136 in 105ed5c