blob: 6d9d4024404edb7df0d6adf234cd9fd4b556f06c [file] [log] [blame]
Hung-Wei Chiue3c15972021-04-28 15:52:09 -07001# Copyright 2021-present Open Networking Foundation
Scott Baker4cad5ee2022-06-09 14:17:35 -07002# SPDX-License-Identifier: Apache-2.0
Hung-Wei Chiue3c15972021-04-28 15:52:09 -07003
Yi Tseng3e5a15f2021-10-22 17:58:36 -07004service_monitor_interval: 30s
5
Hung-Wei Chiue3c15972021-04-28 15:52:09 -07006telegraf:
7 image:
8 tag: "1.17"
9 volumes:
10 - name: "telegraf-external-daemon"
11 configMap:
12 name: tost-telegraf-config-script
13 defaultMode: 0755
14 mountPoints:
15 - name: "telegraf-external-daemon"
Yi Tseng0e78d9d2021-10-21 18:15:03 -070016 mountPath: /tmp/sdfabric_telegraf.sh
17 subPath: sdfabric_telegraf.sh
Yi Tseng342f4f12021-11-16 00:45:40 -080018 - name: "telegraf-external-daemon"
19 mountPath: /tmp/sdfabric_health_indicator.sh
20 subPath: sdfabric_health_indicator.sh
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070021 rbac:
22 rules:
23 - apiGroups: [""]
24 resources:
25 - pods
26 verbs:
27 - get
28 - list
29 - apiGroups: [""]
30 resources:
31 - pods/exec
32 verbs:
33 - create
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070034 config:
35 inputs:
36 - execd:
Yi Tseng0e78d9d2021-10-21 18:15:03 -070037 command: ["sh", "-c", "/tmp/sdfabric_telegraf.sh"]
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070038 signal: "STDIN"
Yi Tseng342f4f12021-11-16 00:45:40 -080039 - execd:
40 command: ["sh", "-c", "/tmp/sdfabric_health_indicator.sh"]
41 signal: "STDIN"
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070042 - cisco_telemetry_gnmi:
43 addresses:
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070044 - 10.128.100.36:9339
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070045 redial: 10s
46 - cisco_telemetry_gnmi.subscription:
47 name: stratum_counters
48 origin: openconfig-interfaces
49 path: /interfaces/interface[name=*]/state/counters
50 sample_interval: 5000ns
51 subscription_mode: sample
52
53 outputs:
54 - prometheus_client:
55 metric_version: 2
56 listen: ":9273"
57onos:
58 username: onos
59 password: rocks
60 server: localhost
61 port: 8181
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070062 namespace: tost
Yi Tseng3e5a15f2021-10-22 17:58:36 -070063 onos_classic_label: app=onos-classic
Yi Tseng342f4f12021-11-16 00:45:40 -080064 atomix_label: app=onos-tost-atomix
Yi Tseng3e5a15f2021-10-22 17:58:36 -070065 onos_config_loader_label: app=onos-config-loader
Yi Tseng342f4f12021-11-16 00:45:40 -080066
67health_indicator:
Yi Tseng419fad72022-02-24 17:05:57 -080068 enabled: true
Yi Tseng342f4f12021-11-16 00:45:40 -080069 expected_hosts: []
70 rtt_threshold_ms: 30
71 # Health indicator return DOWN status when {packet_loss_threshold}% of packet loss
72 # from one of expected host.
73 packet_loss_threshold: 100
74 expected_num_links: 0