![]() ![]() You first need to find out in which component the rule is defined (here it is kuberentesControlPlane). Here the alert KubeStatefulSetReplicasMismatch is being filtered out of the group kubernetes-apps. These changes can be assigned to a local variable and then added to the local kp object as seen in the examples above. Knowing which rules to change, the user can now use functions from the Jsonnet standard library to make these changes.īelow are examples of both a filter and an adjustment being made to the default rules. The alerting rules can be found in kube-prometheus/components/mixin/alerts The recording rules can be found in kube-prometheus/components/mixin/rules (import 'kube-prometheus/addons/pyrra.libsonnet') +Īlong with adding additional rules, we give the user the option to filter or adjust the existing rules imported by kube-prometheus/main.libsonnet. (import 'kube-prometheus/addons/external-metrics.libsonnet') + ![]() (import 'kube-prometheus/addons/custom-metrics.libsonnet') + (import 'kube-prometheus/addons/static-etcd.libsonnet') + (import 'kube-prometheus/addons/node-ports.libsonnet') + (import 'kube-prometheus/addons/managed-cluster.libsonnet') + (import 'kube-prometheus/addons/anti-affinity.libsonnet') + Uncomment the following imports to enable its patches (import 'kube-prometheus/main.libsonnet') + This document illustrates examples for rules as well as dashboards.Īs a basis, all examples in this guide are based on the base example of the kube-prometheus readme: local kp = In order to add additional rules and dashboards simply merge them onto the existing json objects. describing desired deployments of Prometheus, Alertmanager, the Prometheus Blackbox Exporter, Grafana, and several other monitoring-related services. Prometheus rules and Grafana dashboards in specific follow theįor both the Prometheus rules and the Grafana dashboards Kubernetes ConfigMaps are generated within kube-prometheus. At some point one might like to extend them, the purpose of this document is to explain how to do this.Īll manifests of kube-prometheus are generated using jsonnet. Kube-prometheus ships with a set of default Prometheus rules and Grafana dashboards. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |