Skip to content

Commit

Permalink
feat: add dashboard and ServiceMonitors
Browse files Browse the repository at this point in the history
  • Loading branch information
apricote committed Feb 14, 2023
1 parent e445d79 commit 85ca5c8
Show file tree
Hide file tree
Showing 5 changed files with 1,851 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deploy/kubernetes/controller/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: hcloud-csi-controller-metrics
namespace: kube-system
labels:
app: hcloud-csi
app: hcloud-csi-controller
spec:
selector:
app: hcloud-csi-controller
Expand Down
4 changes: 4 additions & 0 deletions deploy/kubernetes/service-monitor/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- service-monitor.yaml
33 changes: 33 additions & 0 deletions deploy/kubernetes/service-monitor/service-monitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: hcloud-csi-controller
namespace: kube-system
labels:
release: YOUR_RELEASE
spec:
endpoints:
- port: metrics
scheme: http
jobLabel: app
selector:
matchLabels:
app: hcloud-csi-controller

---

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: hcloud-csi-node
namespace: kube-system
labels:
release: YOUR_RELEASE
spec:
endpoints:
- port: metrics
scheme: http
jobLabel: app
selector:
matchLabels:
app: hcloud-csi
Loading

0 comments on commit 85ca5c8

Please sign in to comment.