summaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/app1
diff options
context:
space:
mode:
authorRajamohan Raj <rajamohan.raj@intel.com>2020-06-18 14:55:42 -0700
committerRajamohan Raj <rajamohan.raj@intel.com>2020-06-24 11:57:04 -0700
commit94bfc956f43bcaec29f2fc9844b9ca4c35d72260 (patch)
treebc5050f2e8c6c87672e06f8da319363745f49f8f /kud/tests/vnfs/comp-app/collection/app1
parent819a687195ef9d6c8dd9753d366c0120886d7736 (diff)
Integrate collectd, prometheus and grafana.
In this patch, made neccessary changes in collectd and prometheus helm charts such that prometheus can pull data from collectd. Prometheus GUI and Grafana GUI are verified as well. Issue-ID: MULTICLOUD-1082 Signed-off-by: Rajamohan Raj <rajamohan.raj@intel.com> Change-Id: I39b7e20f46aa789272be671056a76dd926701068
Diffstat (limited to 'kud/tests/vnfs/comp-app/collection/app1')
-rw-r--r--kud/tests/vnfs/comp-app/collection/app1/helm/collectd/resources/collectd.conf14
-rw-r--r--kud/tests/vnfs/comp-app/collection/app1/helm/collectd/templates/daemonset.yaml5
-rw-r--r--kud/tests/vnfs/comp-app/collection/app1/helm/collectd/values.yaml1
3 files changed, 15 insertions, 5 deletions
diff --git a/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/resources/collectd.conf b/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/resources/collectd.conf
index b023b320..58fafa8e 100644
--- a/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/resources/collectd.conf
+++ b/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/resources/collectd.conf
@@ -25,10 +25,16 @@ LoadPlugin logfile
Timestamp true
PrintSeverity false
</Plugin>
-<Plugin "cpu">
- Interval 5
- ReportByState false
- ReportByCpu false
+# <Plugin "cpu">
+# Interval 5
+# ReportByState false
+# ReportByCpu false
+# </Plugin>
+
+<Plugin cpu>
+ ReportByState = true
+ ReportByCpu = true
+ ValuesPercentage = true
</Plugin>
<Plugin "memory">
diff --git a/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/templates/daemonset.yaml b/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/templates/daemonset.yaml
index 6935398b..5d428769 100644
--- a/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/templates/daemonset.yaml
+++ b/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/templates/daemonset.yaml
@@ -25,6 +25,11 @@ metadata:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
spec:
+ selector:
+ matchLabels:
+ app: {{ template "name" . }}
+ collector: collectd
+ release: {{ .Release.Name }}
replicas: {{ .Values.replicaCount }}
updateStrategy:
type: RollingUpdate
diff --git a/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/values.yaml b/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/values.yaml
index 41d63cbf..7957b158 100644
--- a/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/values.yaml
+++ b/kud/tests/vnfs/comp-app/collection/app1/helm/collectd/values.yaml
@@ -70,7 +70,6 @@ volumes:
collectd_prometheus:
service:
type: ClusterIP
- name: collectd
port: 9103
targetPort: 9103
selector: