feat: update terra dashboard

This commit is contained in:
auricom
2021-08-30 10:37:36 +02:00
parent 1e3a3a86b3
commit 9a263c97e6

View File

@@ -1,4 +1,40 @@
{ {
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "8.1.0"
},
{
"type": "datasource",
"id": "prometheus",
"name": "Prometheus",
"version": "1.0.0"
},
{
"type": "panel",
"id": "stat",
"name": "Stat",
"version": ""
},
{
"type": "panel",
"id": "timeseries",
"name": "Time series",
"version": ""
}
],
"annotations": { "annotations": {
"list": [ "list": [
{ {
@@ -21,12 +57,13 @@
"editable": false, "editable": false,
"gnetId": null, "gnetId": null,
"graphTooltip": 0, "graphTooltip": 0,
"iteration": 1630168073016, "id": null,
"iteration": 1630311640136,
"links": [], "links": [],
"panels": [ "panels": [
{ {
"collapsed": false, "collapsed": false,
"datasource": "Prometheus", "datasource": "${DS_PROMETHEUS}",
"gridPos": { "gridPos": {
"h": 1, "h": 1,
"w": 24, "w": 24,
@@ -40,7 +77,7 @@
"type": "row" "type": "row"
}, },
{ {
"datasource": "Prometheus", "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -101,7 +138,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -159,7 +196,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -168,9 +205,11 @@
"custom": { "custom": {
"axisLabel": "", "axisLabel": "",
"axisPlacement": "auto", "axisPlacement": "auto",
"axisSoftMax": 200,
"axisSoftMin": 0,
"barAlignment": 0, "barAlignment": 0,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 0, "fillOpacity": 20,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
@@ -193,7 +232,7 @@
"mode": "none" "mode": "none"
}, },
"thresholdsStyle": { "thresholdsStyle": {
"mode": "area" "mode": "off"
} }
}, },
"mappings": [], "mappings": [],
@@ -222,7 +261,7 @@
{ {
"id": "color", "id": "color",
"value": { "value": {
"fixedColor": "yellow", "fixedColor": "dark-yellow",
"mode": "fixed" "mode": "fixed"
} }
} }
@@ -241,7 +280,7 @@
"legend": { "legend": {
"calcs": [], "calcs": [],
"displayMode": "hidden", "displayMode": "hidden",
"placement": "right" "placement": "bottom"
}, },
"tooltip": { "tooltip": {
"mode": "single" "mode": "single"
@@ -250,7 +289,7 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "terra_pool_pairs_apr{slug=\"${pair}\"}", "expr": "sum(terra_pool_pairs_apr{slug=\"${pair}\"})",
"instant": false, "instant": false,
"interval": "", "interval": "",
"legendFormat": "APR", "legendFormat": "APR",
@@ -261,7 +300,7 @@
"type": "timeseries" "type": "timeseries"
}, },
{ {
"datasource": "Prometheus", "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -319,7 +358,7 @@
"type": "stat" "type": "stat"
}, },
{ {
"datasource": "Prometheus", "datasource": "${DS_PROMETHEUS}",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -330,7 +369,7 @@
"axisPlacement": "auto", "axisPlacement": "auto",
"barAlignment": 0, "barAlignment": 0,
"drawStyle": "line", "drawStyle": "line",
"fillOpacity": 0, "fillOpacity": 20,
"gradientMode": "none", "gradientMode": "none",
"hideFrom": { "hideFrom": {
"legend": false, "legend": false,
@@ -372,13 +411,28 @@
{ {
"matcher": { "matcher": {
"id": "byName", "id": "byName",
"options": "APR" "options": "Liquidity"
}, },
"properties": [ "properties": [
{ {
"id": "color", "id": "color",
"value": { "value": {
"fixedColor": "yellow", "fixedColor": "dark-blue",
"mode": "fixed"
}
}
]
},
{
"matcher": {
"id": "byName",
"options": "Volume (24h)"
},
"properties": [
{
"id": "color",
"value": {
"fixedColor": "dark-orange",
"mode": "fixed" "mode": "fixed"
} }
} }
@@ -397,7 +451,7 @@
"legend": { "legend": {
"calcs": [], "calcs": [],
"displayMode": "list", "displayMode": "list",
"placement": "right" "placement": "bottom"
}, },
"tooltip": { "tooltip": {
"mode": "single" "mode": "single"
@@ -406,16 +460,17 @@
"targets": [ "targets": [
{ {
"exemplar": true, "exemplar": true,
"expr": "terra_pool_pairs_liquidity{slug=\"${pair}\"}", "expr": "sum(terra_pool_pairs_liquidity{slug=\"${pair}\"})",
"instant": false, "instant": false,
"interval": "", "interval": "",
"legendFormat": "Liquidity", "legendFormat": "Liquidity",
"refId": "A" "refId": "A"
}, },
{ {
"exemplar": true, "exemplar": false,
"expr": "terra_pool_pairs_vol_24h{slug=\"${pair}\"}", "expr": "sum(terra_pool_pairs_vol_24h{slug=\"${pair}\"})",
"hide": false, "hide": false,
"instant": false,
"interval": "", "interval": "",
"legendFormat": "Volume (24h)", "legendFormat": "Volume (24h)",
"refId": "B" "refId": "B"
@@ -473,7 +528,7 @@
] ]
}, },
"time": { "time": {
"from": "now-24h", "from": "now-7d",
"to": "now" "to": "now"
}, },
"timepicker": {}, "timepicker": {},