-
Notifications
You must be signed in to change notification settings - Fork 634
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
Can multiple modules be supported? #731
Comments
It's something I would be interested in exploring. We would need to think about if we would execute in parallel or serial. Also how to handle duplicate walks. |
Hi, although it's not exactly the case, the way I do it is using relabeling on prometheus.yml:
In the snmp_targets.json there is a disposable label "__module" that defines the specific snmp module the target should use. I'm not sure if the "honor_labels" option is required though, but as the saying says "if it is working..." |
+1 for this, would make it much easier for being able to use a single job. |
+1 |
1 similar comment
+1 |
I would very much like this too. However, I want to be able to specify it per-target using rewriting rules, and currently a Hence I would rather it were a comma-separated list:
I suggest that these requests are done serially, and in the order specified. Note that it's possible for a subsequent module to generate the same timeseries as an earlier one (i.e. same metric with same labels); if so, either the earlier or the later should take precedence. (It doesn't really matter which; you can reverse the order of the list of modules in the query if necessary). Doing this serially helps make this deterministic, and also avoids loading the target device with additional concurrent SNMP queries. I am happy to set the timeout to be the largest expected combination of modules on the slowest device. In any case, it is necessary to set the scrape job interval to be at least this time. |
Fixed in #731. |
Or fixed in #945 |
Oops, copied the wrong URL. |
hello,
Can SNMP exporter support multiple modules to adapt to private MIBs of different vendors?
Now it's like this in prometheus.yml,
In the code above, can you realize the following functions?
The text was updated successfully, but these errors were encountered: