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

[QUESTION] Prometheus Parameter #346

Open
vabene1111 opened this issue May 17, 2021 · 3 comments
Open

[QUESTION] Prometheus Parameter #346

vabene1111 opened this issue May 17, 2021 · 3 comments

Comments

@vabene1111
Copy link

I have a multi target exporter which is controlled via the params config directive.

I could not find a way to pass my parameters to the target using promgen. Do i just manually add them to the URL/metrics path ?

I am relatively new to prometheus and still trying to understand promgen as well so i hope i haven't missed anything.

example from
https://prometheus.io/docs/guides/multi-target-exporter/#configuring-modules

- job_name: blackbox-http # To get metrics about the exporter’s targets
  metrics_path: /probe
  params:
    module: [http_2xx]
    target: [prometheus.io]
  static_configs:
    - targets:
      - localhost:9115

thanks for the help

@vabene1111
Copy link
Author

i tried adding it to the metrics path directly but that gets encoded by prometheus removing the ? as described here

@kfdm
Copy link
Collaborator

kfdm commented May 17, 2021

Currently Promgen does not support the path parameter. It's something I would like to support, but recently I have been occupied with other tasks 🙇

@vabene1111
Copy link
Author

ok thanks for the information 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants