Skip to content

Commit

Permalink
Merge pull request #70 from libp2p/marco/grafana-multiple-instances
Browse files Browse the repository at this point in the history
feat: Handle multiple instances in stock grafana dashboard
  • Loading branch information
MarcoPolo authored Jul 7, 2022
2 parents 40d71c4 + 55a7225 commit 6a2fd1b
Showing 1 changed file with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_streams{scope=\"system\"}",
"interval": "",
"legendFormat": "{{dir}}",
"legendFormat": "{{dir}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -358,7 +358,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_streams{scope=\"transient\"}",
"interval": "",
"legendFormat": "{{dir}}",
"legendFormat": "{{dir}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -448,7 +448,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_streams{scope=\"service\"}",
"interval": "",
"legendFormat": "{{dir}} {{service}}",
"legendFormat": "{{dir}} {{service}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -538,7 +538,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_streams{scope=\"protocol\"}",
"interval": "",
"legendFormat": "{{dir}} {{protocol}}",
"legendFormat": "{{dir}} {{protocol}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -628,7 +628,7 @@
"exemplar": true,
"expr": "histogram_quantile(0.50, (rcmgr_trace_metrics_peer_streams_bucket - rcmgr_trace_metrics_peer_streams_negative_bucket)) - 0.1",
"interval": "",
"legendFormat": "p50 {{dir}} streams per peer",
"legendFormat": "p50 {{dir}} streams per peer – {{instance}}",
"refId": "A"
},
{
Expand All @@ -640,7 +640,7 @@
"expr": "histogram_quantile(0.90, (rcmgr_trace_metrics_peer_streams_bucket - rcmgr_trace_metrics_peer_streams_negative_bucket)) - 0.1",
"hide": false,
"interval": "",
"legendFormat": "p90 {{dir}} streams per peer",
"legendFormat": "p90 {{dir}} streams per peer – {{instance}}",
"refId": "B"
},
{
Expand All @@ -652,7 +652,7 @@
"expr": "histogram_quantile(1, (rcmgr_trace_metrics_peer_streams_bucket - rcmgr_trace_metrics_peer_streams_negative_bucket)) - 0.1",
"hide": false,
"interval": "",
"legendFormat": "max {{dir}} streams per peer",
"legendFormat": "max {{dir}} streams per peer – {{instance}}",
"refId": "C"
}
],
Expand Down Expand Up @@ -713,15 +713,15 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": false,
"expr": "rcmgr_trace_metrics_peer_streams_bucket{dir=\"inbound\"}-rcmgr_trace_metrics_peer_streams_negative_bucket{dir=\"inbound\"}",
"expr": "sum without (instance) (rcmgr_trace_metrics_peer_streams_bucket{dir=\"inbound\"}-rcmgr_trace_metrics_peer_streams_negative_bucket{dir=\"inbound\"})",
"format": "heatmap",
"hide": false,
"interval": "",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"title": "Current inbound streams per peer histogram",
"title": "Current inbound streams per peer histogram. Across all instances",
"type": "bargauge"
},
{
Expand Down Expand Up @@ -778,15 +778,15 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": false,
"expr": "rcmgr_trace_metrics_peer_streams_bucket{dir=\"outbound\"}-rcmgr_trace_metrics_peer_streams_negative_bucket{dir=\"outbound\"}",
"expr": "sum without (instance) (rcmgr_trace_metrics_peer_streams_bucket{dir=\"outbound\"}-rcmgr_trace_metrics_peer_streams_negative_bucket{dir=\"outbound\"})",
"format": "heatmap",
"hide": false,
"interval": "",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"title": "Current outbound streams per peer histogram",
"title": "Current outbound streams per peer histogram. Across all instances",
"type": "bargauge"
},
{
Expand Down Expand Up @@ -903,7 +903,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_connections{scope=\"system\"}",
"interval": "",
"legendFormat": "{{dir}}",
"legendFormat": "{{dir}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -991,7 +991,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_connections{scope=\"transient\"}",
"interval": "",
"legendFormat": "{{dir}}",
"legendFormat": "{{dir}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1100,7 +1100,7 @@
"exemplar": true,
"expr": "histogram_quantile(0.50, (rcmgr_trace_metrics_peer_connections_bucket - rcmgr_trace_metrics_peer_connections_negative_bucket)) - 0.1",
"interval": "",
"legendFormat": "p50 {{dir}} connections per peer",
"legendFormat": "p50 {{dir}} connections per peer – {{instance}}",
"refId": "A"
},
{
Expand All @@ -1112,7 +1112,7 @@
"expr": "histogram_quantile(0.90, (rcmgr_trace_metrics_peer_connections_bucket - rcmgr_trace_metrics_peer_connections_negative_bucket)) - 0.1",
"hide": false,
"interval": "",
"legendFormat": "p90 {{dir}} connections per peer",
"legendFormat": "p90 {{dir}} connections per peer – {{instance}}",
"refId": "B"
},
{
Expand All @@ -1124,7 +1124,7 @@
"expr": "histogram_quantile(1, (rcmgr_trace_metrics_peer_connections_bucket - rcmgr_trace_metrics_peer_connections_negative_bucket)) - 0.1",
"hide": false,
"interval": "",
"legendFormat": "max {{dir}} connections per peer",
"legendFormat": "max {{dir}} connections per peer – {{instance}}",
"refId": "C"
}
],
Expand Down Expand Up @@ -1185,15 +1185,15 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": false,
"expr": "rcmgr_trace_metrics_peer_connections_bucket{dir=\"inbound\"}-rcmgr_trace_metrics_peer_connections_negative_bucket{dir=\"inbound\"}",
"expr": "sum without (instance) (rcmgr_trace_metrics_peer_connections_bucket{dir=\"inbound\"}-rcmgr_trace_metrics_peer_connections_negative_bucket{dir=\"inbound\"})",
"format": "heatmap",
"hide": false,
"interval": "",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"title": "Current inbound connections per peer histogram",
"title": "Current inbound connections per peer histogram. Across all instances",
"type": "bargauge"
},
{
Expand Down Expand Up @@ -1250,15 +1250,15 @@
"uid": "${DS_PROMETHEUS}"
},
"exemplar": false,
"expr": "rcmgr_trace_metrics_peer_connections_bucket{dir=\"outbound\"}-rcmgr_trace_metrics_peer_connections_negative_bucket{dir=\"outbound\"} ",
"expr": "sum without (instance) (rcmgr_trace_metrics_peer_connections_bucket{dir=\"outbound\"}-rcmgr_trace_metrics_peer_connections_negative_bucket{dir=\"outbound\"})",
"format": "heatmap",
"hide": false,
"interval": "",
"legendFormat": "{{le}}",
"refId": "A"
}
],
"title": "Curent outbound connections per peer histogram",
"title": "Curent outbound connections per peer histogram. Across all instances",
"type": "bargauge"
},
{
Expand Down Expand Up @@ -1447,7 +1447,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_memory{scope=\"protocol\"}",
"interval": "",
"legendFormat": "{{protocol}}",
"legendFormat": "{{protocol}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1537,7 +1537,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_memory{scope=\"service\"}",
"interval": "",
"legendFormat": "{{service}}",
"legendFormat": "{{service}} {{instance}}",
"refId": "A"
}
],
Expand Down Expand Up @@ -1788,7 +1788,7 @@
"exemplar": true,
"expr": "rcmgr_trace_metrics_fds",
"interval": "",
"legendFormat": "{{scope}}",
"legendFormat": "{{scope}} {{instance}}",
"refId": "A"
}
],
Expand Down

0 comments on commit 6a2fd1b

Please sign in to comment.