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 2.2.1 marathon_sd_config doesn't work properly #4048
Comments
This comment has been minimized.
This comment has been minimized.
|
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
Apr 5, 2018
hbceylan
changed the title
prometheus 2.2.1 alert doesn't work properly
prometheus 2.2.1 marathon_sd_config doesn't work properly
Apr 10, 2018
This comment has been minimized.
This comment has been minimized.
|
@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, |
This comment has been minimized.
This comment has been minimized.
|
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? |
This comment has been minimized.
This comment has been minimized.
|
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, |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
@hbceylan I could help debug. Do you have any more of an error? Does your marathon require auth? |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
@hbceylan What marathon version are you on? Just to confirm, it sounds like you can load |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
mciura
commented
May 17, 2018
|
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 |
This comment has been minimized.
This comment has been minimized.
|
Were you having problems with I'm able to use HTTP basic auth with the following config:
|
This comment has been minimized.
This comment has been minimized.
mciura
commented
May 17, 2018
|
@adamdecaf Sure, now Prometheus implements
|
adamdecaf
referenced this issue
May 17, 2018
Merged
discovery/marathon: include url in fetchApps error #4171
adamdecaf
added a commit
to adamdecaf/prometheus
that referenced
this issue
May 17, 2018
This comment has been minimized.
This comment has been minimized.
brian-brazil
added a commit
that referenced
this issue
May 18, 2018
gouthamve
added a commit
to gouthamve/prometheus
that referenced
this issue
Aug 1, 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. |
hbceylan commentedApr 5, 2018
•
edited
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