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 |
Yi Tseng | 342f4f1 | 2021-11-16 00:45:40 -0800 | [diff] [blame] | 18 | - name: "telegraf-external-daemon" |
| 19 | mountPath: /tmp/sdfabric_health_indicator.sh |
| 20 | subPath: sdfabric_health_indicator.sh |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 21 | rbac: |
| 22 | rules: |
| 23 | - apiGroups: [""] |
| 24 | resources: |
| 25 | - pods |
| 26 | verbs: |
| 27 | - get |
| 28 | - list |
| 29 | - apiGroups: [""] |
| 30 | resources: |
| 31 | - pods/exec |
| 32 | verbs: |
| 33 | - create |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 34 | config: |
| 35 | inputs: |
| 36 | - execd: |
Yi Tseng | 0e78d9d | 2021-10-21 18:15:03 -0700 | [diff] [blame] | 37 | command: ["sh", "-c", "/tmp/sdfabric_telegraf.sh"] |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 38 | signal: "STDIN" |
Yi Tseng | 342f4f1 | 2021-11-16 00:45:40 -0800 | [diff] [blame] | 39 | - execd: |
| 40 | command: ["sh", "-c", "/tmp/sdfabric_health_indicator.sh"] |
| 41 | signal: "STDIN" |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 42 | - cisco_telemetry_gnmi: |
| 43 | addresses: |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 44 | - 10.128.100.36:9339 |
Hung-Wei Chiu | e3c1597 | 2021-04-28 15:52:09 -0700 | [diff] [blame] | 45 | redial: 10s |
| 46 | - cisco_telemetry_gnmi.subscription: |
| 47 | name: stratum_counters |
| 48 | origin: openconfig-interfaces |
| 49 | path: /interfaces/interface[name=*]/state/counters |
| 50 | sample_interval: 5000ns |
| 51 | subscription_mode: sample |
| 52 | |
| 53 | outputs: |
| 54 | - prometheus_client: |
| 55 | metric_version: 2 |
| 56 | listen: ":9273" |
| 57 | onos: |
| 58 | username: onos |
| 59 | password: rocks |
| 60 | server: localhost |
| 61 | port: 8181 |
Hung-Wei Chiu | 9e5acb1 | 2021-05-19 11:32:27 -0700 | [diff] [blame] | 62 | namespace: tost |
Yi Tseng | 3e5a15f | 2021-10-22 17:58:36 -0700 | [diff] [blame] | 63 | onos_classic_label: app=onos-classic |
Yi Tseng | 342f4f1 | 2021-11-16 00:45:40 -0800 | [diff] [blame] | 64 | atomix_label: app=onos-tost-atomix |
Yi Tseng | 3e5a15f | 2021-10-22 17:58:36 -0700 | [diff] [blame] | 65 | onos_config_loader_label: app=onos-config-loader |
Yi Tseng | 342f4f1 | 2021-11-16 00:45:40 -0800 | [diff] [blame] | 66 | |
| 67 | health_indicator: |
| 68 | enabled: false |
| 69 | expected_hosts: [] |
| 70 | rtt_threshold_ms: 30 |
| 71 | # Health indicator return DOWN status when {packet_loss_threshold}% of packet loss |
| 72 | # from one of expected host. |
| 73 | packet_loss_threshold: 100 |
| 74 | expected_num_links: 0 |