blob: 6d9d4024404edb7df0d6adf234cd9fd4b556f06c [file] [log] [blame]
# Copyright 2021-present Open Networking Foundation
# SPDX-License-Identifier: Apache-2.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
- name: "telegraf-external-daemon"
mountPath: /tmp/sdfabric_health_indicator.sh
subPath: sdfabric_health_indicator.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"
- execd:
command: ["sh", "-c", "/tmp/sdfabric_health_indicator.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
atomix_label: app=onos-tost-atomix
onos_config_loader_label: app=onos-config-loader
health_indicator:
enabled: true
expected_hosts: []
rtt_threshold_ms: 30
# Health indicator return DOWN status when {packet_loss_threshold}% of packet loss
# from one of expected host.
packet_loss_threshold: 100
expected_num_links: 0