[SDFAB-743] Add SD-Fabric health indicator script
Add a new health indicator script to check if topology and UE connectivity
meet requirement
Change-Id: Id18052b45e502dad327d331c7c4d7f177488a444
diff --git a/apps/tost-telegraf/values.yaml b/apps/tost-telegraf/values.yaml
index 73514d9..e139fff 100644
--- a/apps/tost-telegraf/values.yaml
+++ b/apps/tost-telegraf/values.yaml
@@ -15,6 +15,9 @@
- name: "telegraf-external-daemon"
mountPath: /tmp/sdfabric_telegraf.sh
subPath: sdfabric_telegraf.sh
+ - name: "telegraf-external-daemon"
+ mountPath: /tmp/sdfabric_health_indicator.sh
+ subPath: sdfabric_health_indicator.sh
rbac:
rules:
- apiGroups: [""]
@@ -33,6 +36,9 @@
- execd:
command: ["sh", "-c", "/tmp/sdfabric_telegraf.sh"]
signal: "STDIN"
+ - execd:
+ command: ["sh", "-c", "/tmp/sdfabric_health_indicator.sh"]
+ signal: "STDIN"
- cisco_telemetry_gnmi:
addresses:
- 10.128.100.36:9339
@@ -55,4 +61,14 @@
port: 8181
namespace: tost
onos_classic_label: app=onos-classic
+ atomix_label: app=onos-tost-atomix
onos_config_loader_label: app=onos-config-loader
+
+health_indicator:
+ enabled: false
+ expected_hosts: []
+ rtt_threshold_ms: 30
+ # Health indicator return DOWN status when {packet_loss_threshold}% of packet loss
+ # from one of expected host.
+ packet_loss_threshold: 100
+ expected_num_links: 0