67 lines
1.9 KiB
Plaintext
67 lines
1.9 KiB
Plaintext
|
|
# Telegraf Configuration for gNMI Streaming Telemetry
|
||
|
|
# Collects interface counters and data rates from IOS-XR routers
|
||
|
|
|
||
|
|
[global_tags]
|
||
|
|
|
||
|
|
[agent]
|
||
|
|
interval = "10s"
|
||
|
|
round_interval = true
|
||
|
|
metric_batch_size = 1000
|
||
|
|
metric_buffer_limit = 10000
|
||
|
|
collection_jitter = "0s"
|
||
|
|
flush_interval = "10s"
|
||
|
|
flush_jitter = "0s"
|
||
|
|
precision = "0s"
|
||
|
|
|
||
|
|
###############################################################################
|
||
|
|
# INPUT PLUGINS #
|
||
|
|
###############################################################################
|
||
|
|
|
||
|
|
[[inputs.gnmi]]
|
||
|
|
addresses = [
|
||
|
|
"10.100.0.100:57400",
|
||
|
|
"10.100.0.200:57400",
|
||
|
|
"10.100.0.1:57400",
|
||
|
|
"10.100.0.2:57400",
|
||
|
|
"10.100.0.3:57400",
|
||
|
|
"10.100.0.4:57400",
|
||
|
|
"10.100.0.5:57400",
|
||
|
|
"10.100.0.6:57400",
|
||
|
|
"10.100.0.7:57400"
|
||
|
|
]
|
||
|
|
username = "webui"
|
||
|
|
password = "cisco"
|
||
|
|
|
||
|
|
## Do not verify the server certificate
|
||
|
|
enable_tls = false
|
||
|
|
|
||
|
|
## gNMI encoding requested (one of: "proto", "json", "json_ietf", "bytes")
|
||
|
|
encoding = "proto"
|
||
|
|
|
||
|
|
## Redial in case of failures after
|
||
|
|
redial = "10s"
|
||
|
|
|
||
|
|
[[inputs.gnmi.subscription]]
|
||
|
|
name = "interface_counters"
|
||
|
|
origin = "Cisco-IOS-XR-infra-statsd-oper"
|
||
|
|
path = "/infra-statistics/interfaces/interface/latest/generic-counters"
|
||
|
|
subscription_mode = "sample"
|
||
|
|
sample_interval = "10s"
|
||
|
|
|
||
|
|
[[inputs.gnmi.subscription]]
|
||
|
|
name = "interface_rates"
|
||
|
|
origin = "Cisco-IOS-XR-infra-statsd-oper"
|
||
|
|
path = "/infra-statistics/interfaces/interface/latest/data-rate"
|
||
|
|
subscription_mode = "sample"
|
||
|
|
sample_interval = "10s"
|
||
|
|
|
||
|
|
###############################################################################
|
||
|
|
# OUTPUT PLUGINS #
|
||
|
|
###############################################################################
|
||
|
|
|
||
|
|
[[outputs.influxdb_v2]]
|
||
|
|
urls = ["http://localhost:8086"]
|
||
|
|
token = "${INFLUXDB_TOKEN}"
|
||
|
|
organization = "openbmp"
|
||
|
|
bucket = "telemetry"
|