Add --collector.netdev.device-whitelist flag (#1279)
* Add --collector.netdev.device-whitelist flag Sometimes it is desired to monitor only one netdev. The golang regexp does not support a negated regex, so the ignored-devices flag is too cumbersome for this task. This change introduces a new flag: accept-devices, which is mutually exclusive to ignored-devices. This flag allows specifying ONLY the netdev you'd like. Signed-off-by: Noam Meltzer <noam@cynerio.co>
This commit is contained in:
parent
fc02b5dfbc
commit
501ccf9fb4
7 changed files with 72 additions and 16 deletions
|
|
@ -2,9 +2,12 @@
|
|||
|
||||
### **Breaking changes**
|
||||
|
||||
* The netdev collector CLI argument `--collector.netdev.ignored-devices` was renamed to `--collector.netdev.device-blacklist` in order to conform with the systemd collector. #1279
|
||||
|
||||
|
||||
### Changes
|
||||
|
||||
* [CHANGE]
|
||||
* [CHANGE] Add `--collector.netdev.device-whitelist`. #1279
|
||||
* [FEATURE]
|
||||
* [ENHANCEMENT]
|
||||
* [BUGFIX] Fix incorrect sysctl call in BSD meminfo collector, resulting in broken swap metrics on FreeBSD #1345
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue