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 consul_sd_configs msg="append failed" err="\"INVALID\" is not a valid start token" #5085

Closed
zjBrian opened this Issue Jan 9, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@zjBrian
Copy link

zjBrian commented Jan 9, 2019

prometheus version: prometheus-2.6.0-rc.0.linux-amd64.tar.gz
consul version: consul_1.4.0_linux_amd64.zip
os : contos 7

#cat prometheus.yml

  - job_name: 'consul-prometheus' 
    consul_sd_configs:
      - server: '10.252.252.107:8500'
        services: []

error logs:
level=warn ts=2019-01-09T03:21:21.305552906Z caller=scrape.go:835 component="scrape manager" scrape_pool=consul-prometheus target=http://10.252.252.102:9999/metrics msg="append failed" err=""INVALID" is not a valid start token"

picture:
image

How can I solve this problem!!!

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Jan 9, 2019

The data exposed by the endpoint doesn't comply with the Prometheus exposition format. You can check where is the problem by running curl -s http://10.252.252.102:9999/metrics | promtool check metrics.

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.