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 | |
| 4 | telegraf: |
| 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 Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 16 | 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 Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 29 | config: |
| 30 | inputs: |
| 31 | - execd: |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 32 | command: ["sh", "-c", "/tmp/onos_telegraf.sh"] |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 33 | signal: "STDIN" |
| 34 | - cisco_telemetry_gnmi: |
| 35 | addresses: |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 36 | - 10.128.100.36:9339 |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 37 | 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" |
| 49 | onos: |
| 50 | username: onos |
| 51 | password: rocks |
| 52 | server: localhost |
| 53 | port: 8181 |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 54 | namespace: tost |
| 55 | component_label: onos-tost-config |
| 56 | ready_script: /root/onos/bin/check-onos-status |
| 57 | container_name: onos-classic |