fix: Backport sync sample.conf and README.md files (#11489)
Co-authored-by: Sven Rebhan <sven.rebhan@honda-ri.de>
This commit is contained in:
parent
fa0c9c937e
commit
d7f8f025fc
|
|
@ -58,7 +58,7 @@ It has been optimized to support gNMI telemetry as produced by Cisco IOS XR
|
||||||
## origin usually refers to a (YANG) data model implemented by the device
|
## origin usually refers to a (YANG) data model implemented by the device
|
||||||
## and path to a specific substructure inside it that should be subscribed to (similar to an XPath)
|
## and path to a specific substructure inside it that should be subscribed to (similar to an XPath)
|
||||||
## YANG models can be found e.g. here: https://github.com/YangModels/yang/tree/master/vendor/cisco/xr
|
## YANG models can be found e.g. here: https://github.com/YangModels/yang/tree/master/vendor/cisco/xr
|
||||||
origin = "openconfig"
|
origin = "openconfig-interfaces"
|
||||||
path = "/interfaces/interface/state/counters"
|
path = "/interfaces/interface/state/counters"
|
||||||
|
|
||||||
# Subscription mode (one of: "target_defined", "sample", "on_change") and interval
|
# Subscription mode (one of: "target_defined", "sample", "on_change") and interval
|
||||||
|
|
@ -71,19 +71,17 @@ It has been optimized to support gNMI telemetry as produced by Cisco IOS XR
|
||||||
## If suppression is enabled, send updates at least every X seconds anyway
|
## If suppression is enabled, send updates at least every X seconds anyway
|
||||||
# heartbeat_interval = "60s"
|
# heartbeat_interval = "60s"
|
||||||
|
|
||||||
## Tag subscriptions are subscriptions to paths intended to be applied as tags to other subscriptions
|
#[[inputs.gnmi.subscription]]
|
||||||
[[inputs.gnmi.tag_subscription]]
|
# name = "descr"
|
||||||
# When applying this value as a tag to other metrics, use this tag name
|
# origin = "openconfig-interfaces"
|
||||||
name = "descr"
|
# path = "/interfaces/interface/state/description"
|
||||||
# All other subscription fields are as normal
|
# subscription_mode = "on_change"
|
||||||
origin = "openconfig"
|
|
||||||
path = "/interfaces/interface/state/description"
|
|
||||||
subscription_mode = "on_change"
|
|
||||||
# At least one path element name must be supplied that contains at least one key to match on
|
|
||||||
# Multiple element names can be specified in any order - all element names must be present and contain
|
|
||||||
# to be stored as an in-memory tag
|
|
||||||
elements = ["interface"]
|
|
||||||
|
|
||||||
|
## If tag_only is set, the subscription in question will be utilized to maintain a map of
|
||||||
|
## tags to apply to other measurements emitted by the plugin, by matching path keys
|
||||||
|
## All fields from the tag-only subscription will be applied as tags to other readings,
|
||||||
|
## in the format <name>_<fieldBase>.
|
||||||
|
# tag_only = true
|
||||||
```
|
```
|
||||||
|
|
||||||
## Metrics
|
## Metrics
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,12 @@
|
||||||
## SNMP version; can be 1, 2, or 3.
|
## SNMP version; can be 1, 2, or 3.
|
||||||
# version = 2
|
# version = 2
|
||||||
|
|
||||||
|
## Unconnected UDP socket
|
||||||
|
## When true, SNMP reponses are accepted from any address not just
|
||||||
|
## the requested address. This can be useful when gathering from
|
||||||
|
## redundant/failover systems.
|
||||||
|
# unconnected_udp_socket = false
|
||||||
|
|
||||||
## Path to mib files
|
## Path to mib files
|
||||||
## Used by the gosmi translator.
|
## Used by the gosmi translator.
|
||||||
## To add paths when translating with netsnmp, use the MIBDIRS environment variable
|
## To add paths when translating with netsnmp, use the MIBDIRS environment variable
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue