blob: 73514d94ba4f33dcd6f0ec26bfa6b2fdeafd45ed [file] [log] [blame]
Hung-Wei Chiue3c15972021-04-28 15:52:09 -07001# Copyright 2021-present Open Networking Foundation
2# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
3
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
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070018 rbac:
19 rules:
20 - apiGroups: [""]
21 resources:
22 - pods
23 verbs:
24 - get
25 - list
26 - apiGroups: [""]
27 resources:
28 - pods/exec
29 verbs:
30 - create
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070031 config:
32 inputs:
33 - execd:
Yi Tseng0e78d9d2021-10-21 18:15:03 -070034 command: ["sh", "-c", "/tmp/sdfabric_telegraf.sh"]
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070035 signal: "STDIN"
36 - cisco_telemetry_gnmi:
37 addresses:
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070038 - 10.128.100.36:9339
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070039 redial: 10s
40 - cisco_telemetry_gnmi.subscription:
41 name: stratum_counters
42 origin: openconfig-interfaces
43 path: /interfaces/interface[name=*]/state/counters
44 sample_interval: 5000ns
45 subscription_mode: sample
46
47 outputs:
48 - prometheus_client:
49 metric_version: 2
50 listen: ":9273"
51onos:
52 username: onos
53 password: rocks
54 server: localhost
55 port: 8181
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070056 namespace: tost
Yi Tseng3e5a15f2021-10-22 17:58:36 -070057 onos_classic_label: app=onos-classic
58 onos_config_loader_label: app=onos-config-loader