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

Multi target without need for specifying --mongodb.uri #878

Open
andreav opened this issue Jul 23, 2024 · 0 comments
Open

Multi target without need for specifying --mongodb.uri #878

andreav opened this issue Jul 23, 2024 · 0 comments

Comments

@andreav
Copy link

andreav commented Jul 23, 2024

With Prometheus multitarget scraping, it is possible to setup a configuration combining:

  • service discovery (like dockerswarm_sd_config)
  • relabel_config

to have a completely dynamic multi instance scraping.

Here is an example for Redis Exporter with static_configs and file_sd_configs but it can be realized also with dockerswarm_sd_config to make it completely dynamic.
Redis Exporter adopted a --redis.addr= (note empty value) for indicating multi instance scraping.

This would be a powerful improvement in situations where you need a dynamic configuration.

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

1 participant