-
Notifications
You must be signed in to change notification settings - Fork 635
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
configuration: multiple configs #85
Comments
You can put multiple modules inside the one config file. |
Supporting different auth tokens would be appreciated from our side as well. As this is stored in our CMDB and available via SD, this should align with Prometheus patterns. I don't care if the actual community is stored in snmp_exporter and accessed via a group parameter sent from Prometheus or stored in Prometheus config. Having a default that's used when nothing special is requested would also be useful but not essential. |
The Prometheus pattern for auth is one per scrape_config, so the snmp_exporter way of working aligns with that (indeed the snmp_exporter is a little more flexible). |
@brian-brazil your suggestion is counter suggestion. i wanted to put my config to separate file so that i can update the snmp.yml from this repo without manually merging changes. |
That's not something that we'll be supporting. Merging multiple configs would likely only cause confusion. |
perhaps move the
|
If you really think you need multiple configs, you can run multiple
exporters.
Richard
Sent by mobile; excuse my brevity.
|
@RichiH please read the issue initial description WHY. i wish to avoid merging configs manually in the future when i plan to update the software. currently i had to modify the snmp.xml to add auth credentials, there may come more options that need to configure. and |
Then you need to generate your configuration.
Richard
Sent by mobile; excuse my brevity.
|
closing, seems upstream does not want any improvements and better maintainability of complex config. |
@glensc https://docs.google.com/document/d/1McJJIiJfHgoecVrVNXx4ABJmI5M21e-6O9IgMNbVnvw might be of interest to you |
One consideration: Should we make the order deterministic, follow the order on CLI, or not do anything special at all? I think deterministic makes sense. While we hard fail on day 1, that might not always be the case (however unlikely). The other reason is that when we expose this in the UI and if we expose this as |
please add support for multiple configuration files
so i could use unmodified snmp.yml for the oid/metrics configuration
and have secondary file for configuring authentication:
https://github.com/prometheus/snmp_exporter#snmpv2
or perhaps allow authentication configured from commandline like haproxy exporter does?
The text was updated successfully, but these errors were encountered: