"expr":"sum by (outcome) (libp2p_holepunch_outcomes_total{side=\"initiator\",instance=~\"$instance\"}) - (sum by (outcome)(libp2p_holepunch_outcomes_total{side=\"initiator\",instance=~\"$instance\"} offset $__interval) or vector(0))",
"legendFormat":"__auto",
"range":true,
"refId":"A"
}
],
"title":"Hole punches",
"type":"timeseries"
},
{
"collapsed":false,
"gridPos":{
"h":1,
"w":24,
"x":0,
"y":25
},
"id":14,
"panels":[],
"title":"DCUtR Receiver",
"type":"row"
},
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"hideFrom":{
"legend":false,
"tooltip":false,
"viz":false
}
},
"mappings":[]
},
"overrides":[
{
"matcher":{
"id":"byName",
"options":"failed"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"purple",
"mode":"fixed"
}
}
]
},
{
"matcher":{
"id":"byName",
"options":"success"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"green",
"mode":"fixed"
}
}
]
}
]
},
"gridPos":{
"h":8,
"w":12,
"x":0,
"y":26
},
"id":18,
"options":{
"legend":{
"displayMode":"list",
"placement":"bottom",
"showLegend":true
},
"pieType":"pie",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"targets":[
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"editorMode":"code",
"expr":"sum by (outcome) (increase(libp2p_holepunch_address_outcomes_total {side=\"receiver\", transport=~\"quic|quic-v1\", outcome=~\"success|failed\"}[$__range]))",
"legendFormat":"{{outcome}}",
"range":true,
"refId":"A"
}
],
"title":"Hole punches: QUIC ",
"type":"piechart"
},
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"hideFrom":{
"legend":false,
"tooltip":false,
"viz":false
}
},
"mappings":[]
},
"overrides":[
{
"matcher":{
"id":"byName",
"options":"failed"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"purple",
"mode":"fixed"
}
}
]
},
{
"matcher":{
"id":"byName",
"options":"success"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"green",
"mode":"fixed"
}
}
]
}
]
},
"gridPos":{
"h":8,
"w":12,
"x":12,
"y":26
},
"id":21,
"options":{
"legend":{
"displayMode":"list",
"placement":"bottom",
"showLegend":true
},
"pieType":"pie",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"targets":[
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"editorMode":"code",
"expr":"sum by (outcome) (increase(libp2p_holepunch_address_outcomes_total {side=\"receiver\", transport=\"tcp\", outcome=~\"success|failed\"}[$__range]))",
"legendFormat":"{{outcome}}",
"range":true,
"refId":"A"
}
],
"title":"Hole punches: TCP",
"type":"piechart"
},
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"hideFrom":{
"legend":false,
"tooltip":false,
"viz":false
}
},
"mappings":[]
},
"overrides":[
{
"matcher":{
"id":"byName",
"options":"failed"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"purple",
"mode":"fixed"
}
}
]
},
{
"matcher":{
"id":"byName",
"options":"success"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"green",
"mode":"fixed"
}
}
]
},
{
"matcher":{
"id":"byName",
"options":"no_suitable_address"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"light-blue",
"mode":"fixed"
}
}
]
}
]
},
"gridPos":{
"h":8,
"w":12,
"x":0,
"y":34
},
"id":17,
"options":{
"legend":{
"displayMode":"list",
"placement":"bottom",
"showLegend":true
},
"pieType":"pie",
"reduceOptions":{
"calcs":[
"lastNotNull"
],
"fields":"",
"values":false
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"targets":[
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"editorMode":"code",
"expr":"sum by (outcome) (increase(libp2p_holepunch_outcomes_total{side=\"receiver\",instance=~\"$instance\"}[$__range]))",
"legendFormat":"{{outcome}}",
"range":true,
"refId":"A"
}
],
"title":"Hole punches: Total",
"type":"piechart"
},
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"fieldConfig":{
"defaults":{
"color":{
"mode":"palette-classic"
},
"custom":{
"axisCenteredZero":false,
"axisColorMode":"text",
"axisLabel":"",
"axisPlacement":"auto",
"barAlignment":0,
"drawStyle":"line",
"fillOpacity":0,
"gradientMode":"none",
"hideFrom":{
"legend":false,
"tooltip":false,
"viz":false
},
"lineInterpolation":"linear",
"lineWidth":1,
"pointSize":5,
"scaleDistribution":{
"type":"linear"
},
"showPoints":"auto",
"spanNulls":false,
"stacking":{
"group":"A",
"mode":"none"
},
"thresholdsStyle":{
"mode":"off"
}
},
"mappings":[],
"thresholds":{
"mode":"absolute",
"steps":[
{
"color":"green",
"value":null
},
{
"color":"red",
"value":80
}
]
}
},
"overrides":[
{
"matcher":{
"id":"byName",
"options":"success"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"green",
"mode":"fixed"
}
}
]
},
{
"matcher":{
"id":"byName",
"options":"failed"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"purple",
"mode":"fixed"
}
}
]
},
{
"matcher":{
"id":"byName",
"options":"no_suitable_address"
},
"properties":[
{
"id":"color",
"value":{
"fixedColor":"blue",
"mode":"fixed"
}
}
]
}
]
},
"gridPos":{
"h":8,
"w":12,
"x":12,
"y":34
},
"id":24,
"options":{
"legend":{
"calcs":[],
"displayMode":"list",
"placement":"bottom",
"showLegend":true
},
"tooltip":{
"mode":"single",
"sort":"none"
}
},
"targets":[
{
"datasource":{
"type":"prometheus",
"uid":"${DS_PROMETHEUS}"
},
"editorMode":"code",
"expr":"(sum by (outcome) (libp2p_holepunch_outcomes_total{side=\"receiver\",instance=~\"$instance\"})) - (sum by (outcome)(libp2p_holepunch_outcomes_total{side=\"receiver\",instance=~\"$instance\"} offset $__interval) or vector(0))",