Skip to content

Commit b7df808

Browse files
authored
test: Final metrics improvements (#1298)
Signed-off-by: Alfredo Gutierrez Grajeda <alfredo@hashgraph.com>
1 parent e0cbcd7 commit b7df808

File tree

17 files changed

+7120
-3984
lines changed

17 files changed

+7120
-3984
lines changed

charts/block-node-server/dashboards/Hiero-Block-Node-Plugins/app-core.json

Lines changed: 545 additions & 0 deletions
Large diffs are not rendered by default.

charts/block-node-server/dashboards/Hiero-Block-Node-Plugins/block-access-service.json

Lines changed: 925 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 365 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,365 @@
1+
{
2+
"annotations": {
3+
"list": [
4+
{
5+
"builtIn": 1,
6+
"datasource": {
7+
"type": "grafana",
8+
"uid": "-- Grafana --"
9+
},
10+
"enable": true,
11+
"hide": true,
12+
"iconColor": "rgba(0, 211, 255, 1)",
13+
"name": "Annotations & Alerts",
14+
"type": "dashboard"
15+
}
16+
]
17+
},
18+
"editable": true,
19+
"fiscalYearStartMonth": 0,
20+
"graphTooltip": 0,
21+
"id": 15,
22+
"links": [],
23+
"panels": [
24+
{
25+
"datasource": {
26+
"type": "prometheus",
27+
"uid": "prometheus"
28+
},
29+
"fieldConfig": {
30+
"defaults": {
31+
"color": {
32+
"mode": "thresholds"
33+
},
34+
"mappings": [],
35+
"thresholds": {
36+
"mode": "absolute",
37+
"steps": [
38+
{
39+
"color": "green",
40+
"value": null
41+
}
42+
]
43+
},
44+
"unit": "reqps"
45+
},
46+
"overrides": []
47+
},
48+
"gridPos": {
49+
"h": 8,
50+
"w": 6,
51+
"x": 0,
52+
"y": 0
53+
},
54+
"id": 2,
55+
"options": {
56+
"colorMode": "value",
57+
"graphMode": "area",
58+
"justifyMode": "auto",
59+
"orientation": "auto",
60+
"percentChangeColorMode": "standard",
61+
"reduceOptions": {
62+
"calcs": [
63+
"lastNotNull"
64+
],
65+
"fields": "",
66+
"values": false
67+
},
68+
"showPercentChange": false,
69+
"textMode": "auto",
70+
"wideLayout": true
71+
},
72+
"pluginVersion": "11.4.0",
73+
"targets": [
74+
{
75+
"datasource": {
76+
"type": "prometheus",
77+
"uid": "prometheus"
78+
},
79+
"editorMode": "code",
80+
"exemplar": false,
81+
"expr": "rate(hiero_block_node_server_status_requests_total[$__rate_interval])",
82+
"instant": true,
83+
"legendFormat": "__auto",
84+
"range": false,
85+
"refId": "A"
86+
}
87+
],
88+
"title": "Server Status RPS",
89+
"type": "stat"
90+
},
91+
{
92+
"datasource": {
93+
"type": "prometheus",
94+
"uid": "prometheus"
95+
},
96+
"fieldConfig": {
97+
"defaults": {
98+
"color": {
99+
"mode": "palette-classic"
100+
},
101+
"custom": {
102+
"axisBorderShow": false,
103+
"axisCenteredZero": false,
104+
"axisColorMode": "text",
105+
"axisLabel": "",
106+
"axisPlacement": "auto",
107+
"barAlignment": 0,
108+
"barWidthFactor": 0.6,
109+
"drawStyle": "line",
110+
"fillOpacity": 0,
111+
"gradientMode": "none",
112+
"hideFrom": {
113+
"legend": false,
114+
"tooltip": false,
115+
"viz": false
116+
},
117+
"insertNulls": false,
118+
"lineInterpolation": "linear",
119+
"lineWidth": 1,
120+
"pointSize": 5,
121+
"scaleDistribution": {
122+
"type": "linear"
123+
},
124+
"showPoints": "auto",
125+
"spanNulls": false,
126+
"stacking": {
127+
"group": "A",
128+
"mode": "none"
129+
},
130+
"thresholdsStyle": {
131+
"mode": "off"
132+
}
133+
},
134+
"mappings": [],
135+
"thresholds": {
136+
"mode": "absolute",
137+
"steps": [
138+
{
139+
"color": "green",
140+
"value": null
141+
}
142+
]
143+
},
144+
"unit": "reqps"
145+
},
146+
"overrides": []
147+
},
148+
"gridPos": {
149+
"h": 8,
150+
"w": 18,
151+
"x": 6,
152+
"y": 0
153+
},
154+
"id": 1,
155+
"options": {
156+
"legend": {
157+
"calcs": [],
158+
"displayMode": "list",
159+
"placement": "bottom",
160+
"showLegend": true
161+
},
162+
"tooltip": {
163+
"mode": "single",
164+
"sort": "none"
165+
}
166+
},
167+
"pluginVersion": "11.4.0",
168+
"targets": [
169+
{
170+
"datasource": {
171+
"type": "prometheus",
172+
"uid": "prometheus"
173+
},
174+
"editorMode": "code",
175+
"expr": "rate(hiero_block_node_server_status_requests_total[$__rate_interval])",
176+
"legendFormat": "__auto",
177+
"range": true,
178+
"refId": "A"
179+
}
180+
],
181+
"title": "Server Status RPS",
182+
"type": "timeseries"
183+
},
184+
{
185+
"datasource": {
186+
"type": "prometheus",
187+
"uid": "prometheus"
188+
},
189+
"fieldConfig": {
190+
"defaults": {
191+
"color": {
192+
"mode": "thresholds"
193+
},
194+
"decimals": 0,
195+
"mappings": [],
196+
"thresholds": {
197+
"mode": "absolute",
198+
"steps": [
199+
{
200+
"color": "green",
201+
"value": null
202+
}
203+
]
204+
},
205+
"unit": "none"
206+
},
207+
"overrides": []
208+
},
209+
"gridPos": {
210+
"h": 8,
211+
"w": 6,
212+
"x": 0,
213+
"y": 8
214+
},
215+
"id": 3,
216+
"options": {
217+
"colorMode": "value",
218+
"graphMode": "area",
219+
"justifyMode": "auto",
220+
"orientation": "auto",
221+
"percentChangeColorMode": "standard",
222+
"reduceOptions": {
223+
"calcs": [
224+
"lastNotNull"
225+
],
226+
"fields": "",
227+
"values": false
228+
},
229+
"showPercentChange": false,
230+
"textMode": "auto",
231+
"wideLayout": true
232+
},
233+
"pluginVersion": "11.4.0",
234+
"targets": [
235+
{
236+
"datasource": {
237+
"type": "prometheus",
238+
"uid": "prometheus"
239+
},
240+
"editorMode": "code",
241+
"exemplar": false,
242+
"expr": "sum(increase((hiero_block_node_server_status_requests_total[$__range])))",
243+
"instant": true,
244+
"legendFormat": "__auto",
245+
"range": false,
246+
"refId": "A"
247+
}
248+
],
249+
"title": "Server Status Requests (in range)",
250+
"type": "stat"
251+
},
252+
{
253+
"datasource": {
254+
"type": "prometheus",
255+
"uid": "prometheus"
256+
},
257+
"fieldConfig": {
258+
"defaults": {
259+
"color": {
260+
"mode": "palette-classic"
261+
},
262+
"custom": {
263+
"axisBorderShow": false,
264+
"axisCenteredZero": false,
265+
"axisColorMode": "text",
266+
"axisLabel": "",
267+
"axisPlacement": "auto",
268+
"barAlignment": 0,
269+
"barWidthFactor": 0.6,
270+
"drawStyle": "line",
271+
"fillOpacity": 0,
272+
"gradientMode": "none",
273+
"hideFrom": {
274+
"legend": false,
275+
"tooltip": false,
276+
"viz": false
277+
},
278+
"insertNulls": false,
279+
"lineInterpolation": "linear",
280+
"lineWidth": 1,
281+
"pointSize": 5,
282+
"scaleDistribution": {
283+
"type": "linear"
284+
},
285+
"showPoints": "auto",
286+
"spanNulls": false,
287+
"stacking": {
288+
"group": "A",
289+
"mode": "none"
290+
},
291+
"thresholdsStyle": {
292+
"mode": "off"
293+
}
294+
},
295+
"decimals": 0,
296+
"mappings": [],
297+
"thresholds": {
298+
"mode": "absolute",
299+
"steps": [
300+
{
301+
"color": "green",
302+
"value": null
303+
}
304+
]
305+
},
306+
"unit": "none"
307+
},
308+
"overrides": []
309+
},
310+
"gridPos": {
311+
"h": 8,
312+
"w": 18,
313+
"x": 6,
314+
"y": 8
315+
},
316+
"id": 4,
317+
"options": {
318+
"legend": {
319+
"calcs": [],
320+
"displayMode": "list",
321+
"placement": "bottom",
322+
"showLegend": true
323+
},
324+
"tooltip": {
325+
"mode": "single",
326+
"sort": "none"
327+
}
328+
},
329+
"pluginVersion": "11.4.0",
330+
"targets": [
331+
{
332+
"datasource": {
333+
"type": "prometheus",
334+
"uid": "prometheus"
335+
},
336+
"editorMode": "code",
337+
"exemplar": false,
338+
"expr": "sum(increase((hiero_block_node_server_status_requests_total[$__range])))",
339+
"instant": false,
340+
"legendFormat": "__auto",
341+
"range": true,
342+
"refId": "A"
343+
}
344+
],
345+
"title": "Server Status Requests (Over Time)",
346+
"type": "timeseries"
347+
}
348+
],
349+
"preload": false,
350+
"schemaVersion": 40,
351+
"tags": [],
352+
"templating": {
353+
"list": []
354+
},
355+
"time": {
356+
"from": "now-5m",
357+
"to": "now"
358+
},
359+
"timepicker": {},
360+
"timezone": "browser",
361+
"title": "Block-Node Service API",
362+
"uid": "cenvm7m2rt1j4e",
363+
"version": 2,
364+
"weekStart": ""
365+
}

0 commit comments

Comments
 (0)