Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 1 | # Copyright 2021-present Open Networking Foundation |
| 2 | # SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0 |
| 3 | |
Yi Tseng | 3e5a15f | 2021-10-22 17:58:36 -0700 | [diff] [blame] | 4 | service_monitor_interval: 30s |
| 5 | |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 6 | telegraf: |
| 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 Tseng | 0e78d9d | 2021-10-21 18:15:03 -0700 | [diff] [blame] | 16 | mountPath: /tmp/sdfabric_telegraf.sh |
| 17 | subPath: sdfabric_telegraf.sh |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 18 | 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 Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 31 | config: |
| 32 | inputs: |
| 33 | - execd: |
Yi Tseng | 0e78d9d | 2021-10-21 18:15:03 -0700 | [diff] [blame] | 34 | command: ["sh", "-c", "/tmp/sdfabric_telegraf.sh"] |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 35 | signal: "STDIN" |
| 36 | - cisco_telemetry_gnmi: |
| 37 | addresses: |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 38 | - 10.128.100.36:9339 |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 39 | 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" |
| 51 | onos: |
| 52 | username: onos |
| 53 | password: rocks |
| 54 | server: localhost |
| 55 | port: 8181 |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 56 | namespace: tost |
Yi Tseng | 3e5a15f | 2021-10-22 17:58:36 -0700 | [diff] [blame] | 57 | onos_classic_label: app=onos-classic |
| 58 | onos_config_loader_label: app=onos-config-loader |