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

New set up. #12

Closed
andrewm659 opened this issue Nov 21, 2022 · 2 comments
Closed

New set up. #12

andrewm659 opened this issue Nov 21, 2022 · 2 comments
Assignees

Comments

@andrewm659
Copy link

I am trying to set this up on RHEL 7 using docker. I was able to get the docker images deployed but I have multiple endpoints to monitor with different API tokens. I want to set up a files_sd config to be able to add and remove endpoints. The top portion is with the previous pure_exporter, the bottom is the new way.

---
#- targets:
# - INT_IP_ADDR
# labels:
# env: prod
# authorization:
# credentials: SOME_API_KEY
# - INT_IP_ADDR
# labels:
# env: prod
# authorization:
# credentials: SOME_API_KEY

params:
endpoint: INT_IP_ADDR
authorization:
credentials: SOME_API_KEY
endpoint: INT_IP_ADDR
authorization:
credentials: SOME_API_KEY

@genegr genegr self-assigned this Dec 28, 2022
@james-laing
Copy link
Collaborator

@andrewm659 this looks like you are trying to get data into Prometheus.

If so, each endpoint needs to be declared in it's entirety including the authorisation token.

Here is an example of a prometheus.yaml file.

Let us know if you are still requiring help with this.

@genegr
Copy link
Collaborator

genegr commented Apr 29, 2023

In the new release that will go live the next week there is also the possibility to use a tokens map file, that helps simplifying the configuration on the Prometheus config file. Please check the README file once the new minor release is out.

@genegr genegr closed this as completed Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants