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 discovery endpoint (for SNMP exporter) #107

Open
JensErat opened this issue Dec 31, 2024 · 0 comments
Open

Prometheus discovery endpoint (for SNMP exporter) #107

JensErat opened this issue Dec 31, 2024 · 0 comments

Comments

@JensErat
Copy link

For connecting SNMP exporter, it would be nice to have device autodiscovery in Prometheus. Given we already have all device data read and available, would you accept a pull requests adding a Prometheus SD config endpoint enumerating discovered devices? Probably also helpful for blackbox probing and other stuff.

https://prometheus.io/docs/prometheus/latest/http_sd/

Seems pretty straight forward to me, populate the device data with IPs (and probably some labels) into a TargetGroup and expose the result from https://github.com/prometheus/prometheus/blob/main/discovery/targetgroup/targetgroup.go#L24 as API endpoint.

I do not see a way to configure or read per-device SNMP, so no reason to expose anything with this regard.

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

1 participant