diff --git a/cluster/apps/monitoring/kube-prometheus-stack/grafana-dashboards/terra.json b/cluster/apps/monitoring/kube-prometheus-stack/grafana-dashboards/terra.json index ae984f883..9b78f7da2 100644 --- a/cluster/apps/monitoring/kube-prometheus-stack/grafana-dashboards/terra.json +++ b/cluster/apps/monitoring/kube-prometheus-stack/grafana-dashboards/terra.json @@ -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": { "list": [ { @@ -21,12 +57,13 @@ "editable": false, "gnetId": null, "graphTooltip": 0, - "iteration": 1630168073016, + "id": null, + "iteration": 1630311640136, "links": [], "panels": [ { "collapsed": false, - "datasource": "Prometheus", + "datasource": "${DS_PROMETHEUS}", "gridPos": { "h": 1, "w": 24, @@ -40,7 +77,7 @@ "type": "row" }, { - "datasource": "Prometheus", + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "color": { @@ -101,7 +138,7 @@ "type": "stat" }, { - "datasource": "Prometheus", + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "color": { @@ -159,7 +196,7 @@ "type": "stat" }, { - "datasource": "Prometheus", + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "color": { @@ -168,9 +205,11 @@ "custom": { "axisLabel": "", "axisPlacement": "auto", + "axisSoftMax": 200, + "axisSoftMin": 0, "barAlignment": 0, "drawStyle": "line", - "fillOpacity": 0, + "fillOpacity": 20, "gradientMode": "none", "hideFrom": { "legend": false, @@ -193,7 +232,7 @@ "mode": "none" }, "thresholdsStyle": { - "mode": "area" + "mode": "off" } }, "mappings": [], @@ -222,7 +261,7 @@ { "id": "color", "value": { - "fixedColor": "yellow", + "fixedColor": "dark-yellow", "mode": "fixed" } } @@ -241,7 +280,7 @@ "legend": { "calcs": [], "displayMode": "hidden", - "placement": "right" + "placement": "bottom" }, "tooltip": { "mode": "single" @@ -250,7 +289,7 @@ "targets": [ { "exemplar": true, - "expr": "terra_pool_pairs_apr{slug=\"${pair}\"}", + "expr": "sum(terra_pool_pairs_apr{slug=\"${pair}\"})", "instant": false, "interval": "", "legendFormat": "APR", @@ -261,7 +300,7 @@ "type": "timeseries" }, { - "datasource": "Prometheus", + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "color": { @@ -319,7 +358,7 @@ "type": "stat" }, { - "datasource": "Prometheus", + "datasource": "${DS_PROMETHEUS}", "fieldConfig": { "defaults": { "color": { @@ -330,7 +369,7 @@ "axisPlacement": "auto", "barAlignment": 0, "drawStyle": "line", - "fillOpacity": 0, + "fillOpacity": 20, "gradientMode": "none", "hideFrom": { "legend": false, @@ -372,13 +411,28 @@ { "matcher": { "id": "byName", - "options": "APR" + "options": "Liquidity" }, "properties": [ { "id": "color", "value": { - "fixedColor": "yellow", + "fixedColor": "dark-blue", + "mode": "fixed" + } + } + ] + }, + { + "matcher": { + "id": "byName", + "options": "Volume (24h)" + }, + "properties": [ + { + "id": "color", + "value": { + "fixedColor": "dark-orange", "mode": "fixed" } } @@ -397,7 +451,7 @@ "legend": { "calcs": [], "displayMode": "list", - "placement": "right" + "placement": "bottom" }, "tooltip": { "mode": "single" @@ -406,16 +460,17 @@ "targets": [ { "exemplar": true, - "expr": "terra_pool_pairs_liquidity{slug=\"${pair}\"}", + "expr": "sum(terra_pool_pairs_liquidity{slug=\"${pair}\"})", "instant": false, "interval": "", "legendFormat": "Liquidity", "refId": "A" }, { - "exemplar": true, - "expr": "terra_pool_pairs_vol_24h{slug=\"${pair}\"}", + "exemplar": false, + "expr": "sum(terra_pool_pairs_vol_24h{slug=\"${pair}\"})", "hide": false, + "instant": false, "interval": "", "legendFormat": "Volume (24h)", "refId": "B" @@ -473,7 +528,7 @@ ] }, "time": { - "from": "now-24h", + "from": "now-7d", "to": "now" }, "timepicker": {},