Skip to content

Commit

Permalink
Provisioning: provided example metric rate grouped by level query
Browse files Browse the repository at this point in the history
  • Loading branch information
ppaulweber committed Feb 4, 2024
1 parent b1c29fd commit 95f2560
Showing 1 changed file with 110 additions and 8 deletions.
118 changes: 110 additions & 8 deletions etc/provisioning/dashboards/Default/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"overrides": []
},
"gridPos": {
"h": 5,
"h": 9,
"w": 12,
"x": 0,
"y": 0
Expand Down Expand Up @@ -128,7 +128,7 @@
"overrides": []
},
"gridPos": {
"h": 13,
"h": 9,
"w": 12,
"x": 12,
"y": 0
Expand Down Expand Up @@ -229,10 +229,10 @@
"overrides": []
},
"gridPos": {
"h": 8,
"h": 10,
"w": 12,
"x": 0,
"y": 5
"y": 9
},
"id": 3,
"options": {
Expand Down Expand Up @@ -324,17 +324,119 @@
"overrides": []
},
"gridPos": {
"h": 15,
"h": 10,
"w": 12,
"x": 12,
"y": 9
},
"id": 5,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "right",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "fiskaly-surrealdb-datasource",
"uid": "fiskaly-surrealdb-datasource"
},
"group": true,
"groupBy": "level",
"mode": "metric",
"rate": true,
"rateFunctions": [
"count"
],
"rateInterval": "10s",
"rateZero": true,
"refId": "A",
"requery": true,
"surql": "select * from timeseries:[$from]..[$to]"
}
],
"title": "Timeseries Rate Grouped By Level",
"type": "timeseries"
},
{
"datasource": {
"type": "fiskaly-surrealdb-datasource",
"uid": "fiskaly-surrealdb-datasource"
},
"description": "",
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 9,
"w": 24,
"x": 0,
"y": 13
"y": 19
},
"id": 4,
"interval": "10s",
"options": {
"legend": {
"calcs": [],
"displayMode": "table",
"displayMode": "list",
"placement": "right",
"showLegend": true
},
Expand Down Expand Up @@ -377,7 +479,7 @@
"type": "timeseries"
}
],
"refresh": false,
"refresh": "",
"schemaVersion": 38,
"tags": [],
"templating": {
Expand Down

0 comments on commit 95f2560

Please sign in to comment.