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 2.2.1 marathon_sd_config doesn't work properly #4048
Comments
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 I have analyzed and updated the issue. I think this is a bug. Because this configuration works perfectly before upgraded to 1xx to 2xx. Could you please re-open issue and could you please check this error? Thanks, |
I see no indication here yet of a bug in Prometheus. What evidence do you have that the issue is with Prometheus rather than your setup? |
I wrote my prometheus config for marathon_sd_config and prometheus error log in the issue. Did you see any syntax error or anything? If you see an error please let me, I'll appricate this. Also the configuration works before upgraded 1xx to 2.2.1.. I searched error on google but I can't find anything.. So if it's a bug, ok. If not, could you please help me? :) Thanks, |
I've never used Marathon, so I can't help you debug this. I would guess that you're hitting a HTML page where JSON is expected. |
I have checked before and now. So the marathon job request "http://marathon.url/v2/apps/?embed=apps.tasks" url and this url is JSON. |
@hbceylan I could help debug. Do you have any more of an error? Does your marathon require auth? |
Hi @adamdecaf , I'm getting only err="invalid character '<' looking for beginning of value" error in prometheus logs. Marathon doesn't have any authentication. BTW, I'm using dockerize prometheus version 2.2.1 |
@hbceylan What marathon version are you on? Just to confirm, it sounds like you can load |
I have tried marathon 0.13.1 and 1.5.6 version. Yep, http://marathon.url/v2/apps/?embed=apps.tasks url works fine and load metrics as json format. |
I guess the OP stumbled upon the issue with The confusion and guesswork stem from a suboptimal error message in Prometheus that only mentions the |
Were you having problems with I'm able to use HTTP basic auth with the following config:
|
@adamdecaf Sure, now Prometheus implements
|
This was previously part of a larger PR, but that was closed. prometheus#4048 (comment) This change could include auth information in the URL. That's been fixed in upstream go, but not until Go 1.11. See: golang/go#24572 Signed-off-by: Adam Shannon <adamkshannon@gmail.com>
@mciura Sure thing, I created #4171 for that. |
This was previously part of a larger PR, but that was closed. #4048 (comment) This change could include auth information in the URL. That's been fixed in upstream go, but not until Go 1.11. See: golang/go#24572 Signed-off-by: Adam Shannon <adamkshannon@gmail.com>
This was previously part of a larger PR, but that was closed. prometheus#4048 (comment) This change could include auth information in the URL. That's been fixed in upstream go, but not until Go 1.11. See: golang/go#24572 Signed-off-by: Adam Shannon <adamkshannon@gmail.com>
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. |
What did you do?
I have setup for sd_marathon_config in prometheus.yml
What did you see instead? Under which circumstances?
I saw below error:
level=error ts=2018-04-10T14:07:21.991899244Z caller=marathon.go:187 component="discovery manager scrape" discovery=marathon msg="Error while updating services" err="invalid character '<' looking for beginning of value"
Environment
Prometheus version: 2.2.1
Alert Manager: 0.14.0
0.14.0
2.2.1
The text was updated successfully, but these errors were encountered: