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 upEnum scrape error on Prometheus 2.5.0 #4951
Comments
This comment has been minimized.
This comment has been minimized.
|
Can you try with current master? This should already be fixed. |
This comment has been minimized.
This comment has been minimized.
|
Yes, it is working with master. Thanks! |
atisu
closed this
Dec 4, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
atisu commentedDec 4, 2018
Bug Report
What did you do?
Wrote an exporter using Python prometheus-client 0.4.2. My metrics are exported as Enums.
What did you expect to see?
Prometheus should be able to scrape the data. It works fine with Prometheus 2.4.3, 2.3.2, but fails on Prometheus 2.5.0. (If I export the data as Gauge it works as expected.)
What did you see instead? Under which circumstances?
On the /targets page the error is displayed:
Environment
The exporter produces this data (cut of at [...] as only additional similar metrics follow) when set to Enum (Prometheus 2.5.0 fails to scrape it):
When I export the data as Gauge, all versions are able to scrape the data:
promtool check metricsdoes not produce any errors when checking both on all versions (2.5.0, 2.4.3, 2.3.2).System information:
Tested on Linux: Linux 3.10.0-862.14.4.el7.x86_64 x86_64 / CentOS Linux release 7.6.1810 (Core)
Tested on MacOS: Darwin 17.7.0 x86_64
Prometheus version:
Prometheus 2.3.2 Linux/AMD64 -- works
prometheus, version 2.3.2 (branch: HEAD, revision:
71af5e2)
build user: root@5258e0bd9cc1
build date: 20180712-14:02:52
go version: go1.10.3
Prometheus 2.4.3 MacOS/AMD64 -- works
prometheus, version 2.4.3 (branch: HEAD, revision: 167a4b4)
build user: root@1e42b46043e9
build date: 20181004-08:46:10
go version: go1.11.1
Prometheus 2.5.0 Linux/AMD64 -- does not work
prometheus, version 2.5.0 (branch: HEAD, revision:
67dc912)
build user: root@578ab108d0b9
build date: 20181106-11:40:44
go version: go1.11.1
Prometheus 2.5.0 MacOS/AMD64 -- does not work
prometheus, version 2.5.0 (branch: HEAD, revision: 67dc912)
build user: root@578ab108d0b9
build date: 20181106-11:45:24
go version: go1.11.1
Prometheus configuration file: