Skip to content

Commit

Permalink
feat: add Grafana dashboard and ServiceMonitors (#378)
Browse files Browse the repository at this point in the history
* feat: add dashboard and ServiceMonitors

* docs: allow users to research topics in depth
  • Loading branch information
apricote authored and lukasmetzner committed Oct 10, 2024
1 parent e793894 commit 86c4677
Show file tree
Hide file tree
Showing 6 changed files with 1,865 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion deploy/kubernetes/hcloud-csi.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 86c4677

Please sign in to comment.