services.prometheus.exporters.mikrotik.configuration
NixOS option
Mikrotik exporter configuration as nix attribute set. Mutually exclusive with configFile option. See https://github.com/nshttpd/mikrotik-exporter/blob/master/README.md for the description of the configuration file format.
type: null or (attribute set)Default
null
Example
declared in: nixos/modules/services/monitoring/prometheus/exporters.nixView source on NixOS/nixpkgs →{
devices = [
{
name = "my_router";
address = "10.10.0.1";
user = "prometheus";
password = "changeme";
}
];
features = {
bgp = true;
dhcp = true;
routes = true;
optics = true;
};
}