From b373b4f0e193b84908f1671202a39e20c09a2a47 Mon Sep 17 00:00:00 2001 From: kjaniak Date: Tue, 30 Jul 2019 09:32:56 +0200 Subject: Add Prometheus deployment for HV-VES performance tests - cloud Script for cloud is updated with proper prometheus config and deployment. Change-Id: Icf2527e76bc2028807653313c8ec978d779c6ec9 Issue-ID: DCAEGEN2-1692 Signed-off-by: kjaniak --- tools/performance/cloud/prometheus-deployment.yaml | 76 ++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 tools/performance/cloud/prometheus-deployment.yaml (limited to 'tools/performance/cloud/prometheus-deployment.yaml') diff --git a/tools/performance/cloud/prometheus-deployment.yaml b/tools/performance/cloud/prometheus-deployment.yaml new file mode 100644 index 00000000..d531f588 --- /dev/null +++ b/tools/performance/cloud/prometheus-deployment.yaml @@ -0,0 +1,76 @@ +# ============LICENSE_START======================================================= +# dcaegen2-collectors-veshv +# ================================================================================ +# Copyright (C) 2019 NOKIA +# ================================================================================ +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# ============LICENSE_END========================================================= + +apiVersion: extensions/v1beta1 +kind: Deployment +metadata: + name: prometheus-hv-ves-deployment + namespace: onap + labels: + app: hv-collector-prometheus +spec: + replicas: 1 + selector: + matchLabels: + app: hv-collector-prometheus + template: + metadata: + labels: + app: hv-collector-prometheus + spec: + containers: + - name: hv-collector-prometheus + image: prom/prometheus + args: + - "--config.file=/etc/prometheus/prometheus.yml" + - "--storage.tsdb.path=/prometheus/" + ports: + - containerPort: 9090 + volumeMounts: + - name: prometheus-config-volume + mountPath: /etc/prometheus/ + - name: prometheus-storage-volume + mountPath: /prometheus/ + volumes: + - name: prometheus-config-volume + configMap: + defaultMode: 420 + name: prometheus-server-conf + + - name: prometheus-storage-volume + emptyDir: {} +--- +apiVersion: v1 +kind: Service +metadata: + name: prometheus-service + namespace: onap + labels: + app: hv-collector-prometheus + annotations: + prometheus.io/scrape: 'true' + prometheus.io/port: '9090' + +spec: + selector: + app: hv-collector-prometheus + type: NodePort + ports: + - port: 8080 + targetPort: 9090 + nodePort: 30000 -- cgit 1.2.3-korg