Skip to content

Commit

Permalink
[kube-prometheus-stack] Sync grafana dashboards and prometheus rules …
Browse files Browse the repository at this point in the history
…from kube-prometheus (prometheus-community#432)

* Update `sync_prometheus_rules.py` to account for runbook changes

Signed-off-by: Jake Hill <jake@naphta.uk>

* Update grafana dashboards

Signed-off-by: Jake Hill <jake@naphta.uk>

* Update prometheus rules

Signed-off-by: Jake Hill <jake@naphta.uk>

* Bump chart version to a new feature

Signed-off-by: Jake Hill <jake@naphta.uk>
  • Loading branch information
naphta committed Nov 30, 2020
1 parent 51607da commit 004e4c9
Show file tree
Hide file tree
Showing 24 changed files with 431 additions and 163 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 12.2.4
version: 12.3.0
appVersion: 0.43.2
kubeVersion: ">=1.16.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
3 changes: 3 additions & 0 deletions charts/kube-prometheus-stack/hack/sync_prometheus_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def new_representer(dumper, data):
'https://github.com/kubernetes-monitoring/kubernetes-mixin/tree/master/runbook.md#': {
'replacement': '{{ .Values.defaultRules.runbookUrl }}',
'init': ''},
'https://github.com/prometheus-operator/kube-prometheus/wiki/': {
'replacement': '{{ .Values.defaultRules.runbookUrl }}alert-name-',
'init': ''},
'job="kube-state-metrics"': {
'replacement': 'job="kube-state-metrics", namespace=~"{{ $targetNamespace }}"',
'limitGroup': ['kubernetes-apps'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,9 @@ data:
"dashes": false,
"datasource": "$datasource",
"decimals": 3,
"description": "How much error budget is left looking at our 0.990% availability gurantees?",
"description": "How much error budget is left looking at our 0.990% availability guarantees?",
"fill": 10,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -355,6 +356,7 @@ data:
"datasource": "$datasource",
"description": "How many read requests (LIST,GET) per second do the apiservers get by code?",
"fill": 10,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -463,6 +465,7 @@ data:
"datasource": "$datasource",
"description": "How many percent of read requests (LIST,GET) per second are returned with errors (5xx)?",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -556,6 +559,7 @@ data:
"datasource": "$datasource",
"description": "How many seconds is the 99th percentile for reading (LIST|GET) a given resource?",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -748,6 +752,7 @@ data:
"datasource": "$datasource",
"description": "How many write requests (POST|PUT|PATCH|DELETE) per second do the apiservers get by code?",
"fill": 10,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -856,6 +861,7 @@ data:
"datasource": "$datasource",
"description": "How many percent of write requests (POST|PUT|PATCH|DELETE) per second are returned with errors (5xx)?",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -949,6 +955,7 @@ data:
"datasource": "$datasource",
"description": "How many seconds is the 99th percentile for writing (POST|PUT|PATCH|DELETE) a given resource?",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -1054,6 +1061,7 @@ data:
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -1146,6 +1154,7 @@ data:
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -1238,6 +1247,7 @@ data:
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -1343,6 +1353,7 @@ data:
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -1435,6 +1446,7 @@ data:
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down Expand Up @@ -1527,6 +1539,7 @@ data:
"dashes": false,
"datasource": "$datasource",
"fill": 1,
"fillGradient": 0,
"gridPos": {
},
Expand Down
Loading

0 comments on commit 004e4c9

Please sign in to comment.