This repository has been archived on 2023-04-02. You can view files and clone it, but cannot push or open issues or pull requests.
gitops-tbrnt/monitoring/vendor/github.com/coreos/kube-prometheus/jsonnet/kube-prometheus/rules/general.libsonnet
Tobias Brunner d14fbc6e17
All checks were successful
continuous-integration/drone/push Build is passing
upgrade monitoring stack to latest and greatest
2020-05-04 21:13:34 +02:00

20 lines
394 B
Plaintext

{
prometheusRules+:: {
groups+: [
{
name: 'kube-prometheus-general.rules',
rules: [
{
expr: 'count without(instance, pod, node) (up == 1)',
record: 'count:up1',
},
{
expr: 'count without(instance, pod, node) (up == 0)',
record: 'count:up0',
},
],
},
],
},
}