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 |
| 16 | config: |
| 17 | inputs: |
| 18 | - execd: |
| 19 | command: ["/tmp/onos_telegraf.sh"] |
| 20 | signal: "STDIN" |
| 21 | - cisco_telemetry_gnmi: |
| 22 | addresses: |
| 23 | - 10.128.100.34:9339 |
| 24 | redial: 10s |
| 25 | - cisco_telemetry_gnmi.subscription: |
| 26 | name: stratum_counters |
| 27 | origin: openconfig-interfaces |
| 28 | path: /interfaces/interface[name=*]/state/counters |
| 29 | sample_interval: 5000ns |
| 30 | subscription_mode: sample |
| 31 | |
| 32 | outputs: |
| 33 | - prometheus_client: |
| 34 | metric_version: 2 |
| 35 | listen: ":9273" |
| 36 | onos: |
| 37 | username: onos |
| 38 | password: rocks |
| 39 | server: localhost |
| 40 | port: 8181 |