Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Backport sync sample.conf and README.md files #11489

Merged
merged 1 commit into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 12 additions & 14 deletions plugins/inputs/gnmi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
## 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
origin = "openconfig"
origin = "openconfig-interfaces"
path = "/interfaces/interface/state/counters"

# Subscription mode (one of: "target_defined", "sample", "on_change") and interval
Expand All @@ -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
# heartbeat_interval = "60s"

## Tag subscriptions are subscriptions to paths intended to be applied as tags to other subscriptions
[[inputs.gnmi.tag_subscription]]
# When applying this value as a tag to other metrics, use this tag name
name = "descr"
# All other subscription fields are as normal
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"]

#[[inputs.gnmi.subscription]]
# name = "descr"
# origin = "openconfig-interfaces"
# path = "/interfaces/interface/state/description"
# subscription_mode = "on_change"

## 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
Expand Down
6 changes: 6 additions & 0 deletions plugins/inputs/snmp/sample.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
## SNMP version; can be 1, 2, or 3.
# 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
## Used by the gosmi translator.
## To add paths when translating with netsnmp, use the MIBDIRS environment variable
Expand Down