11{
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+ },
218 "editable" : true ,
319 "fiscalYearStartMonth" : 0 ,
420 "graphTooltip" : 0 ,
7086 "x" : 0 ,
7187 "y" : 0
7288 },
73- "id" : 4 ,
89+ "id" : 5 ,
7490 "options" : {
7591 "legend" : {
7692 "calcs" : [],
89105 {
90106 "disableTextWrap" : false ,
91107 "editorMode" : " builder" ,
92- "expr" : " rate(total_messages_total[$__rate_interval]) " ,
108+ "expr" : " active_connections " ,
93109 "fullMetaSearch" : false ,
94- "includeNullMetadata" : false ,
110+ "includeNullMetadata" : true ,
95111 "legendFormat" : " __auto" ,
96112 "range" : true ,
97113 "refId" : " A" ,
98114 "useBackend" : false
99115 }
100116 ],
101- "title" : " Messages " ,
117+ "title" : " New panel " ,
102118 "type" : " timeseries"
103119 },
104120 {
266282 "x" : 0 ,
267283 "y" : 8
268284 },
269- "id" : 2 ,
285+ "id" : 4 ,
270286 "options" : {
271287 "legend" : {
272288 "calcs" : [],
285301 {
286302 "disableTextWrap" : false ,
287303 "editorMode" : " builder" ,
288- "expr" : " rate(error_count_total [$__rate_interval])" ,
304+ "expr" : " rate(total_messages_total [$__rate_interval])" ,
289305 "fullMetaSearch" : false ,
290306 "includeNullMetadata" : false ,
291307 "legendFormat" : " __auto" ,
294310 "useBackend" : false
295311 }
296312 ],
297- "title" : " Error Count - Rate " ,
313+ "title" : " Messages " ,
298314 "type" : " timeseries"
299315 },
300316 {
392408 ],
393409 "title" : " Shutdown Time" ,
394410 "type" : " timeseries"
411+ },
412+ {
413+ "datasource" : {
414+ "type" : " prometheus" ,
415+ "uid" : " prometheus"
416+ },
417+ "fieldConfig" : {
418+ "defaults" : {
419+ "color" : {
420+ "mode" : " palette-classic"
421+ },
422+ "custom" : {
423+ "axisBorderShow" : false ,
424+ "axisCenteredZero" : false ,
425+ "axisColorMode" : " text" ,
426+ "axisLabel" : " " ,
427+ "axisPlacement" : " auto" ,
428+ "barAlignment" : 0 ,
429+ "barWidthFactor" : 0.6 ,
430+ "drawStyle" : " line" ,
431+ "fillOpacity" : 0 ,
432+ "gradientMode" : " none" ,
433+ "hideFrom" : {
434+ "legend" : false ,
435+ "tooltip" : false ,
436+ "viz" : false
437+ },
438+ "insertNulls" : false ,
439+ "lineInterpolation" : " linear" ,
440+ "lineWidth" : 1 ,
441+ "pointSize" : 5 ,
442+ "scaleDistribution" : {
443+ "type" : " linear"
444+ },
445+ "showPoints" : " auto" ,
446+ "spanNulls" : false ,
447+ "stacking" : {
448+ "group" : " A" ,
449+ "mode" : " none"
450+ },
451+ "thresholdsStyle" : {
452+ "mode" : " off"
453+ }
454+ },
455+ "mappings" : [],
456+ "thresholds" : {
457+ "mode" : " absolute" ,
458+ "steps" : [
459+ {
460+ "color" : " green"
461+ },
462+ {
463+ "color" : " red" ,
464+ "value" : 80
465+ }
466+ ]
467+ }
468+ },
469+ "overrides" : []
470+ },
471+ "gridPos" : {
472+ "h" : 8 ,
473+ "w" : 12 ,
474+ "x" : 0 ,
475+ "y" : 16
476+ },
477+ "id" : 2 ,
478+ "options" : {
479+ "legend" : {
480+ "calcs" : [],
481+ "displayMode" : " list" ,
482+ "placement" : " bottom" ,
483+ "showLegend" : true
484+ },
485+ "tooltip" : {
486+ "hideZeros" : false ,
487+ "mode" : " single" ,
488+ "sort" : " none"
489+ }
490+ },
491+ "pluginVersion" : " 12.0.0+security-01" ,
492+ "targets" : [
493+ {
494+ "disableTextWrap" : false ,
495+ "editorMode" : " builder" ,
496+ "expr" : " rate(error_count_total[$__rate_interval])" ,
497+ "fullMetaSearch" : false ,
498+ "includeNullMetadata" : false ,
499+ "legendFormat" : " __auto" ,
500+ "range" : true ,
501+ "refId" : " A" ,
502+ "useBackend" : false
503+ }
504+ ],
505+ "title" : " Error Count - Rate" ,
506+ "type" : " timeseries"
395507 }
396508 ],
397509 "preload" : false ,
410522 "title" : " WebSocket App" ,
411523 "uid" : " 541066da-8c9d-47f2-aea9-65360f38dd09" ,
412524 "version" : 1
413- }
525+ }
0 commit comments