Files
RPi5-PTP-server/Dashboards/ptp-grandmaster.json

852 lines
19 KiB
JSON
Raw Permalink Normal View History

2026-09-07 00:06:27 +02:00
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "Prometheus",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"annotations": {
"list": []
},
"editable": true,
"graphTooltip": 1,
"id": null,
"links": [],
"panels": [
{
"id": 1,
"type": "row",
"title": "Grandmaster health",
"collapsed": false,
"gridPos": {
"x": 0,
"y": 0,
"w": 24,
"h": 1
},
"panels": []
},
{
"id": 2,
"type": "stat",
"title": "PPS selected",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 0,
"y": 1,
"w": 4,
"h": 4
},
"fieldConfig": {
"defaults": {
"unit": "short",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
},
"targets": [
{
"refId": "A",
"expr": "max(ptp_gm_chrony_source{instance=\"$instance\",source=\"PPS\",state=\"*\"})",
"legendFormat": "",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"instant": true,
"range": false
}
]
},
{
"id": 3,
"type": "stat",
"title": "PTP services up",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 4,
"y": 1,
"w": 4,
"h": 4
},
"fieldConfig": {
"defaults": {
"unit": "short",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
},
"targets": [
{
"refId": "A",
"expr": "min(ptp_service_up{instance=\"$instance\"})",
"legendFormat": "",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"instant": true,
"range": false
}
]
},
{
"id": 4,
"type": "stat",
"title": "Clock class",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 8,
"y": 1,
"w": 4,
"h": 4
},
"fieldConfig": {
"defaults": {
"unit": "short",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
},
"targets": [
{
"refId": "A",
"expr": "ptp_grandmaster_clock_class{instance=\"$instance\"}",
"legendFormat": "",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"instant": true,
"range": false
}
]
},
{
"id": 5,
"type": "stat",
"title": "UTC offset",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 12,
"y": 1,
"w": 4,
"h": 4
},
"fieldConfig": {
"defaults": {
"unit": "s",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
},
"targets": [
{
"refId": "A",
"expr": "ptp_current_utc_offset_seconds{instance=\"$instance\"}",
"legendFormat": "",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"instant": true,
"range": false
}
]
},
{
"id": 6,
"type": "stat",
"title": "Steps removed",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 16,
"y": 1,
"w": 4,
"h": 4
},
"fieldConfig": {
"defaults": {
"unit": "short",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
},
"targets": [
{
"refId": "A",
"expr": "ptp_steps_removed{instance=\"$instance\"}",
"legendFormat": "",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"instant": true,
"range": false
}
]
},
{
"id": 7,
"type": "stat",
"title": "Exporter scrape",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 20,
"y": 1,
"w": 4,
"h": 4
},
"fieldConfig": {
"defaults": {
"unit": "short",
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "red",
"value": null
},
{
"color": "green",
"value": 1
}
]
},
"color": {
"mode": "thresholds"
}
},
"overrides": []
},
"options": {
"reduceOptions": {
"values": false,
"calcs": [
"lastNotNull"
],
"fields": ""
},
"orientation": "auto",
"textMode": "auto",
"colorMode": "value",
"graphMode": "area",
"justifyMode": "auto"
},
"targets": [
{
"refId": "A",
"expr": "ptp_exporter_scrape_success{instance=\"$instance\",stage=\"ok\"}",
"legendFormat": "",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"instant": true,
"range": false
}
]
},
{
"id": 8,
"type": "row",
"title": "GNSS / Chrony",
"collapsed": false,
"gridPos": {
"x": 0,
"y": 5,
"w": 24,
"h": 1
},
"panels": []
},
{
"id": 9,
"type": "timeseries",
"title": "Chrony offset",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 0,
"y": 6,
"w": 12,
"h": 8
},
"fieldConfig": {
"defaults": {
"unit": "\u00b5s",
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"lineWidth": 1,
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": false,
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "table",
"placement": "bottom",
"calcs": [
"lastNotNull",
"mean",
"max"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"refId": "A",
"expr": "ptp_gm_chrony_system_time_offset_seconds{instance=\"$instance\"} * 1e6",
"legendFormat": "system",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
},
{
"refId": "B",
"expr": "ptp_gm_chrony_last_offset_seconds{instance=\"$instance\"} * 1e6",
"legendFormat": "last",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
},
{
"refId": "C",
"expr": "ptp_gm_chrony_rms_offset_seconds{instance=\"$instance\"} * 1e6",
"legendFormat": "RMS",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
}
]
},
{
"id": 10,
"type": "timeseries",
"title": "Chrony dispersion / delay",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 12,
"y": 6,
"w": 12,
"h": 8
},
"fieldConfig": {
"defaults": {
"unit": "\u00b5s",
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"lineWidth": 1,
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": false,
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "table",
"placement": "bottom",
"calcs": [
"lastNotNull",
"mean",
"max"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"refId": "A",
"expr": "ptp_gm_chrony_root_dispersion_seconds{instance=\"$instance\"} * 1e6",
"legendFormat": "dispersion",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
},
{
"refId": "B",
"expr": "ptp_gm_chrony_root_delay_seconds{instance=\"$instance\"} * 1e6",
"legendFormat": "root delay",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
}
]
},
{
"id": 11,
"type": "timeseries",
"title": "Chrony frequency",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 0,
"y": 14,
"w": 12,
"h": 8
},
"fieldConfig": {
"defaults": {
"unit": "ppm",
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"lineWidth": 1,
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": false,
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "table",
"placement": "bottom",
"calcs": [
"lastNotNull",
"mean",
"max"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"refId": "A",
"expr": "ptp_gm_chrony_frequency_ppm{instance=\"$instance\"}",
"legendFormat": "frequency",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
},
{
"refId": "B",
"expr": "ptp_gm_chrony_residual_frequency_ppm{instance=\"$instance\"}",
"legendFormat": "residual",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
},
{
"refId": "C",
"expr": "ptp_gm_chrony_skew_ppm{instance=\"$instance\"}",
"legendFormat": "skew",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
}
]
},
{
"id": 12,
"type": "timeseries",
"title": "System \u2194 PHC servo",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 12,
"y": 14,
"w": 12,
"h": 8
},
"fieldConfig": {
"defaults": {
"unit": "ns",
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"lineWidth": 1,
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": false,
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "table",
"placement": "bottom",
"calcs": [
"lastNotNull",
"mean",
"max"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"refId": "A",
"expr": "ptp_phc2sys_offset_nanoseconds{instance=\"$instance\"}",
"legendFormat": "{{clock}}",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
}
]
},
{
"id": 13,
"type": "row",
"title": "PTP serving",
"collapsed": false,
"gridPos": {
"x": 0,
"y": 22,
"w": 24,
"h": 1
},
"panels": []
},
{
"id": 14,
"type": "timeseries",
"title": "PTP message rate",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 0,
"y": 23,
"w": 16,
"h": 9
},
"fieldConfig": {
"defaults": {
"unit": "pps",
"custom": {
"drawStyle": "line",
"lineInterpolation": "linear",
"lineWidth": 1,
"fillOpacity": 10,
"showPoints": "never",
"spanNulls": false,
"axisPlacement": "auto",
"scaleDistribution": {
"type": "linear"
}
}
},
"overrides": []
},
"options": {
"legend": {
"displayMode": "table",
"placement": "bottom",
"calcs": [
"lastNotNull",
"mean",
"max"
]
},
"tooltip": {
"mode": "multi",
"sort": "desc"
}
},
"targets": [
{
"refId": "A",
"expr": "rate(ptp_port_messages_total{instance=\"$instance\",direction=\"tx\",message_type=~\"sync|follow_up|announce|delay_resp\"}[$__rate_interval])",
"legendFormat": "TX {{message_type}}",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
},
{
"refId": "B",
"expr": "rate(ptp_port_messages_total{instance=\"$instance\",direction=\"rx\",message_type=\"delay_req\"}[$__rate_interval])",
"legendFormat": "RX delay_req",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
}
}
]
},
{
"id": 15,
"type": "table",
"title": "PMC dataset health",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"gridPos": {
"x": 16,
"y": 23,
"w": 8,
"h": 9
},
"fieldConfig": {
"defaults": {},
"overrides": []
},
"options": {
"showHeader": true,
"cellHeight": "sm"
},
"targets": [
{
"refId": "A",
"expr": "ptp_exporter_pmc_dataset_success{instance=\"$instance\"}",
"legendFormat": "{{dataset}} {{error}}",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"instant": true,
"range": false
}
]
}
],
"refresh": "10s",
"schemaVersion": 39,
"tags": [
"ptp",
"67"
],
"templating": {
"list": [
{
"name": "instance",
"label": "Grandmaster",
"type": "query",
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"query": "label_values(ptp_linux_node_info{role=\"grandmaster\"}, instance)",
"definition": "label_values(ptp_linux_node_info{role=\"grandmaster\"}, instance)",
"refresh": 1,
"sort": 1,
"multi": false,
"includeAll": false,
"current": {},
"options": []
}
]
},
"time": {
"from": "now-6h",
"to": "now"
},
"timezone": "browser",
"title": "PTP - Grandmaster",
"uid": "ptp-grandmaster",
"version": 1,
"description": "GNSS/PPS, Chrony and PTP health for Grandmaster."
}