{ "__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": "Timing chain overview", "collapsed": false, "gridPos": { "x": 0, "y": 0, "w": 24, "h": 1 }, "panels": [] }, { "id": 2, "type": "stat", "title": "Grandmaster 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=\"$gm\",source=\"PPS\",state=\"*\"})", "legendFormat": "", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "instant": true, "range": false } ] }, { "id": 3, "type": "stat", "title": "BorderClock GM present", "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": "ptp_gm_present{instance=\"$boundary\"}", "legendFormat": "", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "instant": true, "range": false } ] }, { "id": 4, "type": "stat", "title": "NEXUS locked", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 8, "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_nexus_clock_locked{instance=\"$nexus\"}", "legendFormat": "", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "instant": true, "range": false } ] }, { "id": 5, "type": "stat", "title": "BorderClock offset", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 12, "y": 1, "w": 4, "h": 4 }, "fieldConfig": { "defaults": { "unit": "ns", "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_master_offset_nanoseconds{instance=\"$boundary\"}", "legendFormat": "", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "instant": true, "range": false } ] }, { "id": 6, "type": "stat", "title": "NEXUS offset", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 16, "y": 1, "w": 4, "h": 4 }, "fieldConfig": { "defaults": { "unit": "ns", "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_nexus_offset_from_master_nanoseconds{instance=\"$nexus\"}", "legendFormat": "", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "instant": true, "range": false } ] }, { "id": 7, "type": "stat", "title": "NEXUS steps", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 20, "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_nexus_steps_removed{instance=\"$nexus\"}", "legendFormat": "", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "instant": true, "range": false } ] }, { "id": 8, "type": "row", "title": "Offsets", "collapsed": false, "gridPos": { "x": 0, "y": 5, "w": 24, "h": 1 }, "panels": [] }, { "id": 9, "type": "timeseries", "title": "Grandmaster GNSS/PPS offset", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 0, "y": 6, "w": 8, "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=\"$gm\"} * 1e6", "legendFormat": "Grandmaster", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ] }, { "id": 10, "type": "timeseries", "title": "BorderClock PTP offset", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 8, "y": 6, "w": 8, "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_master_offset_nanoseconds{instance=\"$boundary\"}", "legendFormat": "Border Clock", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ] }, { "id": 11, "type": "timeseries", "title": "NEXUS PTP offset", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 16, "y": 6, "w": 8, "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_nexus_offset_from_master_nanoseconds{instance=\"$nexus\"}", "legendFormat": "NEXUS", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ] }, { "id": 12, "type": "row", "title": "All Linux PTP nodes", "collapsed": false, "gridPos": { "x": 0, "y": 14, "w": 24, "h": 1 }, "panels": [] }, { "id": 13, "type": "timeseries", "title": "Offset by Linux instance", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 0, "y": 15, "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_master_offset_nanoseconds", "legendFormat": "{{instance}}", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ] }, { "id": 14, "type": "timeseries", "title": "Steps removed by Linux instance", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 12, "y": 15, "w": 12, "h": 8 }, "fieldConfig": { "defaults": { "unit": "short", "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_steps_removed", "legendFormat": "{{instance}}", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ] }, { "id": 15, "type": "row", "title": "NEXUS redundancy", "collapsed": false, "gridPos": { "x": 0, "y": 23, "w": 24, "h": 1 }, "panels": [] }, { "id": 16, "type": "table", "title": "NEXUS upstream states", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 0, "y": 24, "w": 8, "h": 8 }, "fieldConfig": { "defaults": {}, "overrides": [] }, "options": { "showHeader": true, "cellHeight": "sm" }, "targets": [ { "refId": "A", "expr": "ptp_nexus_port_state{instance=\"$nexus\"}", "legendFormat": "{{interface}} {{state}}", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "instant": true, "range": false } ] }, { "id": 17, "type": "timeseries", "title": "Delay_Req by link", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 8, "y": 24, "w": 8, "h": 8 }, "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_nexus_port_messages_total{instance=\"$nexus\",direction=\"tx\",message_type=\"delay_request\"}[$__rate_interval])", "legendFormat": "{{interface}}", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ] }, { "id": 18, "type": "timeseries", "title": "Linux exporter health", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "gridPos": { "x": 16, "y": 24, "w": 8, "h": 8 }, "fieldConfig": { "defaults": { "unit": "short", "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_exporter_scrape_success{stage=\"ok\"}", "legendFormat": "{{instance}}", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" } } ] } ], "refresh": "10s", "schemaVersion": 39, "tags": [ "ptp", "67" ], "templating": { "list": [ { "name": "gm", "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": [] }, { "name": "boundary", "label": "Boundary clock", "type": "query", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "query": "label_values(ptp_linux_node_info{role=\"boundary\"}, instance)", "definition": "label_values(ptp_linux_node_info{role=\"boundary\"}, instance)", "refresh": 1, "sort": 1, "multi": false, "includeAll": false, "current": {}, "options": [] }, { "name": "nexus", "label": "Nexus exporter", "type": "query", "datasource": { "type": "prometheus", "uid": "${DS_PROMETHEUS}" }, "query": "label_values(ptp_nexus_target_info, instance)", "definition": "label_values(ptp_nexus_target_info, instance)", "refresh": 1, "sort": 1, "multi": false, "includeAll": false, "current": {}, "options": [] } ] }, "time": { "from": "now-6h", "to": "now" }, "timezone": "browser", "title": "PTP Overview", "uid": "ptp-overview", "version": 1 }