Skip to content

Commit

Permalink
Merge pull request #42 from metalmatze/dashboard
Browse files Browse the repository at this point in the history
Show the rate of reconciles and configmap changes
  • Loading branch information
metalmatze committed Feb 14, 2020
2 parents a60a3d5 + 6abacf5 commit 11e63ca
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
36 changes: 16 additions & 20 deletions examples/dashboards/receive-controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@
"height": "250px",
"panels": [
{
"aliasColors": {
"error": "#E24D42"
},
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 10,
"fill": 1,
"id": 1,
"legend": {
"avg": false,
Expand All @@ -33,7 +31,7 @@
"values": false
},
"lines": true,
"linewidth": 0,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null as zero",
"percentage": false,
Expand All @@ -43,15 +41,15 @@
"seriesOverrides": [ ],
"spaceLength": 10,
"span": 6,
"stack": true,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(thanos_receive_controller_reconcile_errors_total{namespace=\"$namespace\",job=~\"thanos-receive-controller.*\"}[$interval])) / sum(rate(thanos_receive_controller_reconcile_attempts_total{namespace=\"$namespace\",job=~\"thanos-receive-controller.*\"}[$interval]))",
"expr": "thanos_receive_controller_reconcile_attempts_total{namespace=\"$namespace\",job=~\"thanos-receive-controller.*\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "error",
"refId": "A",
"legendFormat": "rate",
"legendLink": null,
"step": 10
}
],
Expand All @@ -74,7 +72,7 @@
},
"yaxes": [
{
"format": "percentunit",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
Expand Down Expand Up @@ -180,14 +178,12 @@
"height": "250px",
"panels": [
{
"aliasColors": {
"error": "#E24D42"
},
"aliasColors": { },
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "$datasource",
"fill": 10,
"fill": 1,
"id": 3,
"legend": {
"avg": false,
Expand All @@ -199,7 +195,7 @@
"values": false
},
"lines": true,
"linewidth": 0,
"linewidth": 1,
"links": [ ],
"nullPointMode": "null as zero",
"percentage": false,
Expand All @@ -209,15 +205,15 @@
"seriesOverrides": [ ],
"spaceLength": 10,
"span": 6,
"stack": true,
"stack": false,
"steppedLine": false,
"targets": [
{
"expr": "sum(rate(thanos_receive_controller_configmap_change_errors_total{namespace=\"$namespace\",job=~\"thanos-receive-controller.*\"}[$interval])) / sum(rate(thanos_receive_controller_configmap_change_attempts_total{namespace=\"$namespace\",job=~\"thanos-receive-controller.*\"}[$interval]))",
"expr": "thanos_receive_controller_configmap_change_attempts_total{namespace=\"$namespace\",job=~\"thanos-receive-controller.*\"}",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "error",
"refId": "A",
"legendFormat": "rate",
"legendLink": null,
"step": 10
}
],
Expand All @@ -240,7 +236,7 @@
},
"yaxes": [
{
"format": "percentunit",
"format": "short",
"label": null,
"logBase": 1,
"max": null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ local g = import 'thanos-mixin/lib/thanos-grafana-builder/builder.libsonnet';
g.row('Reconcile Attempts')
.addPanel(
g.panel('Rate') +
g.qpsErrTotalPanel(
'thanos_receive_controller_reconcile_errors_total{namespace="$namespace",%(thanosReceiveControllerSelector)s}' % $._config,
g.queryPanel(
'thanos_receive_controller_reconcile_attempts_total{namespace="$namespace",%(thanosReceiveControllerSelector)s}' % $._config,
'rate'
)
)
.addPanel(
Expand All @@ -27,9 +27,9 @@ local g = import 'thanos-mixin/lib/thanos-grafana-builder/builder.libsonnet';
g.row('Configmap Changes')
.addPanel(
g.panel('Rate') +
g.qpsErrTotalPanel(
'thanos_receive_controller_configmap_change_errors_total{namespace="$namespace",%(thanosReceiveControllerSelector)s}' % $._config,
g.queryPanel(
'thanos_receive_controller_configmap_change_attempts_total{namespace="$namespace",%(thanosReceiveControllerSelector)s}' % $._config,
'rate',
)
)
.addPanel(
Expand Down

0 comments on commit 11e63ca

Please sign in to comment.