Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Grafana dashboard and ServiceMonitors #378

Merged
merged 2 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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