From 3e31226324b426b87ceee2185c3ecf55ca0ea2a6 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Wed, 29 Oct 2025 20:37:11 -0600 Subject: [PATCH] WORKAN WOOOO --- Garfana-Visualization.json | 275 +++++++++++++++++--------- info-level-conf-huawaii/telegraf.conf | 2 +- 2 files changed, 185 insertions(+), 92 deletions(-) diff --git a/Garfana-Visualization.json b/Garfana-Visualization.json index 44d1b7b..09eae2a 100644 --- a/Garfana-Visualization.json +++ b/Garfana-Visualization.json @@ -23,67 +23,52 @@ "panels": [ { "datasource": { - "type": "datasource", - "uid": "grafana" + "uid": "ff2k44t741udcc" }, - "description": "Long term average of time offset", + "description": "System Time (Human Readable)", "fieldConfig": { "defaults": { "color": { - "mode": "palette-classic-by-name" + "mode": "thresholds" }, "custom": { - "axisBorderShow": false, - "axisCenteredZero": false, - "axisColorMode": "text", - "axisLabel": "", - "axisPlacement": "auto", - "barAlignment": 0, - "barWidthFactor": 0.6, - "drawStyle": "line", - "fillOpacity": 0, - "gradientMode": "none", - "hideFrom": { - "legend": false, - "tooltip": false, - "viz": false + "align": "auto", + "cellOptions": { + "type": "auto" }, - "insertNulls": false, - "lineInterpolation": "linear", - "lineWidth": 1, - "pointSize": 5, - "scaleDistribution": { - "type": "linear" + "footer": { + "reducers": [] }, - "showPoints": "auto", - "showValues": false, - "spanNulls": false, - "stacking": { - "group": "A", - "mode": "none" - }, - "thresholdsStyle": { - "mode": "off" + "inspect": true, + "tooltip": { + "field": "system_time", + "placement": "auto" } }, - "displayName": "RMS Offset (Seconds)", + "fieldMinMax": true, "mappings": [], + "max": 10, + "min": 10, "thresholds": { "mode": "absolute", "steps": [ { "color": "green", "value": 0 - }, - { - "color": "red", - "value": 80 } ] }, "unit": "s" }, - "overrides": [] + "overrides": [ + { + "matcher": { + "id": "byFrameRefID", + "options": "A" + }, + "properties": [] + } + ] }, "gridPos": { "h": 8, @@ -91,66 +76,43 @@ "x": 0, "y": 0 }, - "id": 5, + "id": 6, "options": { - "legend": { - "calcs": [], - "displayMode": "list", - "placement": "bottom", - "showLegend": true - }, - "tooltip": { - "hideZeros": false, - "mode": "single", - "sort": "none" - } + "cellHeight": "sm", + "enablePagination": false, + "showHeader": false, + "sortBy": [ + { + "desc": true, + "displayName": "Time" + } + ] }, - "pluginVersion": "12.2.0", + "pluginVersion": "12.2.1", "targets": [ { - "datasource": { - "type": "influxdb", - "uid": "cenh879ru0gzkc" - }, - "groupBy": [ - { - "params": [ - "1m" - ], - "type": "time" - }, - { - "params": [ - "null" - ], - "type": "fill" - } - ], - "hide": false, + "groupBy": [], + "limit": "10", "measurement": "chrony", "orderByTime": "ASC", "policy": "autogen", "refId": "A", - "resultFormat": "time_series", + "resultFormat": "table", "select": [ [ { "params": [ - "rms_offset" + "system_time" ], "type": "field" - }, - { - "params": [], - "type": "mean" } ] ], "tags": [] } ], - "title": "RMS Offset", - "type": "timeseries" + "title": "System Time (Time - Offset)", + "type": "table" }, { "datasource": { @@ -236,7 +198,7 @@ "sort": "none" } }, - "pluginVersion": "12.2.0", + "pluginVersion": "12.2.1", "targets": [ { "groupBy": [ @@ -283,7 +245,7 @@ "type": "datasource", "uid": "grafana" }, - "description": "Chrony frequency offset over last minute in PPM", + "description": "Long term average of time offset", "fieldConfig": { "defaults": { "color": { @@ -323,7 +285,7 @@ "mode": "off" } }, - "displayName": "Frequency Offset (PPM)", + "displayName": "RMS Offset (Seconds)", "mappings": [], "thresholds": { "mode": "absolute", @@ -338,7 +300,7 @@ } ] }, - "unit": "ppm" + "unit": "s" }, "overrides": [] }, @@ -348,7 +310,7 @@ "x": 0, "y": 8 }, - "id": 4, + "id": 5, "options": { "legend": { "calcs": [], @@ -362,9 +324,13 @@ "sort": "none" } }, - "pluginVersion": "12.2.0", + "pluginVersion": "12.2.1", "targets": [ { + "datasource": { + "type": "influxdb", + "uid": "cenh879ru0gzkc" + }, "groupBy": [ { "params": [ @@ -379,6 +345,7 @@ "type": "fill" } ], + "hide": false, "measurement": "chrony", "orderByTime": "ASC", "policy": "autogen", @@ -388,7 +355,7 @@ [ { "params": [ - "frequency" + "rms_offset" ], "type": "field" }, @@ -401,7 +368,7 @@ "tags": [] } ], - "title": "Frequency Offset (PPM)", + "title": "RMS Offset", "type": "timeseries" }, { @@ -488,7 +455,7 @@ "sort": "none" } }, - "pluginVersion": "12.2.0", + "pluginVersion": "12.2.1", "targets": [ { "groupBy": [ @@ -529,6 +496,132 @@ ], "title": "Frequency Skew (PPM)", "type": "timeseries" + }, + { + "datasource": { + "type": "datasource", + "uid": "grafana" + }, + "description": "Chrony frequency offset over last minute in PPM", + "fieldConfig": { + "defaults": { + "color": { + "mode": "palette-classic-by-name" + }, + "custom": { + "axisBorderShow": false, + "axisCenteredZero": false, + "axisColorMode": "text", + "axisLabel": "", + "axisPlacement": "auto", + "barAlignment": 0, + "barWidthFactor": 0.6, + "drawStyle": "line", + "fillOpacity": 0, + "gradientMode": "none", + "hideFrom": { + "legend": false, + "tooltip": false, + "viz": false + }, + "insertNulls": false, + "lineInterpolation": "linear", + "lineWidth": 1, + "pointSize": 5, + "scaleDistribution": { + "type": "linear" + }, + "showPoints": "auto", + "showValues": false, + "spanNulls": false, + "stacking": { + "group": "A", + "mode": "none" + }, + "thresholdsStyle": { + "mode": "off" + } + }, + "displayName": "Frequency Offset (PPM)", + "mappings": [], + "thresholds": { + "mode": "absolute", + "steps": [ + { + "color": "green", + "value": 0 + }, + { + "color": "red", + "value": 80 + } + ] + }, + "unit": "ppm" + }, + "overrides": [] + }, + "gridPos": { + "h": 8, + "w": 12, + "x": 0, + "y": 16 + }, + "id": 4, + "options": { + "legend": { + "calcs": [], + "displayMode": "list", + "placement": "bottom", + "showLegend": true + }, + "tooltip": { + "hideZeros": false, + "mode": "single", + "sort": "none" + } + }, + "pluginVersion": "12.2.1", + "targets": [ + { + "groupBy": [ + { + "params": [ + "1m" + ], + "type": "time" + }, + { + "params": [ + "null" + ], + "type": "fill" + } + ], + "measurement": "chrony", + "orderByTime": "ASC", + "policy": "autogen", + "refId": "A", + "resultFormat": "time_series", + "select": [ + [ + { + "params": [ + "frequency" + ], + "type": "field" + }, + { + "params": [], + "type": "mean" + } + ] + ], + "tags": [] + } + ], + "title": "Frequency Offset (PPM)", + "type": "timeseries" } ], "preload": false, @@ -539,12 +632,12 @@ "list": [] }, "time": { - "from": "now-3h", - "to": "now" + "from": "2025-10-29T23:28:59.423Z", + "to": "2025-10-30T01:44:27.424Z" }, "timepicker": {}, "timezone": "browser", "title": "Chrony", "uid": "69a006d6-ccaa-4e9e-a8ec-6dba0b30fa1e", - "version": 2 + "version": 14 } \ No newline at end of file diff --git a/info-level-conf-huawaii/telegraf.conf b/info-level-conf-huawaii/telegraf.conf index 425e1fa..18511e8 100644 --- a/info-level-conf-huawaii/telegraf.conf +++ b/info-level-conf-huawaii/telegraf.conf @@ -12,7 +12,7 @@ # debug = true [[inputs.chrony]] - metrics = ["tracking"] + metrics = ["tracking", "measurements", "statistics"] timeout = "3s" [[outputs.influxdb]]