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

ec2_sd_config metrics_path not supported #5073

Closed
paulca99 opened this Issue Jan 7, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@paulca99
Copy link

paulca99 commented Jan 7, 2019

Proposal

Use case. Why is this important?

not always possible to use /metrics as the path

Bug Report

have a working ec2_sd_config setup, but there's no way to change the context path from /metrics to /prometheus

  • Prometheus version:

    insert output of prometheus --version here
    2.6.0

  • Alertmanager version:

    insert output of alertmanager --version here (if relevant to the issue)

  • Prometheus configuration file:

    ec2_sd_configs:
      - region: eu-west-1
        metrics_path: '/prometheus'
        port: 9080

does not work

    ec2_sd_configs:
      - region: eu-west-1
        port: 9080

works 
@paulca99

This comment has been minimized.

Copy link
Author

paulca99 commented Jan 7, 2019

ec2_sd_config metrics_path not supported.

Using spring boot with the prometheus actuator. Our endpoint is on /prometheus. But the service discovery uses /metrics and cannot be changed. Spring boot reserves /metrics for its own use.

@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Jan 7, 2019

The EC2 service discovery has nothing to do with the scrape configuration. Your configuration is probably buggy. Otherwise if you want to override the metrics path through relabel_configs, the label name to use is __metrics_path__.

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.