Add new metrics for performance tests
[dcaegen2/collectors/hv-ves.git] / tools / performance / cloud / grafana-deployment.yaml
1 # ============LICENSE_START=======================================================\r
2 # dcaegen2-collectors-veshv\r
3 # ================================================================================\r
4 # Copyright (C) 2019 NOKIA\r
5 # ================================================================================\r
6 # Licensed under the Apache License, Version 2.0 (the "License");\r
7 # you may not use this file except in compliance with the License.\r
8 # You may obtain a copy of the License at\r
9 #\r
10 #      http://www.apache.org/licenses/LICENSE-2.0\r
11 #\r
12 # Unless required by applicable law or agreed to in writing, software\r
13 # distributed under the License is distributed on an "AS IS" BASIS,\r
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
15 # See the License for the specific language governing permissions and\r
16 # limitations under the License.\r
17 # ============LICENSE_END=========================================================\r
18 \r
19 apiVersion: extensions/v1beta1\r
20 kind: Deployment\r
21 metadata:\r
22   name: grafana-hv-ves-deployment\r
23   namespace: onap\r
24   labels:\r
25     app: hv-collector-grafana\r
26 spec:\r
27   replicas: 1\r
28   selector:\r
29     matchLabels:\r
30       app: hv-collector-grafana\r
31   template:\r
32     metadata:\r
33       labels:\r
34         app: hv-collector-grafana\r
35     spec:\r
36       containers:\r
37       - name: hv-collector-grafana\r
38         image: grafana/grafana\r
39         env:\r
40         - name: GF_AUTH_DISABLE_LOGIN_FORM\r
41           value: "true"\r
42         - name: GF_AUTH_DISABLE_SIGNOUT_MENU\r
43           value: "true"\r
44         - name: GF_AUTH_ANONYMOUS_ENABLED\r
45           value: "true"\r
46         - name: GF_AUTH_ANONYMOUS_ORG_ROLE\r
47           value: "Admin"\r
48         - name: FOLDER\r
49           value: "/tmp/dashboards"\r
50         volumeMounts:\r
51         - name: grafana-datasources\r
52           mountPath: /etc/grafana/provisioning/datasources\r
53         - name: grafana-dashboards\r
54           mountPath: /etc/grafana/provisioning/dashboards\r
55         - name: grafana-connections\r
56           mountPath: /grafana/connections\r
57         - name: grafana-performance-tests\r
58           mountPath: /grafana/performance-tests\r
59         - name: grafana-processing\r
60           mountPath: /grafana/processing\r
61         - name: grafana-kafka-and-producers\r
62           mountPath: /grafana/kafka-and-producers\r
63         - name: grafana-k8s-metrics\r
64           mountPath: /grafana/k8s-metrics\r
65       volumes:\r
66       - name: grafana-datasources\r
67         configMap:\r
68           name: grafana-datasources\r
69       - name: grafana-dashboards\r
70         configMap:\r
71           name: grafana-dashboards\r
72       - name: grafana-connections\r
73         configMap:\r
74           name: grafana-connections\r
75       - name: grafana-performance-tests\r
76         configMap:\r
77           name: grafana-performance-tests\r
78       - name: grafana-processing\r
79         configMap:\r
80           name: grafana-processing\r
81       - name: grafana-kafka-and-producers\r
82         configMap:\r
83           name: grafana-kafka-and-producers\r
84       - name: grafana-k8s-metrics\r
85         configMap:\r
86           name: grafana-k8s-metrics\r
87 ---\r
88 apiVersion: v1\r
89 kind: Service\r
90 metadata:\r
91   name: grafana-service\r
92   namespace: onap\r
93   labels:\r
94     app: hv-collector-grafana\r
95   annotations:\r
96     prometheus.io/scrape: 'true'\r
97     prometheus.io/port:   '3000'\r
98 spec:\r
99   selector:\r
100     app: hv-collector-grafana\r
101   type: NodePort\r
102   ports:\r
103   - port: 3000\r
104     targetPort: 3000\r
105     nodePort: 30001\r
106 \r