Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus_client: Internal Server Error does not log anything #2868

Closed
mmariani opened this issue May 30, 2017 · 5 comments
Closed

prometheus_client: Internal Server Error does not log anything #2868

mmariani opened this issue May 30, 2017 · 5 comments

Comments

@mmariani
Copy link

Bug report

With the Prometheus_client plugin, I get 500 Internal Server Error for some reason.
I don't have any information to debug it (even with agent.debug = true).

Relevant telegraf.conf:

[[outputs.prometheus_client]]
listen = ":9126"
expiration_interval = "60s"

System info:

Telegraf 1.3.0, Linux

Steps to reproduce:

wget http://localhost:9126/metrics
Connecting to localhost:9126 (127.0.0.1:9126)
wget: server returned error: HTTP/1.1 500 Internal Server Error

Expected behavior:

See something in stderr

Actual behavior:

Nothing gets logged

@danielnelson
Copy link
Contributor

I wonder if it is caused by a particular input, can you try enabling only a single "system" input and see if you still receive a 500 error?

@mmariani
Copy link
Author

It is indeed caused by docker input, but these metrics are exported to influxdb without issues.

@danielnelson
Copy link
Contributor

This might be a duplicate of #2822, is there anything in the response body?

@mmariani
Copy link
Author

mmariani commented Jun 1, 2017

Sorry I've been careless, I used wget at the beginning which did not print a response in case of error. With curl I had the complete response, and a lot of " label dimensions inconsistent with previously collected metrics"

@danielnelson
Copy link
Contributor

I'm going to close this one, will track over on the other issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants