Skip to content

Commit d48b39d

Browse files
Add the Current Block field using UQL
1 parent d922ad0 commit d48b39d

1 file changed

Lines changed: 261 additions & 11 deletions

File tree

grafana/provisioning/dashboards/aligned/aggregation_mode_gateway.json

Lines changed: 261 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
"h": 1,
122122
"w": 24,
123123
"x": 0,
124-
"y": 1
124+
"y": 7
125125
},
126126
"id": 11,
127127
"panels": [
@@ -600,7 +600,7 @@
600600
"h": 1,
601601
"w": 24,
602602
"x": 0,
603-
"y": 2
603+
"y": 8
604604
},
605605
"id": 8,
606606
"panels": [],
@@ -669,7 +669,7 @@
669669
"h": 8,
670670
"w": 12,
671671
"x": 0,
672-
"y": 3
672+
"y": 9
673673
},
674674
"id": 6,
675675
"options": {
@@ -739,7 +739,7 @@
739739
"h": 8,
740740
"w": 12,
741741
"x": 12,
742-
"y": 3
742+
"y": 9
743743
},
744744
"id": 7,
745745
"options": {
@@ -855,7 +855,7 @@
855855
"h": 8,
856856
"w": 12,
857857
"x": 0,
858-
"y": 11
858+
"y": 17
859859
},
860860
"id": 15,
861861
"options": {
@@ -888,38 +888,288 @@
888888
"type": "timeseries"
889889
},
890890
{
891-
"collapsed": true,
891+
"collapsed": false,
892892
"gridPos": {
893893
"h": 1,
894894
"w": 24,
895895
"x": 0,
896-
"y": 19
896+
"y": 25
897897
},
898898
"id": 12,
899899
"panels": [],
900900
"title": "Proof Aggregator",
901901
"type": "row"
902902
},
903903
{
904-
"collapsed": true,
904+
"collapsed": false,
905905
"gridPos": {
906906
"h": 1,
907907
"w": 24,
908908
"x": 0,
909-
"y": 20
909+
"y": 26
910910
},
911911
"id": 13,
912912
"panels": [],
913913
"title": "Ethereum",
914914
"type": "row"
915915
},
916+
{
917+
"datasource": {
918+
"type": "yesoreyeram-infinity-datasource",
919+
"uid": "ethereum_rpc"
920+
},
921+
"fieldConfig": {
922+
"defaults": {
923+
"color": {
924+
"mode": "thresholds"
925+
},
926+
"mappings": [],
927+
"thresholds": {
928+
"mode": "absolute",
929+
"steps": [
930+
{
931+
"color": "green",
932+
"value": null
933+
},
934+
{
935+
"color": "red",
936+
"value": 80
937+
}
938+
]
939+
}
940+
},
941+
"overrides": []
942+
},
943+
"gridPos": {
944+
"h": 6,
945+
"w": 8,
946+
"x": 0,
947+
"y": 27
948+
},
949+
"id": 21,
950+
"options": {
951+
"colorMode": "value",
952+
"graphMode": "area",
953+
"justifyMode": "auto",
954+
"orientation": "auto",
955+
"reduceOptions": {
956+
"calcs": [
957+
"last"
958+
],
959+
"fields": "/.*/",
960+
"values": false
961+
},
962+
"textMode": "auto"
963+
},
964+
"pluginVersion": "10.1.10",
965+
"targets": [
966+
{
967+
"columns": [
968+
{
969+
"selector": "$.number",
970+
"text": "block_number",
971+
"type": "string"
972+
}
973+
],
974+
"datasource": {
975+
"type": "yesoreyeram-infinity-datasource",
976+
"uid": "ethereum_rpc"
977+
},
978+
"filters": [],
979+
"format": "table",
980+
"global_query_id": "",
981+
"json_options": {
982+
"root_is_not_array": true
983+
},
984+
"method": "POST",
985+
"refId": "A",
986+
"root_selector": "$.result",
987+
"source": "url",
988+
"type": "uql",
989+
"uql": "parse-json\n| scope \"result\"\n| project \"block_number\"=\"number\"",
990+
"url": "",
991+
"url_options": {
992+
"body_content_type": "application/json",
993+
"body_type": "raw",
994+
"data": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBlockByNumber\",\n \"params\": [\"latest\", false],\n \"id\": 1\n}",
995+
"headers": [
996+
{
997+
"key": "Content-Type",
998+
"value": "application/json"
999+
}
1000+
],
1001+
"method": "POST"
1002+
}
1003+
}
1004+
],
1005+
"title": "Current Block (hex)",
1006+
"type": "stat"
1007+
},
1008+
{
1009+
"datasource": {
1010+
"type": "yesoreyeram-infinity-datasource",
1011+
"uid": "ethereum_rpc"
1012+
},
1013+
"fieldConfig": {
1014+
"defaults": {
1015+
"mappings": [],
1016+
"thresholds": {
1017+
"mode": "absolute",
1018+
"steps": [
1019+
{
1020+
"color": "green",
1021+
"value": null
1022+
},
1023+
{
1024+
"color": "red",
1025+
"value": 80
1026+
}
1027+
]
1028+
}
1029+
},
1030+
"overrides": []
1031+
},
1032+
"gridPos": {
1033+
"h": 6,
1034+
"w": 8,
1035+
"x": 8,
1036+
"y": 27
1037+
},
1038+
"id": 22,
1039+
"options": {
1040+
"colorMode": "value",
1041+
"graphMode": "area",
1042+
"justifyMode": "auto",
1043+
"orientation": "auto",
1044+
"reduceOptions": {
1045+
"calcs": [
1046+
"last"
1047+
],
1048+
"fields": "",
1049+
"values": false
1050+
},
1051+
"textMode": "auto"
1052+
},
1053+
"pluginVersion": "10.1.10",
1054+
"targets": [
1055+
{
1056+
"columns": [
1057+
{
1058+
"selector": "$.result",
1059+
"text": "gas_price_wei_hex"
1060+
}
1061+
],
1062+
"filters": [],
1063+
"format": "table",
1064+
"method": "POST",
1065+
"refId": "A",
1066+
"root_selector": "$",
1067+
"source": "url",
1068+
"type": "json",
1069+
"url": "",
1070+
"url_options": {
1071+
"body_content_type": "application/json",
1072+
"body_type": "raw",
1073+
"data": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_gasPrice\",\n \"params\": [],\n \"id\": 1\n}",
1074+
"headers": [
1075+
{
1076+
"key": "Content-Type",
1077+
"value": "application/json"
1078+
}
1079+
],
1080+
"method": "POST"
1081+
}
1082+
}
1083+
],
1084+
"title": "Gas Price (hex Wei)",
1085+
"type": "stat"
1086+
},
1087+
{
1088+
"datasource": {
1089+
"type": "yesoreyeram-infinity-datasource",
1090+
"uid": "ethereum_rpc"
1091+
},
1092+
"fieldConfig": {
1093+
"defaults": {
1094+
"mappings": [],
1095+
"thresholds": {
1096+
"mode": "absolute",
1097+
"steps": [
1098+
{
1099+
"color": "green",
1100+
"value": null
1101+
},
1102+
{
1103+
"color": "red",
1104+
"value": 80
1105+
}
1106+
]
1107+
}
1108+
},
1109+
"overrides": []
1110+
},
1111+
"gridPos": {
1112+
"h": 6,
1113+
"w": 8,
1114+
"x": 16,
1115+
"y": 27
1116+
},
1117+
"id": 23,
1118+
"options": {
1119+
"colorMode": "value",
1120+
"graphMode": "area",
1121+
"justifyMode": "auto",
1122+
"orientation": "auto",
1123+
"reduceOptions": {
1124+
"calcs": [
1125+
"last"
1126+
],
1127+
"fields": "",
1128+
"values": false
1129+
},
1130+
"textMode": "auto"
1131+
},
1132+
"pluginVersion": "10.1.10",
1133+
"targets": [
1134+
{
1135+
"columns": [
1136+
{
1137+
"selector": "$.baseFeePerGas",
1138+
"text": "base_fee_wei_hex"
1139+
}
1140+
],
1141+
"filters": [],
1142+
"format": "table",
1143+
"method": "POST",
1144+
"refId": "A",
1145+
"root_selector": "$.result",
1146+
"source": "url",
1147+
"type": "json",
1148+
"url": "",
1149+
"url_options": {
1150+
"body_content_type": "application/json",
1151+
"body_type": "raw",
1152+
"data": "{\n \"jsonrpc\": \"2.0\",\n \"method\": \"eth_getBlockByNumber\",\n \"params\": [\"latest\", false],\n \"id\": 1\n}",
1153+
"headers": [
1154+
{
1155+
"key": "Content-Type",
1156+
"value": "application/json"
1157+
}
1158+
],
1159+
"method": "POST"
1160+
}
1161+
}
1162+
],
1163+
"title": "Base Fee (hex Wei)",
1164+
"type": "stat"
1165+
},
9161166
{
9171167
"collapsed": true,
9181168
"gridPos": {
9191169
"h": 1,
9201170
"w": 24,
9211171
"x": 0,
922-
"y": 21
1172+
"y": 33
9231173
},
9241174
"id": 14,
9251175
"panels": [],
@@ -932,7 +1182,7 @@
9321182
"h": 1,
9331183
"w": 24,
9341184
"x": 0,
935-
"y": 22
1185+
"y": 34
9361186
},
9371187
"id": 16,
9381188
"panels": [],

0 commit comments

Comments
 (0)