prometheus: prometheus 2.2.1 marathon_sd_config doesn't work properly
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
- Alertmanager version:
0.14.0
- Prometheus version:
2.2.1
- Prometheus configuration file:
- job_name: marathon
scrape_interval: 15s
scrape_timeout: 10s
metrics_path: /metrics
scheme: http
marathon_sd_configs:
- servers:
- http://marathon.url
timeout: 30s
refresh_interval: 30s
relabel_configs:
- source_labels: [__meta_marathon_app]
separator: ;
regex: ^/(.+)
target_label: app
replacement: $1
action: replace
- source_labels: [app]
separator: ;
regex: (service-a|service-b)
replacement: $1
action: keep
- source_labels: [app]
separator: ;
regex: (service-a|service-b)
target_label: __metrics_path__
replacement: /prometheus
action: replace```
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (7 by maintainers)
Commits related to this issue
- discovery/marathon: include url in fetchApps error This was previously part of a larger PR, but that was closed. https://github.com/prometheus/prometheus/issues/4048#issuecomment-389899997 This cha... — committed to adamdecaf/prometheus by adamdecaf 6 years ago
- discovery/marathon: include url in fetchApps error (#4171) This was previously part of a larger PR, but that was closed. https://github.com/prometheus/prometheus/issues/4048#issuecomment-389899997... — committed to prometheus/prometheus by adamdecaf 6 years ago
- discovery/marathon: include url in fetchApps error (#4171) This was previously part of a larger PR, but that was closed. https://github.com/prometheus/prometheus/issues/4048#issuecomment-389899997... — committed to gouthamve/prometheus by adamdecaf 6 years ago
@mciura Sure thing, I created https://github.com/prometheus/prometheus/pull/4171 for that.
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?