Skip to content

Commit

Permalink
Dashboard improvements (#23)
Browse files Browse the repository at this point in the history
- Dashboard improvements
   - Port Dashboards to Grafana 7.2
   - Make datasource configurable through a dashboard variable (Co-authored-by: realmgic <[email protected]>)
   - Alert when 'close to' stop writes, when node is proxying

- Add docker swarm service discovery to the example
  • Loading branch information
spkesan authored Nov 16, 2020
1 parent 380d00c commit 078c612
Show file tree
Hide file tree
Showing 10 changed files with 4,673 additions and 3,992 deletions.
116 changes: 96 additions & 20 deletions config/grafana/dashboards/alerts.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
{
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "7.2.1"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "table-old",
"name": "Table (old)",
"version": ""
}
],
"annotations": {
"list": [
{
Expand All @@ -15,12 +35,19 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"iteration": 1565277670876,
"id": null,
"iteration": 1602891686933,
"links": [],
"panels": [
{
"columns": [],
"datasource": "Aerospike Prometheus",
"datasource": "${DS_AEROSPIKE_PROMETHEUS}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 24,
Expand All @@ -30,7 +57,6 @@
},
"id": 85,
"links": [],
"options": {},
"pageSize": null,
"scroll": true,
"showHeader": true,
Expand All @@ -41,12 +67,14 @@
"styles": [
{
"alias": "Time",
"align": "auto",
"dateFormat": "YYYY-MM-DD HH:mm:ss",
"pattern": "Time",
"type": "date"
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -63,6 +91,7 @@
},
{
"alias": "Alert Name",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -77,6 +106,7 @@
},
{
"alias": "Alert State",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -97,6 +127,7 @@
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -112,7 +143,8 @@
"unit": "short"
},
{
"alias": "Cluster",
"alias": "Cluster Name",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -128,7 +160,8 @@
"unit": "short"
},
{
"alias": "",
"alias": "Exporter Instance",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -145,6 +178,7 @@
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -160,7 +194,8 @@
"unit": "short"
},
{
"alias": "Host",
"alias": "Aerospike Instance",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -177,6 +212,7 @@
},
{
"alias": "Severity",
"align": "auto",
"colorMode": "row",
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand Down Expand Up @@ -214,6 +250,7 @@
},
{
"alias": "",
"align": "auto",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
Expand All @@ -227,6 +264,23 @@
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"alias": "Namespace",
"align": "auto",
"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": "ns",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
Expand All @@ -242,22 +296,19 @@
"timeShift": null,
"title": "Alerts",
"transform": "table",
"type": "table"
"type": "table-old"
}
],
"refresh": "1m",
"schemaVersion": 19,
"schemaVersion": 26,
"style": "dark",
"tags": [],
"templating": {
"list": [
{
"allValue": null,
"current": {
"text": "null",
"value": "null"
},
"datasource": "Aerospike Prometheus",
"current": {},
"datasource": "${DS_AEROSPIKE_PROMETHEUS}",
"definition": "label_values(aerospike_node_stats_uptime{job=\"aerospike\"},cluster_name)",
"hide": 0,
"includeAll": true,
Expand All @@ -278,11 +329,8 @@
},
{
"allValue": null,
"current": {
"text": "All",
"value": "$__all"
},
"datasource": "Aerospike Prometheus",
"current": {},
"datasource": "${DS_AEROSPIKE_PROMETHEUS}",
"definition": "label_values(aerospike_node_stats_uptime{job=\"aerospike\", cluster_name=~\"$cluster|$^\"},service)",
"hide": 0,
"includeAll": true,
Expand All @@ -304,8 +352,11 @@
{
"allValue": null,
"current": {
"selected": true,
"tags": [],
"text": "All",
"text": [
"All"
],
"value": [
"$__all"
]
Expand Down Expand Up @@ -343,13 +394,18 @@
}
],
"query": "1,2,3,4",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"allValue": null,
"current": {
"text": "All",
"selected": true,
"tags": [],
"text": [
"All"
],
"value": [
"$__all"
]
Expand Down Expand Up @@ -377,8 +433,28 @@
}
],
"query": "firing,pending",
"queryValue": "",
"skipUrlSync": false,
"type": "custom"
},
{
"current": {
"selected": true,
"text": "Aerospike Prometheus",
"value": "Aerospike Prometheus"
},
"hide": 0,
"includeAll": false,
"label": "Datasource",
"multi": false,
"name": "DS_AEROSPIKE_PROMETHEUS",
"options": [],
"query": "prometheus",
"queryValue": "",
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "datasource"
}
]
},
Expand Down
Loading

0 comments on commit 078c612

Please sign in to comment.