forked from mindprince/nvidia_gpu_prometheus_exporter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
nvidia-exporter.yaml
44 lines (44 loc) · 907 Bytes
/
nvidia-exporter.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: nvidia-gpu-exporter
namespace: monitoring
labels:
app: prometheus
component: nvidia-gpu-exporter
spec:
template:
metadata:
name: nvidia-gpu-exporter
labels:
app: prometheus
component: gpu-exporter
spec:
containers:
- image: swiftdiaries/gpu_prom_metrics:latest
name: nvidia-gpu-exporter
ports:
- name: prom-gpu-exp
containerPort: 9445
hostPort: 9445
hostNetwork: true
---
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: 'true'
name: nvidia-gpu-exporter
namespace: monitoring
labels:
app: prometheus
component: node-exporter
spec:
ports:
- name: nvidia-gpu-exporter
port: 9445
protocol: TCP
selector:
app: prometheus
component: gpu-exporter
type: NodePort