{ "__inputs": [ { "name": "DS_PROMETHEUS", "label": "Prometheus", "description": "", "type": "datasource", "pluginId": "prometheus", "pluginName": "Prometheus" } ], "__elements": {}, "__requires": [ { "type": "grafana", "id": "grafana", "name": "Grafana", "version": "10.0.0" }, { "type": "datasource", "id": "prometheus", "name": "Prometheus", "version": "1.0.0" } ], "annotations": { "list": [] }, "editable": true, "fiscalYearStartMonth": 0, "graphTooltip": 1, "id": null, "links": [], "liveNow": false, "panels": [ { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 }, "id": 100, "title": "Server Overview", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "mappings": [ { "options": { "0": { "color": "red", "text": "OFFLINE" }, "1": { "color": "green", "text": "ONLINE" } }, "type": "value" } ], "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "green", "value": 1 } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 0, "y": 1 }, "id": 1, "options": { "colorMode": "background", "graphMode": "none", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Server Status", "type": "stat", "targets": [ { "expr": "ts6_server_up", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "unit": "dtdurations", "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 4, "y": 1 }, "id": 2, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Uptime", "type": "stat", "targets": [ { "expr": "ts6_server_uptime_seconds", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 20 }, { "color": "red", "value": 50 } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 8, "y": 1 }, "id": 3, "options": { "colorMode": "background_solid", "graphMode": "area", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Clients Online", "type": "stat", "targets": [ { "expr": "ts6_clients_online", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "purple", "value": null } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 12, "y": 1 }, "id": 4, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Max Clients", "type": "stat", "targets": [ { "expr": "ts6_clients_max", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "cyan", "value": null } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 16, "y": 1 }, "id": 5, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Channels", "type": "stat", "targets": [ { "expr": "ts6_channels_total", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "orange", "value": null } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 4, "x": 20, "y": 1 }, "id": 6, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Active Bans", "type": "stat", "targets": [ { "expr": "ts6_bans_total", "refId": "A" } ] }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 5 }, "id": 101, "title": "Clients", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "custom": { "lineWidth": 2, "fillOpacity": 20, "gradientMode": "scheme", "spanNulls": true, "drawStyle": "line", "pointSize": 5, "showPoints": "auto" }, "color": { "mode": "palette-classic" }, "unit": "short" }, "overrides": [] }, "gridPos": { "h": 8, "w": 16, "x": 0, "y": 6 }, "id": 10, "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, "title": "Clients Online Over Time", "type": "timeseries", "targets": [ { "expr": "ts6_clients_online", "legendFormat": "Clients Online", "refId": "A" }, { "expr": "ts6_query_clients_online", "legendFormat": "Query Clients", "refId": "B" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "custom": { "filterable": true }, "color": { "mode": "thresholds" }, "thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] } }, "overrides": [] }, "gridPos": { "h": 8, "w": 8, "x": 16, "y": 6 }, "id": 11, "options": { "showHeader": true, "sortBy": [{ "desc": false, "displayName": "nickname" }] }, "title": "Connected Clients", "type": "table", "targets": [ { "expr": "ts6_client_connected", "format": "table", "instant": true, "refId": "A" } ], "transformations": [ { "id": "organize", "options": { "excludeByName": { "Time": true, "Value": true, "__name__": true, "instance": true, "job": true, "client_id": false }, "renameByName": { "client_id": "ID", "nickname": "Nickname", "platform": "Platform", "version": "Version", "country": "Country", "channel_id": "Channel" } } } ] }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 14 }, "id": 102, "title": "Bandwidth & Network", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "custom": { "lineWidth": 2, "fillOpacity": 15, "gradientMode": "scheme", "spanNulls": true, "drawStyle": "line", "pointSize": 5, "showPoints": "never" }, "color": { "mode": "palette-classic" }, "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 0, "y": 15 }, "id": 20, "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, "title": "Bandwidth (Bytes/s)", "type": "timeseries", "targets": [ { "expr": "rate(ts6_bytes_sent_total[5m])", "legendFormat": "Sent", "refId": "A" }, { "expr": "rate(ts6_bytes_received_total[5m])", "legendFormat": "Received", "refId": "B" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "custom": { "lineWidth": 2, "fillOpacity": 15, "gradientMode": "scheme", "spanNulls": true, "drawStyle": "line", "pointSize": 5, "showPoints": "never" }, "color": { "mode": "palette-classic" }, "unit": "pps" }, "overrides": [] }, "gridPos": { "h": 8, "w": 12, "x": 12, "y": 15 }, "id": 21, "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, "title": "Packets/s", "type": "timeseries", "targets": [ { "expr": "rate(ts6_packets_sent_total[5m])", "legendFormat": "Sent", "refId": "A" }, { "expr": "rate(ts6_packets_received_total[5m])", "legendFormat": "Received", "refId": "B" } ] }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 23 }, "id": 103, "title": "Quality", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "unit": "s", "min": 0, "max": 0.5, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 0.05 }, { "color": "orange", "value": 0.1 }, { "color": "red", "value": 0.2 } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 0, "y": 24 }, "id": 30, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "title": "Average Ping", "type": "gauge", "targets": [ { "expr": "ts6_average_ping_seconds", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "unit": "percentunit", "min": 0, "max": 1, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 0.01 }, { "color": "orange", "value": 0.05 }, { "color": "red", "value": 0.1 } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 8, "y": 24 }, "id": 31, "options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "showThresholdLabels": false, "showThresholdMarkers": true }, "title": "Average Packet Loss", "type": "gauge", "targets": [ { "expr": "ts6_average_packet_loss", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "custom": { "lineWidth": 2, "fillOpacity": 10, "gradientMode": "scheme", "spanNulls": true, "drawStyle": "line", "pointSize": 5, "showPoints": "never" }, "color": { "mode": "palette-classic" }, "unit": "Bps" }, "overrides": [] }, "gridPos": { "h": 6, "w": 8, "x": 16, "y": 24 }, "id": 32, "options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi", "sort": "desc" } }, "title": "File Transfer Bandwidth", "type": "timeseries", "targets": [ { "expr": "rate(ts6_file_transfer_bytes_sent_total[5m])", "legendFormat": "Sent", "refId": "A" }, { "expr": "rate(ts6_file_transfer_bytes_received_total[5m])", "legendFormat": "Received", "refId": "B" } ] }, { "collapsed": false, "gridPos": { "h": 1, "w": 24, "x": 0, "y": 30 }, "id": 104, "title": "Exporter Health", "type": "row" }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "unit": "s", "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "yellow", "value": 1 }, { "color": "red", "value": 5 } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 0, "y": 31 }, "id": 40, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Scrape Duration", "type": "stat", "targets": [ { "expr": "ts6_scrape_duration_seconds", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": null }, { "color": "red", "value": 1 } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 6, "y": 31 }, "id": 41, "options": { "colorMode": "value", "graphMode": "area", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Scrape Errors", "type": "stat", "targets": [ { "expr": "ts6_scrape_errors_total", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 12, "y": 31 }, "id": 42, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Server Groups", "type": "stat", "targets": [ { "expr": "ts6_server_groups_total", "refId": "A" } ] }, { "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "fieldConfig": { "defaults": { "thresholds": { "mode": "absolute", "steps": [ { "color": "blue", "value": null } ] }, "color": { "mode": "thresholds" } }, "overrides": [] }, "gridPos": { "h": 4, "w": 6, "x": 18, "y": 31 }, "id": 43, "options": { "colorMode": "value", "graphMode": "none", "justifyMode": "center", "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, "textMode": "value" }, "title": "Query Clients", "type": "stat", "targets": [ { "expr": "ts6_query_clients_online", "refId": "A" } ] } ], "schemaVersion": 39, "tags": ["teamspeak", "ts6", "gaming"], "templating": { "list": [] }, "time": { "from": "now-6h", "to": "now" }, "timepicker": {}, "timezone": "browser", "title": "TeamSpeak 6 Server", "uid": "ts6-server-dashboard", "version": 1 }