blob: 73514d94ba4f33dcd6f0ec26bfa6b2fdeafd45ed [file] [log] [blame]
# Copyright 2021-present Open Networking Foundation
# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
service_monitor_interval: 30s
telegraf:
image:
tag: "1.17"
volumes:
- name: "telegraf-external-daemon"
configMap:
name: tost-telegraf-config-script
defaultMode: 0755
mountPoints:
- name: "telegraf-external-daemon"
mountPath: /tmp/sdfabric_telegraf.sh
subPath: sdfabric_telegraf.sh
rbac:
rules:
- apiGroups: [""]
resources:
- pods
verbs:
- get
- list
- apiGroups: [""]
resources:
- pods/exec
verbs:
- create
config:
inputs:
- execd:
command: ["sh", "-c", "/tmp/sdfabric_telegraf.sh"]
signal: "STDIN"
- cisco_telemetry_gnmi:
addresses:
- 10.128.100.36:9339
redial: 10s
- cisco_telemetry_gnmi.subscription:
name: stratum_counters
origin: openconfig-interfaces
path: /interfaces/interface[name=*]/state/counters
sample_interval: 5000ns
subscription_mode: sample
outputs:
- prometheus_client:
metric_version: 2
listen: ":9273"
onos:
username: onos
password: rocks
server: localhost
port: 8181
namespace: tost
onos_classic_label: app=onos-classic
onos_config_loader_label: app=onos-config-loader