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 upPrometheus get different time metrics #3686
Comments
This comment has been minimized.
This comment has been minimized.
|
Your metric_relabel_configs is likely removing uniqueness from your metrics. |
brian-brazil
closed this
Feb 2, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
lock
bot
locked and limited conversation to collaborators
Mar 22, 2019
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
andreyradygin commentedJan 15, 2018
What did you do?
I'm scraping metrics with Prometheus from netdata hosts with average function method.
What did you expect to see?
Common metrics and labels for them for each netdata host. There are multiple the same metrics with only instance label different.
What did you see instead? Under which circumstances?
I observe a strange thing - every request to build a graph, give me different set of time for metric points, therefore I've got different variants of graphic (every Execute in Prom web ui or Update in grafana web ui), because metrics values are little vary.
For example, we have:
netdata_system_cpu_percentage_average{chart="system.cpu",dimension=~".*",family="cpu",instance="$host",job="netdata-scrape"}
and first execute give me some set of metrics, one or them - 7:15:39GMT and have value of system.cpu guest = 0.40122... second time I've Execute, and getting total different set of times and point for 7:15:39GMT already disappear and I have 7:15:44GMT, or 7:15:27GMT with another values.
Here are three screenshots of three executes in a row, why are they so different?



Environment
I have netdata 1.9+prometheus 2.0 + grafana set up.
Collection method - average.
Scrape interval - 5 seconds.
Centos 7
System information:
Linux 3.10.0-514.26.2.el7.x86_64 x86_64
Prometheus version:
docker exec -it 3c2dab634358 prometheus --version
prometheus, version 2.0.0 (branch: HEAD, revision: 0a74f98)
build user: root@615b82cb36b6
build date: 20171108-07:11:59
go version: go1.9.2
Prometheus configuration file:
I've asked developer of netdata about this strange behavior:
netdata/netdata#3287