blob: 5a9216f88b02723accadab63ba0dd786adbc6fc0 [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
4telegraf:
5 image:
6 tag: "1.17"
7 volumes:
8 - name: "telegraf-external-daemon"
9 configMap:
10 name: tost-telegraf-config-script
11 defaultMode: 0755
12 mountPoints:
13 - name: "telegraf-external-daemon"
14 mountPath: /tmp/onos_telegraf.sh
15 subPath: tost_telegraf.sh
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070016 rbac:
17 rules:
18 - apiGroups: [""]
19 resources:
20 - pods
21 verbs:
22 - get
23 - list
24 - apiGroups: [""]
25 resources:
26 - pods/exec
27 verbs:
28 - create
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070029 config:
30 inputs:
31 - execd:
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070032 command: ["sh", "-c", "/tmp/onos_telegraf.sh"]
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070033 signal: "STDIN"
34 - cisco_telemetry_gnmi:
35 addresses:
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070036 - 10.128.100.36:9339
Hung-Wei Chiue3c15972021-04-28 15:52:09 -070037 redial: 10s
38 - cisco_telemetry_gnmi.subscription:
39 name: stratum_counters
40 origin: openconfig-interfaces
41 path: /interfaces/interface[name=*]/state/counters
42 sample_interval: 5000ns
43 subscription_mode: sample
44
45 outputs:
46 - prometheus_client:
47 metric_version: 2
48 listen: ":9273"
49onos:
50 username: onos
51 password: rocks
52 server: localhost
53 port: 8181
Hung-Wei Chiu9e5acb12021-05-19 11:32:27 -070054 namespace: tost
55 component_label: onos-tost-config
56 ready_script: /root/onos/bin/check-onos-status
57 container_name: onos-classic