From 3e3599868b586a3a7115a7e81b78a25b0a415f5a Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Mon, 16 Oct 2023 16:31:11 +0200 Subject: [PATCH 1/2] feat(processors.ifname): Document better agent tag name --- plugins/processors/ifname/README.md | 3 ++- plugins/processors/ifname/sample.conf | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/processors/ifname/README.md b/plugins/processors/ifname/README.md index 5eb129683693b..8f84bac61c3a4 100644 --- a/plugins/processors/ifname/README.md +++ b/plugins/processors/ifname/README.md @@ -25,7 +25,8 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. # dest = "ifName" ## Name of tag of the SNMP agent to request the interface name from - # agent = "agent" + ## default: agent = "agent" + agent = "source" ## Timeout for each request. # timeout = "5s" diff --git a/plugins/processors/ifname/sample.conf b/plugins/processors/ifname/sample.conf index 8a85e943d9928..45a96794a4872 100644 --- a/plugins/processors/ifname/sample.conf +++ b/plugins/processors/ifname/sample.conf @@ -7,7 +7,8 @@ # dest = "ifName" ## Name of tag of the SNMP agent to request the interface name from - # agent = "agent" + ## default: agent = "agent" + agent = "source" ## Timeout for each request. # timeout = "5s" From 35bbbdff7bacda070bd4ec2c6f6c6372b1fd15f8 Mon Sep 17 00:00:00 2001 From: Thomas Casteleyn Date: Tue, 17 Oct 2023 17:41:27 +0200 Subject: [PATCH 2/2] docs: switch default and example --- plugins/processors/ifname/README.md | 4 ++-- plugins/processors/ifname/sample.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/processors/ifname/README.md b/plugins/processors/ifname/README.md index 8f84bac61c3a4..659cc1b1b5904 100644 --- a/plugins/processors/ifname/README.md +++ b/plugins/processors/ifname/README.md @@ -25,8 +25,8 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details. # dest = "ifName" ## Name of tag of the SNMP agent to request the interface name from - ## default: agent = "agent" - agent = "source" + ## example: agent = "source" + # agent = "agent" ## Timeout for each request. # timeout = "5s" diff --git a/plugins/processors/ifname/sample.conf b/plugins/processors/ifname/sample.conf index 45a96794a4872..193a86e41e9f0 100644 --- a/plugins/processors/ifname/sample.conf +++ b/plugins/processors/ifname/sample.conf @@ -7,8 +7,8 @@ # dest = "ifName" ## Name of tag of the SNMP agent to request the interface name from - ## default: agent = "agent" - agent = "source" + ## example: agent = "source" + # agent = "agent" ## Timeout for each request. # timeout = "5s"