Skip to content

Commit

Permalink
Merge pull request #95 from gocardless/lawrence-add-keeper-columns
Browse files Browse the repository at this point in the history
stolon-keeper: uptime, needs_restart
  • Loading branch information
lawrencejones authored Dec 27, 2019
2 parents 37c3df3 + 975e882 commit 8665552
Showing 1 changed file with 67 additions and 1 deletion.
68 changes: 67 additions & 1 deletion docker/observability/grafana/dashboards/stolon-keeper.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"gnetId": null,
"graphTooltip": 1,
"id": 1,
"iteration": 1566914971768,
"iteration": 1577470765332,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -64,6 +64,57 @@
"type": "number",
"unit": "s"
},
{
"alias": "",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Value #A",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "uptime",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 1,
"mappingType": 1,
"pattern": "Value #B",
"thresholds": [],
"type": "number",
"unit": "s"
},
{
"alias": "needs_restart",
"colorMode": "cell",
"colors": [
"rgba(50, 172, 45, 0.97)",
"rgba(237, 129, 40, 0.89)",
"rgba(245, 54, 54, 0.9)"
],
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"decimals": 0,
"mappingType": 1,
"pattern": "Value #C",
"thresholds": [
"0.5",
"1"
],
"type": "number",
"unit": "short"
},
{
"alias": "",
"colorMode": null,
Expand All @@ -87,6 +138,20 @@
"intervalFactor": 1,
"legendFormat": "",
"refId": "A"
},
{
"expr": "max by (instance) (\n time() - process_start_time_seconds and (stolon_keeper_shutdown_seconds and on(instance) stolon_cluster_identifier{cluster_name=\"$cluster\", component=\"keeper\"})\n)",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "B"
},
{
"expr": "max by (instance) (\n stolon_keeper_needs_restart and on(instance) stolon_cluster_identifier{cluster_name=\"$cluster\", component=\"keeper\"}\n)",
"format": "table",
"instant": true,
"intervalFactor": 1,
"refId": "C"
}
],
"timeFrom": null,
Expand Down Expand Up @@ -469,6 +534,7 @@
},
"timepicker": {
"refresh_intervals": [
"5s",
"15s",
"30s",
"1m"
Expand Down

0 comments on commit 8665552

Please sign in to comment.