On Thursday, 2 April 2020 16:25:42 UTC+1, Andrew Meyer wrote:
>
> Brian,
> Thanks!
> When setting the __param_module could you point me to an example?
>
>
Since you are using static_configs:
static_configs:
- labels:
__param_module: if_mib
targets: [ 10.150.1.1 ]
- labels:
__param_module: if_mib_secret
targets: [ 10.150.1.2, 10.150.1.3 ]
But it's better to migrate to file_sd_configs, since these can be changed
without having to edit prometheus.yml and without requiring a HUP to
prometheus. file_sd_configs points to a file, and inside the file you have
the same structure of groups of (labels + targets).
It's also a good idea to include module as a *real* label, and then use
rewriting to copy it to __param_module, so that your metrics get properly
labelled.
More complex example here
<https://github.com/candlerb/netbox-prometheus#targets> which you can steal
just what you need from.
> Also does anyone know of a mib to yaml converter?
Yes - the generator which comes with snmp_exporter. You still haven't
shown how it fails for you.
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/4b74bdf6-542a-4672-be6d-6f946786aac1%40googlegroups.com.