Skip to content

Commit dc5db7b

Browse files
remove UQL from the ethereum panels
1 parent 66a55ff commit dc5db7b

1 file changed

Lines changed: 27 additions & 54 deletions

File tree

grafana/provisioning/dashboards/aligned/aggregation_mode_gateway.json

Lines changed: 27 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"editable": true,
1919
"fiscalYearStartMonth": 0,
2020
"graphTooltip": 0,
21-
"id": 6,
21+
"id": 2,
2222
"links": [],
2323
"liveNow": false,
2424
"panels": [
@@ -78,8 +78,7 @@
7878
"mode": "absolute",
7979
"steps": [
8080
{
81-
"color": "green",
82-
"value": null
81+
"color": "green"
8382
},
8483
{
8584
"color": "red",
@@ -172,8 +171,7 @@
172171
"mode": "absolute",
173172
"steps": [
174173
{
175-
"color": "green",
176-
"value": null
174+
"color": "green"
177175
},
178176
{
179177
"color": "red",
@@ -266,8 +264,7 @@
266264
"mode": "absolute",
267265
"steps": [
268266
{
269-
"color": "green",
270-
"value": null
267+
"color": "green"
271268
},
272269
{
273270
"color": "red",
@@ -360,8 +357,7 @@
360357
"mode": "absolute",
361358
"steps": [
362359
{
363-
"color": "green",
364-
"value": null
360+
"color": "green"
365361
},
366362
{
367363
"color": "red",
@@ -454,8 +450,7 @@
454450
"mode": "absolute",
455451
"steps": [
456452
{
457-
"color": "green",
458-
"value": null
453+
"color": "green"
459454
},
460455
{
461456
"color": "red",
@@ -548,8 +543,7 @@
548543
"mode": "absolute",
549544
"steps": [
550545
{
551-
"color": "green",
552-
"value": null
546+
"color": "green"
553547
},
554548
{
555549
"color": "red",
@@ -632,8 +626,7 @@
632626
"mode": "absolute",
633627
"steps": [
634628
{
635-
"color": "green",
636-
"value": null
629+
"color": "green"
637630
},
638631
{
639632
"color": "red",
@@ -717,8 +710,7 @@
717710
"mode": "absolute",
718711
"steps": [
719712
{
720-
"color": "green",
721-
"value": null
713+
"color": "green"
722714
},
723715
{
724716
"color": "red",
@@ -783,8 +775,7 @@
783775
"mode": "absolute",
784776
"steps": [
785777
{
786-
"color": "green",
787-
"value": null
778+
"color": "green"
788779
},
789780
{
790781
"color": "red",
@@ -912,13 +903,7 @@
912903
"pluginVersion": "10.1.10",
913904
"targets": [
914905
{
915-
"columns": [
916-
{
917-
"selector": "$.number",
918-
"text": "block_number",
919-
"type": "string"
920-
}
921-
],
906+
"columns": [],
922907
"datasource": {
923908
"type": "yesoreyeram-infinity-datasource",
924909
"uid": "ethereum_rpc"
@@ -933,13 +918,13 @@
933918
"refId": "A",
934919
"root_selector": "$.result",
935920
"source": "url",
936-
"type": "uql",
921+
"type": "json",
937922
"uql": "parse-json\n| scope \"result\"\n| project \"block_number\"=\"number\"",
938923
"url": "",
939924
"url_options": {
940925
"body_content_type": "application/json",
941926
"body_type": "raw",
942-
"data": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBlockByNumber\",\n \"params\": [\"latest\", false],\n \"id\": 1\n}",
927+
"data": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_blockNumber\",\n \"params\": [],\n \"id\": 1\n}",
943928
"headers": [
944929
{
945930
"key": "Content-Type",
@@ -958,7 +943,7 @@
958943
"conversions": [
959944
{
960945
"destinationType": "number",
961-
"targetField": "result"
946+
"targetField": "value"
962947
}
963948
],
964949
"fields": {}
@@ -974,6 +959,9 @@
974959
},
975960
"fieldConfig": {
976961
"defaults": {
962+
"color": {
963+
"mode": "thresholds"
964+
},
977965
"mappings": [],
978966
"thresholds": {
979967
"mode": "absolute",
@@ -1005,7 +993,7 @@
1005993
"orientation": "auto",
1006994
"reduceOptions": {
1007995
"calcs": [
1008-
"last"
996+
"lastNotNull"
1009997
],
1010998
"fields": "/.*/",
1011999
"values": false
@@ -1015,25 +1003,23 @@
10151003
"pluginVersion": "10.1.10",
10161004
"targets": [
10171005
{
1018-
"columns": [
1019-
{
1020-
"selector": "$.result",
1021-
"text": "gas_price_wei_hex"
1022-
}
1023-
],
1006+
"columns": [],
10241007
"datasource": {
10251008
"type": "yesoreyeram-infinity-datasource",
10261009
"uid": "ethereum_rpc"
10271010
},
10281011
"filters": [],
10291012
"format": "table",
10301013
"global_query_id": "",
1014+
"json_options": {
1015+
"root_is_not_array": true
1016+
},
10311017
"method": "POST",
10321018
"refId": "A",
1033-
"root_selector": "$",
1019+
"root_selector": "$.result",
10341020
"source": "url",
1035-
"type": "uql",
1036-
"uql": "parse-json\n| project \"gas_price_wei_hex\"=\"result\"",
1021+
"type": "json",
1022+
"uql": "",
10371023
"url": "",
10381024
"url_options": {
10391025
"body_content_type": "application/json",
@@ -1051,26 +1037,13 @@
10511037
],
10521038
"title": "Current Gas Price (wei)",
10531039
"transformations": [
1054-
{
1055-
"id": "calculateField",
1056-
"options": {
1057-
"mode": "reduceRow",
1058-
"reduce": {
1059-
"include": [
1060-
"result"
1061-
],
1062-
"reducer": "lastNotNull"
1063-
},
1064-
"replaceFields": true
1065-
}
1066-
},
10671040
{
10681041
"id": "convertFieldType",
10691042
"options": {
10701043
"conversions": [
10711044
{
10721045
"destinationType": "number",
1073-
"targetField": "result"
1046+
"targetField": "value"
10741047
}
10751048
],
10761049
"fields": {}
@@ -2653,6 +2626,6 @@
26532626
"timezone": "",
26542627
"title": "Aggregation Mode",
26552628
"uid": "a66a5480-6a60-4b87-9d29-4f0f446edafd",
2656-
"version": 10,
2629+
"version": 1,
26572630
"weekStart": ""
26582631
}

0 commit comments

Comments
 (0)