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 scrapes data for custom exporter with multiple identical HELP and TYPE when promtool fails #3832
Comments
This comment has been minimized.
This comment has been minimized.
|
I don't think your issue is related to the duplicates, though you should fix that too. It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided. |
brian-brazil
closed this
Feb 12, 2018
This comment has been minimized.
This comment has been minimized.
|
So prometheus not throwing an error on an illegal exporter data output is not an issue? |
This comment has been minimized.
This comment has been minimized.
|
This is as expected for Prometheus 2.x, it's a tradeoff for performance. |
This comment has been minimized.
This comment has been minimized.
|
Ahh ok cool |
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. |
JoeyG1973 commentedFeb 12, 2018
•
edited
What did you do?
Wrote a custom exporter for Spectrum Performance Center that puts out duplicate HELP and TYPE statements. The custom exporter is being fixed on our end but Prometheus scraped the data without issue. Eventually data stopped collecting even though Prometheus showed the scrape as just fine.
How the exporter is called:
http://localhost:8001/int/myrouter1Output:
Discovered the issue when promtool choked on the duplicate help and type.
What did you expect to see?
Prometheus should fail the scraper job and put something in the logs
What did you see instead? Under which circumstances?
Prometheus went along fat dumb and happy until at some point after a few days it decided to stop collecting data on myrouter1
Environment
System information:
Linux 3.10.0-693.5.2.el7.x86_64 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:
Prometheus configuration file: