Skip to content

Commit

Permalink
Add labels to all monitoring objects
Browse files Browse the repository at this point in the history
  • Loading branch information
guptaNswati committed Mar 17, 2020
1 parent 951b765 commit 0d57b50
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/state-monitoring/0400_prom_role_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Role
metadata:
name: prometheus-k8s
namespace: gpu-operator-resources
labels:
app: nvidia-dcgm-exporter
rules:
- apiGroups:
- ""
Expand Down
2 changes: 2 additions & 0 deletions assets/state-monitoring/0500_prom_rolebinding_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: gpu-operator-resources
labels:
app: nvidia-dcgm-exporter
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
Expand Down
2 changes: 2 additions & 0 deletions assets/state-monitoring/0700_service_monitor_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: ServiceMonitor
metadata:
name: nvidia-dcgm-exporter
namespace: gpu-operator-resources
labels:
app: nvidia-dcgm-exporter
spec:
endpoints:
- port: gpu-metrics
Expand Down
2 changes: 2 additions & 0 deletions assets/state-monitoring/0800_configmap_openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: ConfigMap
metadata:
name: nvidia-dcgm-exporter
namespace: gpu-operator-resources
labels:
app: nvidia-dcgm-exporter
data:
entrypoint.sh: |-
#!/bin/bash
Expand Down

0 comments on commit 0d57b50

Please sign in to comment.