586 lines
16 KiB
YAML
586 lines
16 KiB
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: session-telemetry-dashboard
|
|
labels:
|
|
grafana_dashboard: "1"
|
|
data:
|
|
session-telemetry.json: |
|
|
{
|
|
"annotations": {
|
|
"list": []
|
|
},
|
|
"editable": true,
|
|
"gnetId": null,
|
|
"graphTooltip": 0,
|
|
"hideControls": false,
|
|
"id": null,
|
|
"iteration": 1583185057230,
|
|
"links": [],
|
|
"panels": [
|
|
{
|
|
"datasource": "Prometheus",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"color": {
|
|
"mode": "thresholds"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "red", "value": null },
|
|
{ "color": "green", "value": 95 }
|
|
]
|
|
},
|
|
"unit": "percent"
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 4,
|
|
"w": 6,
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"id": 1,
|
|
"options": {
|
|
"orientation": "auto",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
},
|
|
"showThresholdLabels": false,
|
|
"showThresholdMarkers": true
|
|
},
|
|
"pluginVersion": "8.0.0",
|
|
"targets": [
|
|
{
|
|
"expr": "sum(session_peer_telemetry_total{video_seen=\"true\"}) / sum(session_peer_telemetry_total) * 100",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Overall Video Success Rate",
|
|
"type": "stat"
|
|
},
|
|
{
|
|
"datasource": "Prometheus",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 4
|
|
},
|
|
"id": 2,
|
|
"options": {
|
|
"legend": {
|
|
"displayMode": "list",
|
|
"placement": "right",
|
|
"values": [
|
|
"value"
|
|
]
|
|
},
|
|
"pieType": "pie",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "sum(session_peer_telemetry_total) by (p2p)",
|
|
"legendFormat": "P2P: {{ "{{" }}p2p{{ "}}" }}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "P2P vs non-P2P",
|
|
"type": "piechart"
|
|
},
|
|
{
|
|
"datasource": "Prometheus",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 8,
|
|
"y": 4
|
|
},
|
|
"id": 3,
|
|
"options": {
|
|
"legend": {
|
|
"displayMode": "list",
|
|
"placement": "right",
|
|
"values": [
|
|
"value"
|
|
]
|
|
},
|
|
"pieType": "pie",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "sum(session_peer_telemetry_total) by (protocol)",
|
|
"legendFormat": "{{ "{{" }}protocol{{ "}}" }}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Protocol Breakdown (UDP/TCP)",
|
|
"type": "piechart"
|
|
},
|
|
{
|
|
"datasource": "Prometheus",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 4
|
|
},
|
|
"id": 4,
|
|
"options": {
|
|
"legend": {
|
|
"displayMode": "list",
|
|
"placement": "right",
|
|
"values": [
|
|
"value"
|
|
]
|
|
},
|
|
"pieType": "pie",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "sum(session_summary_telemetry_total{type=\"join\"}) by (how_many_seen)",
|
|
"legendFormat": "{{ "{{" }}how_many_seen{{ "}}" }}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Join Success Summary",
|
|
"type": "piechart"
|
|
},
|
|
{
|
|
"datasource": "Prometheus",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 0,
|
|
"y": 12
|
|
},
|
|
"id": 7,
|
|
"options": {
|
|
"legend": {
|
|
"displayMode": "list",
|
|
"placement": "right",
|
|
"values": [
|
|
"value"
|
|
]
|
|
},
|
|
"pieType": "pie",
|
|
"reduceOptions": {
|
|
"calcs": ["lastNotNull"],
|
|
"fields": "",
|
|
"values": false
|
|
}
|
|
},
|
|
"targets": [
|
|
{
|
|
"expr": "sum(session_summary_telemetry_total{type=\"leave\"}) by (how_many_seen)",
|
|
"legendFormat": "{{ "{{" }}how_many_seen{{ "}}" }}",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Leave Success Summary (Full Session)",
|
|
"type": "piechart"
|
|
},
|
|
{
|
|
"datasource": "Prometheus",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 8,
|
|
"y": 12
|
|
},
|
|
"id": 5,
|
|
"targets": [
|
|
{
|
|
"expr": "sum(rate(session_join_telemetry_others_bucket[5m])) by (le)",
|
|
"format": "heatmap",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Participants on Join (Distribution)",
|
|
"type": "heatmap"
|
|
},
|
|
{
|
|
"datasource": "Prometheus",
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 8,
|
|
"x": 16,
|
|
"y": 12
|
|
},
|
|
"id": 6,
|
|
"targets": [
|
|
{
|
|
"expr": "sum(rate(session_join_telemetry_age_bucket[5m])) by (le)",
|
|
"format": "heatmap",
|
|
"refId": "A"
|
|
}
|
|
],
|
|
"title": "Session Age on Join (Distribution)",
|
|
"type": "heatmap"
|
|
},
|
|
{
|
|
"datasource": "${logs}",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"align": "auto",
|
|
"displayMode": "auto"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null }
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 20
|
|
},
|
|
"id": 8,
|
|
"options": {
|
|
"showHeader": true
|
|
},
|
|
"targets": [
|
|
"expr": "{namespace=\"webrtc-be\", container=\"webrtc-be\"} |= \"type=peer_telemetry\" | logfmt",
|
|
"maxLines": 500,
|
|
"refId": "A"
|
|
],
|
|
"title": "Raw Peer Telemetry",
|
|
"transformations": [
|
|
{
|
|
"id": "extractFields",
|
|
"options": {
|
|
"format": "json",
|
|
"source": "labels"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"app": true,
|
|
"app_kubernetes_io_component": true,
|
|
"app_kubernetes_io_name": true,
|
|
"cluster": true,
|
|
"container": true,
|
|
"filename": true,
|
|
"id": true,
|
|
"job": true,
|
|
"labels": true,
|
|
"level": true,
|
|
"Line": true,
|
|
"namespace": true,
|
|
"pod": true,
|
|
"pod_template_hash": true,
|
|
"stream": true,
|
|
"tsNs": true,
|
|
"type": true
|
|
},
|
|
"indexByName": {
|
|
"Time": 0,
|
|
"room": 1,
|
|
"user": 2,
|
|
"p2p": 3,
|
|
"protocol": 4,
|
|
"relay": 5,
|
|
"turn_server": 6,
|
|
"video_seen": 7
|
|
},
|
|
"renameByName": {}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": "${logs}",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"align": "auto",
|
|
"displayMode": "auto"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null }
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 28
|
|
},
|
|
"id": 9,
|
|
"options": {
|
|
"showHeader": true
|
|
},
|
|
"targets": [
|
|
"expr": "{namespace=\"webrtc-be\", container=\"webrtc-be\"} |= \"type=join_telemetry\" | logfmt",
|
|
"maxLines": 500,
|
|
"refId": "A"
|
|
],
|
|
"title": "Raw Join Telemetry",
|
|
"transformations": [
|
|
{
|
|
"id": "extractFields",
|
|
"options": {
|
|
"format": "json",
|
|
"source": "labels"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"app": true,
|
|
"app_kubernetes_io_component": true,
|
|
"app_kubernetes_io_name": true,
|
|
"cluster": true,
|
|
"container": true,
|
|
"filename": true,
|
|
"id": true,
|
|
"job": true,
|
|
"labels": true,
|
|
"level": true,
|
|
"Line": true,
|
|
"namespace": true,
|
|
"pod": true,
|
|
"pod_template_hash": true,
|
|
"stream": true,
|
|
"tsNs": true,
|
|
"type": true
|
|
},
|
|
"indexByName": {
|
|
"Time": 0,
|
|
"room": 1,
|
|
"user": 2,
|
|
"others_on_join": 3,
|
|
"session_age_on_join": 4
|
|
},
|
|
"renameByName": {}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": "${logs}",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"align": "auto",
|
|
"displayMode": "auto"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null }
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 36
|
|
},
|
|
"id": 10,
|
|
"options": {
|
|
"showHeader": true
|
|
},
|
|
"targets": [
|
|
"expr": "{namespace=\"webrtc-be\", container=\"webrtc-be\"} |= \"type=join_summary_telemetry\" | logfmt",
|
|
"maxLines": 500,
|
|
"refId": "A"
|
|
],
|
|
"title": "Raw Join Summary Telemetry",
|
|
"transformations": [
|
|
{
|
|
"id": "extractFields",
|
|
"options": {
|
|
"format": "json",
|
|
"source": "labels"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"app": true,
|
|
"app_kubernetes_io_component": true,
|
|
"app_kubernetes_io_name": true,
|
|
"cluster": true,
|
|
"container": true,
|
|
"filename": true,
|
|
"id": true,
|
|
"job": true,
|
|
"labels": true,
|
|
"level": true,
|
|
"Line": true,
|
|
"namespace": true,
|
|
"pod": true,
|
|
"pod_template_hash": true,
|
|
"stream": true,
|
|
"tsNs": true,
|
|
"type": true
|
|
},
|
|
"indexByName": {
|
|
"Time": 0,
|
|
"room": 1,
|
|
"user": 2,
|
|
"how_many_seen_on_join": 3
|
|
},
|
|
"renameByName": {}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
},
|
|
{
|
|
"datasource": "${logs}",
|
|
"fieldConfig": {
|
|
"defaults": {
|
|
"custom": {
|
|
"align": "auto",
|
|
"displayMode": "auto"
|
|
},
|
|
"mappings": [],
|
|
"thresholds": {
|
|
"mode": "absolute",
|
|
"steps": [
|
|
{ "color": "green", "value": null }
|
|
]
|
|
}
|
|
},
|
|
"overrides": []
|
|
},
|
|
"gridPos": {
|
|
"h": 8,
|
|
"w": 24,
|
|
"x": 0,
|
|
"y": 44
|
|
},
|
|
"id": 11,
|
|
"options": {
|
|
"showHeader": true
|
|
},
|
|
"targets": [
|
|
"expr": "{namespace=\"webrtc-be\", container=\"webrtc-be\"} |= \"type=leave_summary_telemetry\" | logfmt",
|
|
"maxLines": 500,
|
|
"refId": "A"
|
|
],
|
|
"title": "Raw Leave Summary Telemetry",
|
|
"transformations": [
|
|
{
|
|
"id": "extractFields",
|
|
"options": {
|
|
"format": "json",
|
|
"source": "labels"
|
|
}
|
|
},
|
|
{
|
|
"id": "organize",
|
|
"options": {
|
|
"excludeByName": {
|
|
"app": true,
|
|
"app_kubernetes_io_component": true,
|
|
"app_kubernetes_io_name": true,
|
|
"cluster": true,
|
|
"container": true,
|
|
"filename": true,
|
|
"id": true,
|
|
"job": true,
|
|
"labels": true,
|
|
"level": true,
|
|
"Line": true,
|
|
"namespace": true,
|
|
"pod": true,
|
|
"pod_template_hash": true,
|
|
"stream": true,
|
|
"tsNs": true,
|
|
"type": true
|
|
},
|
|
"indexByName": {
|
|
"Time": 0,
|
|
"room": 1,
|
|
"user": 2,
|
|
"how_many_seen_on_leave": 3
|
|
},
|
|
"renameByName": {}
|
|
}
|
|
}
|
|
],
|
|
"type": "table"
|
|
}
|
|
],
|
|
"refresh": "30s",
|
|
"schemaVersion": 30,
|
|
"style": "dark",
|
|
"tags": ["webrtc", "telemetry"],
|
|
"templating": {
|
|
"list": [
|
|
{
|
|
"current": {
|
|
"selected": false,
|
|
"text": "Loki",
|
|
"value": "Loki"
|
|
},
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"label": "Logs Datasource",
|
|
"multi": false,
|
|
"name": "logs",
|
|
"options": [],
|
|
"query": "loki",
|
|
"refresh": 1,
|
|
"regex": "",
|
|
"skipUrlSync": false,
|
|
"type": "datasource"
|
|
}
|
|
]
|
|
},
|
|
"time": {
|
|
"from": "now-1h",
|
|
"to": "now"
|
|
},
|
|
"timepicker": {},
|
|
"timezone": "",
|
|
"title": "WebRTC Session Telemetry",
|
|
"uid": "webrtc-session-telemetry"
|
|
}
|