aboutsummaryrefslogtreecommitdiffstats
path: root/performanceTests/k8s/Makefile
diff options
context:
space:
mode:
authorpawel <pawel.kasperkiewicz@nokia.com>2020-06-01 14:23:03 +0200
committerPawel <pawel.kasperkiewicz@nokia.com>2020-06-01 14:23:31 +0200
commit36e09e63f779b5ebec4391f1a444ef214850e2fe (patch)
treeab7144ec266732f0490d2259871a29011867244f /performanceTests/k8s/Makefile
parentd5c7cf6980a4e017324dde4cd041ba9496d67bf8 (diff)
Add JMeter to performance tests environment
Add influxdb as datasource, add JMeter with example test scenario Issue-ID: DCAEGEN2-608 Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com> Change-Id: I55656588d8c1f6f373fd3d04a52f39834a396c81
Diffstat (limited to 'performanceTests/k8s/Makefile')
-rw-r--r--performanceTests/k8s/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/performanceTests/k8s/Makefile b/performanceTests/k8s/Makefile
index 0802563a..86399cf0 100644
--- a/performanceTests/k8s/Makefile
+++ b/performanceTests/k8s/Makefile
@@ -1,4 +1,4 @@
-all: create-configmaps deploy-prometheus deploy-grafana display-urls
+all: create-configmaps deploy-influxdb deploy-prometheus deploy-grafana display-urls
# Prometheus configuration
PROMETHEUS_DIRECTORY = ./prometheus
@@ -12,14 +12,19 @@ DATASOURCE_CONFIGMAP = datasource.yaml
DASHBOARD_PROVIDER_CONFIGMAP = dashboards-provider.yaml
DASHBOARD_CONFIGMAP = dashboard.yaml
+#INFLUXDB configuration
+INFLUXDB_DIRECTORY = ./influxdb
+INFLUXDB_DEPLOYMENT = deployment.yaml
+
clear:
@echo "\n##### Delete configmaps and $(GRAFANA_DEPLOYMENT)(grafana, prometheus)#####"
kubectl delete -f $(GRAFANA_DIRECTORY)/$(GRAFANA_DEPLOYMENT) || true
kubectl delete -f $(GRAFANA_DIRECTORY)/$(DASHBOARD_PROVIDER_CONFIGMAP) || true
kubectl delete -f $(GRAFANA_DIRECTORY)/$(DATASOURCE_CONFIGMAP) || true
- kubectl delete -f $(GRAFANA_DIRECTORY)/$(DASHBOARD_CONFIGMAP) || true
+ kubectl delete -n onap configmap ves-grafana-dashboards || true
kubectl delete -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_DEPLOYMENT) || true
kubectl delete -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_CONFIGMAP) || true
+ kubectl delete -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_DEPLOYMENT) || true
@echo "##### DONE #####"
create-configmaps:
@@ -27,7 +32,7 @@ create-configmaps:
kubectl apply -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_CONFIGMAP)
kubectl apply -f $(GRAFANA_DIRECTORY)/$(DATASOURCE_CONFIGMAP)
kubectl apply -f $(GRAFANA_DIRECTORY)/$(DASHBOARD_PROVIDER_CONFIGMAP)
- kubectl apply -f $(GRAFANA_DIRECTORY)/$(DASHBOARD_CONFIGMAP)
+ kubectl create configmap ves-grafana-dashboards -n onap --from-file grafana/dashboards/
@echo "##### DONE #####"
deploy-grafana:
@@ -40,6 +45,11 @@ deploy-prometheus:
kubectl apply -f $(PROMETHEUS_DIRECTORY)/$(PROMETHEUS_DEPLOYMENT)
@echo "##### DONE #####"
+deploy-influxdb:
+ @echo "\n##### Deploy influxdb #####"
+ kubectl apply -f $(INFLUXDB_DIRECTORY)/$(INFLUXDB_DEPLOYMENT)
+ @echo "##### DONE #####"
+
display-urls:
@echo "\e[32m##### Prometheus : http://<WORKER_IP>:30069/ #####\e[39m"
@echo "\e[32m##### Grafana http://<WORKER_IP>:30001/ #####\e[39m"