[Aether-1482] - Add the new helm chart to install the telegraf external daemon of ONOS controller
- Use the servicemonitor to work with Prometheus instead of Rancher's annotation
Change-Id: Icabfb43b1dbf5f86bfdbd4117cf550770d3418a7
diff --git a/apps/tost-telegraf/values.yaml b/apps/tost-telegraf/values.yaml
new file mode 100644
index 0000000..1ac2abe
--- /dev/null
+++ b/apps/tost-telegraf/values.yaml
@@ -0,0 +1,40 @@
+# Copyright 2021-present Open Networking Foundation
+# SPDX-License-Identifier: LicenseRef-ONF-Member-Only-1.0
+
+telegraf:
+ image:
+ tag: "1.17"
+ volumes:
+ - name: "telegraf-external-daemon"
+ configMap:
+ name: tost-telegraf-config-script
+ defaultMode: 0755
+ mountPoints:
+ - name: "telegraf-external-daemon"
+ mountPath: /tmp/onos_telegraf.sh
+ subPath: tost_telegraf.sh
+ config:
+ inputs:
+ - execd:
+ command: ["/tmp/onos_telegraf.sh"]
+ signal: "STDIN"
+ - cisco_telemetry_gnmi:
+ addresses:
+ - 10.128.100.34:9339
+ redial: 10s
+ - cisco_telemetry_gnmi.subscription:
+ name: stratum_counters
+ origin: openconfig-interfaces
+ path: /interfaces/interface[name=*]/state/counters
+ sample_interval: 5000ns
+ subscription_mode: sample
+
+ outputs:
+ - prometheus_client:
+ metric_version: 2
+ listen: ":9273"
+onos:
+ username: onos
+ password: rocks
+ server: localhost
+ port: 8181