Closed ghost closed 5 years ago
Custom dashboards you need to set them as a CM with a grafana_dashboar: "1" label. Check existent dashboards. Alerting rules, you need to create a k8s object manifest PrometheusRules. you can kubectl get PrometheusRules and check the examples on how you can do this.
/close
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
This issue is being automatically closed due to inactivity.
Is your feature request related to a problem? Please describe. After going through the documentation, and examining the project, I am still not clear how you're supposed to install custom grafana dashboards and custom alertmanager rules.
The section in the readme which pertains to developing rules and dashboards suggests to add changes to the original
kube-prometheus
repo, then they will be synced by thehack
scripts: https://github.com/helm/charts/tree/master/stable/prometheus-operator#developing-prometheus-rules-and-grafana-dashboardsHowever, the
kube-prometheus
project states the idea is to use it as a library or package, and then extend the rules and dashboards with jsonnet in your own project.Am I understanding this correctly, that the only way to customize rules and dashboards is to add PRs to the external repos, and there's no way to pass them as values to the
prometeus-operator
chart?Describe the solution you'd like A clear description on how to implement a workflow for adding custom grafana dashboards and alertmanager rules.