Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metrics: add instance filter to all dashboards #2301

Merged
merged 2 commits into from
May 20, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 29 additions & 7 deletions dashboards/autonat/autonat.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "libp2p_autonat_reachability_status",
"expr": "libp2p_autonat_reachability_status{instance=~\"$instance\"}",
"legendFormat": " ",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -222,7 +222,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "libp2p_autonat_reachability_status_confidence",
"expr": "libp2p_autonat_reachability_status_confidence{instance=~\"$instance\"}",
"legendFormat": "__auto",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -286,7 +286,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "libp2p_autonat_next_probe_timestamp * 1000",
"expr": "libp2p_autonat_next_probe_timestamp{instance=~\"$instance\"} * 1000",
"format": "table",
"instant": true,
"legendFormat": "__auto",
Expand Down Expand Up @@ -427,7 +427,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "increase(libp2p_autonat_received_dial_response_total[$__rate_interval])",
"expr": "increase(libp2p_autonat_received_dial_response_total{instance=~\"$instance\"}[$__rate_interval])",
"instant": false,
"legendFormat": "{{response_status}}",
"range": true,
Expand Down Expand Up @@ -567,7 +567,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(libp2p_autonat_outgoing_dial_response_total[$__rate_interval])",
"expr": "increase(libp2p_autonat_outgoing_dial_response_total{instance=~\"$instance\"}[$__rate_interval])",
"legendFormat": "{{response_status}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -676,7 +676,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(libp2p_autonat_outgoing_dial_refused_total[$__rate_interval])",
"expr": "increase(libp2p_autonat_outgoing_dial_refused_total{instance=~\"$instance\"}[$__rate_interval])",
"legendFormat": "{{refusal_reason}}",
"range": true,
"refId": "A"
Expand All @@ -690,7 +690,29 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(up, instance)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "instance",
"options": [],
"query": {
"query": "label_values(up, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-6h",
Expand Down
48 changes: 35 additions & 13 deletions dashboards/autorelay/autorelay.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "libp2p_autorelay_status",
"expr": "libp2p_autorelay_status{instance=~\"$instance\"}",
"legendFormat": "active",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -245,7 +245,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "libp2p_autorelay_reservations_opened_total - libp2p_autorelay_reservations_closed_total",
"expr": "libp2p_autorelay_reservations_opened_total{instance=~\"$instance\"} - libp2p_autorelay_reservations_closed_total{instance=~\"$instance\"}",
"instant": true,
"legendFormat": "current reservations",
"range": false,
Expand All @@ -258,7 +258,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "libp2p_autorelay_desired_reservations",
"expr": "libp2p_autorelay_desired_reservations{instance=~\"$instance\"}",
"format": "time_series",
"hide": false,
"instant": true,
Expand Down Expand Up @@ -403,7 +403,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "increase(libp2p_autorelay_reservation_requests_outcome_total[$__rate_interval])",
"expr": "increase(libp2p_autorelay_reservation_requests_outcome_total{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"instant": false,
"interval": "",
Expand Down Expand Up @@ -512,7 +512,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "libp2p_autorelay_candidate_loop_state",
"expr": "libp2p_autorelay_candidate_loop_state{instance=~\"$instance\"}",
"instant": false,
"legendFormat": "state",
"range": true,
Expand Down Expand Up @@ -575,7 +575,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "libp2p_autorelay_candidates_total{type=\"added\"} - ignoring(type) libp2p_autorelay_candidates_total{type=\"removed\"}",
"expr": "libp2p_autorelay_candidates_total{type=\"added\",instance=~\"$instance\"} - ignoring(type) libp2p_autorelay_candidates_total{type=\"removed\",instance=~\"$instance\"}",
"legendFormat": "num candidates",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -669,7 +669,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(libp2p_autorelay_candidates_circuit_v2_support_total[$__range])",
"expr": "increase(libp2p_autorelay_candidates_circuit_v2_support_total{instance=~\"$instance\"}[$__range])",
"legendFormat": "{{support}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -745,7 +745,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "libp2p_autorelay_scheduled_work_time{work_type=\"old candidate check\"} * 1000\n",
"expr": "libp2p_autorelay_scheduled_work_time{work_type=\"old candidate check\",instance=~\"$instance\"} * 1000\n",
"instant": true,
"legendFormat": "__auto",
"range": false,
Expand Down Expand Up @@ -833,7 +833,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "round(libp2p_autorelay_scheduled_work_time{work_type=\"allowed peer source call\"} - time()) ",
"expr": "round(libp2p_autorelay_scheduled_work_time{work_type=\"allowed peer source call\",instance=~\"$instance\"} - time()) ",
"instant": true,
"legendFormat": "__auto",
"range": false,
Expand Down Expand Up @@ -909,7 +909,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "libp2p_autorelay_relay_addresses_count",
"expr": "libp2p_autorelay_relay_addresses_count{instance=~\"$instance\"}",
"legendFormat": "num addresses",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -1017,7 +1017,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "code",
"expr": "increase(libp2p_autorelay_relay_addresses_updated_total[$__rate_interval])",
"expr": "increase(libp2p_autorelay_relay_addresses_updated_total{instance=~\"$instance\"}[$__rate_interval])",
"legendFormat": "update triggered",
"range": true,
"refId": "A"
Expand All @@ -1033,7 +1033,29 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(up, instance)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "instance",
"options": [],
"query": {
"query": "label_values(up, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-1h",
Expand All @@ -1045,4 +1067,4 @@
"uid": "deQ_uf-4k",
"version": 6,
"weekStart": ""
}
}
34 changes: 28 additions & 6 deletions dashboards/eventbus/eventbus.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "rate(libp2p_eventbus_events_emitted_total[$__rate_interval])",
"expr": "rate(libp2p_eventbus_events_emitted_total{instance=~\"$instance\"}[$__rate_interval])",
"format": "time_series",
"instant": false,
"interval": "",
Expand Down Expand Up @@ -225,7 +225,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "libp2p_eventbus_subscribers_total",
"expr": "libp2p_eventbus_subscribers_total{instance=~\"$instance\"}",
"legendFormat": "{{event}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -317,7 +317,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "rate(libp2p_eventbus_subscriber_event_queued[$__rate_interval])",
"expr": "rate(libp2p_eventbus_subscriber_event_queued{instance=~\"$instance\"}[$__rate_interval])",
"legendFormat": "{{subscriber_name}}",
"range": true,
"refId": "A"
Expand Down Expand Up @@ -410,7 +410,7 @@
"uid": "${DS_PROMETHEUS}"
},
"editorMode": "builder",
"expr": "libp2p_eventbus_subscriber_queue_length",
"expr": "libp2p_eventbus_subscriber_queue_length{instance=~\"$instance\"}",
"hide": false,
"legendFormat": "{{subscriber_name}}",
"range": true,
Expand Down Expand Up @@ -496,7 +496,7 @@
},
"editorMode": "builder",
"exemplar": false,
"expr": "libp2p_eventbus_subscriber_queue_full",
"expr": "libp2p_eventbus_subscriber_queue_full{instance=~\"$instance\"}",
"format": "time_series",
"hide": false,
"instant": false,
Expand All @@ -514,7 +514,29 @@
"style": "dark",
"tags": [],
"templating": {
"list": []
"list": [
{
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(up, instance)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "instance",
"options": [],
"query": {
"query": "label_values(up, instance)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"skipUrlSync": false,
"sort": 0,
"type": "query"
}
]
},
"time": {
"from": "now-15m",
Expand Down
Loading