diff options
author | Pawel Kasperkiewicz <pawel.kasperkiewicz@nokia.com> | 2020-06-04 16:56:48 +0200 |
---|---|---|
committer | Adam Wudzinski <adam.wudzinski@nokia.com> | 2020-06-04 18:52:41 +0200 |
commit | 3b6ba181623e844d5012362209d2f29616315395 (patch) | |
tree | 703abb4398d4a8e328acdaace390c140192fd5b7 /performanceTests/k8s/node-exporter.yaml | |
parent | 36e09e63f779b5ebec4391f1a444ef214850e2fe (diff) |
Add CPU/RAM measurements collection
Add mechanism for CPU/RAM measurements collection from k8s nodes and from JMeter VM
Issue-ID: DCAEGEN2-608
Signed-off-by: Pawel <pawel.kasperkiewicz@nokia.com>
Change-Id: I78af2906254a19da383c7bae9ec919eadd326873
Diffstat (limited to 'performanceTests/k8s/node-exporter.yaml')
-rw-r--r-- | performanceTests/k8s/node-exporter.yaml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/performanceTests/k8s/node-exporter.yaml b/performanceTests/k8s/node-exporter.yaml new file mode 100644 index 00000000..26fa7847 --- /dev/null +++ b/performanceTests/k8s/node-exporter.yaml @@ -0,0 +1,39 @@ +apiVersion: v1 +kind: Service +metadata: + annotations: + prometheus.io/scrape: 'true' + labels: + app: node-exporter + name: node-exporter + name: node-exporter +spec: + clusterIP: None + ports: + - name: scrape + port: 9100 + protocol: TCP + selector: + app: node-exporter + type: ClusterIP +--- +apiVersion: extensions/v1beta1 +kind: DaemonSet +metadata: + name: node-exporter +spec: + template: + metadata: + labels: + app: node-exporter + name: node-exporter + spec: + containers: + - image: prom/node-exporter + name: node-exporter + ports: + - containerPort: 9100 + hostPort: 9100 + name: scrape + hostNetwork: true + hostPID: true |