This PR adds support for hostname based pattern matching to select devices.
Background: We have a lot of devices we want to scrape metrics from and we don't want to list every device with the enabled features in the config file to keep the setup as dynamic as possible (we use this together with the "ignore-targets" flag).
This change adds a new option to the device configuration named host_pattern which tells the exporter to use the given hostname as a pattern which is later matched against the target hostnames.
This PR adds support for hostname based pattern matching to select devices.
Background: We have a lot of devices we want to scrape metrics from and we don't want to list every device with the enabled features in the config file to keep the setup as dynamic as possible (we use this together with the "ignore-targets" flag).
This change adds a new option to the device configuration named
host_pattern
which tells the exporter to use the given hostname as a pattern which is later matched against the target hostnames.