-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7dca179
commit e2b1c13
Showing
11 changed files
with
3,189 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
interval="1s" | ||
# gNMI telemetry input plugin | ||
[[instances]] | ||
## Address and port of the gNMI GRPC server | ||
#addresses = [1.2.3.4:5678] | ||
addresses = [] | ||
|
||
## define credentials | ||
username = "admin" | ||
password = "admin" | ||
|
||
## gNMI encoding requested (one of: "proto", "json", "json_ietf", "bytes") | ||
encoding = "proto" | ||
|
||
## redial in case of failures after, default: 10 seconds | ||
redial = "10s" | ||
|
||
## gRPC Maximum Message Size, 4MB | ||
max_msg_size = "4194304" | ||
|
||
## Enable to get the canonical path as field-name | ||
# canonical_field_names = false | ||
|
||
## Remove leading slashes and dots in field-name | ||
# trim_field_names = false | ||
|
||
## Guess the path-tag if an update does not contain a prefix-path | ||
## If enabled, the common-path of all elements in the update is used. | ||
# guess_path_tag = false | ||
|
||
## enable client-side TLS and define CA to authenticate the device | ||
# enable_tls = false | ||
# tls_ca = "/etc/pki/ca.pem" | ||
## Minimal TLS version to accept by the client | ||
# tls_min_version = "TLS12" | ||
## Use TLS but skip chain & host verification | ||
# insecure_skip_verify = true | ||
|
||
## define client-side TLS certificate & key to authenticate to the device | ||
# tls_cert = "/etc/pki/cert.pem" | ||
# tls_key = "/etc/pki/key.pem" | ||
|
||
## gNMI subscription prefix (optional, can usually be left empty) | ||
## See: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#222-paths | ||
# origin = "" | ||
# prefix = "" | ||
# target = "" | ||
|
||
## Vendor specific options | ||
## This defines what vendor specific options to load. | ||
## * Juniper Header Extension (juniper_header): some sensors are directly managed by | ||
## Linecard, which adds the Juniper GNMI Header Extension. Enabling this | ||
## allows the decoding of the Extension header if present. Currently this knob | ||
## adds component, component_id & sub_component_id as additionnal tags | ||
# vendor_specific = [] | ||
|
||
## Define additional aliases to map encoding paths to measurement names | ||
# [instances.aliases] | ||
# ifcounters = "openconfig:/interfaces/interface/state/counters" | ||
|
||
[[instances.subscription]] | ||
## Name of the measurement that will be emitted | ||
name = "ifcounters" | ||
|
||
## Origin and path of the subscription | ||
## See: https://github.com/openconfig/reference/blob/master/rpc/gnmi/gnmi-specification.md#222-paths | ||
## | ||
## 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-interfaces" | ||
path = "/interfaces/interface/state/counters" | ||
|
||
## Subscription mode ("target_defined", "sample", "on_change") and interval | ||
subscription_mode = "sample" | ||
sample_interval = "10s" | ||
|
||
## Suppress redundant transmissions when measured values are unchanged | ||
# suppress_redundant = false | ||
|
||
## If suppression is enabled, send updates at least every X seconds anyway | ||
# heartbeat_interval = "60s" | ||
|
||
## Tag subscriptions are applied as tags to other subscriptions. | ||
# [[instances.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-interfaces" | ||
# path = "/interfaces/interface/state" | ||
# subscription_mode = "on_change" | ||
# | ||
# ## Match strategy to use for the tag. | ||
# ## Tags are only applied for metrics of the same address. The following | ||
# ## settings are valid: | ||
# ## unconditional -- always match | ||
# ## name -- match by the "name" key | ||
# ## This resembles the previsou 'tag-only' behavior. | ||
# ## elements -- match by the keys in the path filtered by the path | ||
# ## parts specified `elements` below | ||
# ## By default, 'elements' is used if the 'elements' option is provided, | ||
# ## otherwise match by 'name'. | ||
# # match = "" | ||
# | ||
# ## For the 'elements' match strategy, at least one path-element name must | ||
# ## be supplied containing at least one key to match on. Multiple path | ||
# ## elements can be specified in any order. All given keys must be equal | ||
# ## for a match. | ||
# # elements = ["description", "interface"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.