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 upData loss in grafana dashboard on prometheus safe reload #4519
Comments
This comment has been minimized.
This comment has been minimized.
|
edited the description to fix the formatting This looks similar to #4301. How many targets are they in Prometheus? Can you measure how long it takes for Prometheus to reload (see #4301 (comment))? |
simonpasquier
added
the
kind/more-info-needed
label
Aug 21, 2018
sipian
referenced this issue
Aug 22, 2018
Open
prometheus drop many metrics sample after restart #3632
simonpasquier
added
the
component/scraping
label
Aug 23, 2018
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier targets is only one. as mentioned in the prometheys.yaml config. |
This comment has been minimized.
This comment has been minimized.
|
Please run with |
This comment has been minimized.
This comment has been minimized.
Command/opt/prometheus/prometheus-2.3/prometheus --web.enable-admin-api --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/libprometheus/db --web.enable-lifecycle --web.console.templates=/opt/prometheus/prometheus-2.3/consoles --web.console.libraries=/opt/prometheus/prometheus-2.3/console_libraries --log.level=debug Log outputlevel=info ts=2018-08-25T03:08:00.18181658Z caller=main.go:222 msg="Starting Prometheus" version="(version=2.3.2, branch=HEAD, revision=71af5e29e815795e9dd14742ee7725682fa14b7b)" |
This comment has been minimized.
This comment has been minimized.
|
@ijonsnow I'd like to see more logs with |
This comment has been minimized.
This comment has been minimized.
Below are the log lines found in prometheus.log$grep "Loading configuration file" prometheus/prometheus.log |
This comment has been minimized.
This comment has been minimized.
|
Can you paste the full logs on the pastebin site of your choice? This will be easier for troubleshooting. |
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier Prometheus.yml file
Below are the loglines on restart of Prometheus service.
Note: |
This comment has been minimized.
This comment has been minimized.
|
Reload and restart are different operations, mostly because restart involves a sanity check of the TSDB that can take some time to complete and scraping won't start before the TSDB is ready. And #4519 (comment) is a restart so gaps in the metric collection wouldn't be unexpected. Lets go back to your initial report and please provide the full logs for the system on which you had the issue initially. |
ijonsnow commentedAug 20, 2018
•
edited by simonpasquier
Proposal
Use case. Why is this important?
We find data point loss in grafana dashboards and prometheus dashboard after normal reload of the prometheus.
Note: we did not have this issue in 1.7 or 1.8 prometheus versions.
Nice to have' is not a good use case :)
Bug Report
What did you do?
On reloading Prometheus with below approaches. Data loss in Prometheus dashboard / Grafana
What did you expect to see?
Reload of prometheus with new configs or rules to be reflected.
What did you see instead? Under which circumstances?
Data loss point in grafana.
Environment
Ubuntu envirnoment 14.04
System information:
$uname -srm
Linux 3.13.0-135-generic x86_64
Prometheus version:
prometheus, version 2.1.0 (branch: HEAD, revision: 85f23d8)
build user: root@6e784304d3ff
build date: 20180119-12:01:23
go version: go1.9.2
Alertmanager version:
insert output of
alertmanager --versionhere (if relevant to the issue)Prometheus configuration file:
Alertmanager configuration file:
NA , since its prometheus related query
Logs:
Am experiencing the weird issue after Prometheus upgrade from 1.7 to 2.1 also tried on 2.3.
Still issue is being experienced.