WORKAN WOOOO

This commit is contained in:
2025-10-29 20:37:11 -06:00
parent 22bf81d900
commit 3e31226324
2 changed files with 185 additions and 92 deletions
+184 -91
View File
@@ -23,67 +23,52 @@
"panels": [ "panels": [
{ {
"datasource": { "datasource": {
"type": "datasource", "uid": "ff2k44t741udcc"
"uid": "grafana"
}, },
"description": "Long term average of time offset", "description": "System Time (Human Readable)",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
"mode": "palette-classic-by-name" "mode": "thresholds"
}, },
"custom": { "custom": {
"axisBorderShow": false, "align": "auto",
"axisCenteredZero": false, "cellOptions": {
"axisColorMode": "text", "type": "auto"
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
}, },
"insertNulls": false, "footer": {
"lineInterpolation": "linear", "reducers": []
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
}, },
"showPoints": "auto", "inspect": true,
"showValues": false, "tooltip": {
"spanNulls": false, "field": "system_time",
"stacking": { "placement": "auto"
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
} }
}, },
"displayName": "RMS Offset (Seconds)", "fieldMinMax": true,
"mappings": [], "mappings": [],
"max": 10,
"min": 10,
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
"steps": [ "steps": [
{ {
"color": "green", "color": "green",
"value": 0 "value": 0
},
{
"color": "red",
"value": 80
} }
] ]
}, },
"unit": "s" "unit": "s"
}, },
"overrides": [] "overrides": [
{
"matcher": {
"id": "byFrameRefID",
"options": "A"
},
"properties": []
}
]
}, },
"gridPos": { "gridPos": {
"h": 8, "h": 8,
@@ -91,66 +76,43 @@
"x": 0, "x": 0,
"y": 0 "y": 0
}, },
"id": 5, "id": 6,
"options": { "options": {
"legend": { "cellHeight": "sm",
"calcs": [], "enablePagination": false,
"displayMode": "list", "showHeader": false,
"placement": "bottom", "sortBy": [
"showLegend": true {
}, "desc": true,
"tooltip": { "displayName": "Time"
"hideZeros": false, }
"mode": "single", ]
"sort": "none"
}
}, },
"pluginVersion": "12.2.0", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": { "groupBy": [],
"type": "influxdb", "limit": "10",
"uid": "cenh879ru0gzkc"
},
"groupBy": [
{
"params": [
"1m"
],
"type": "time"
},
{
"params": [
"null"
],
"type": "fill"
}
],
"hide": false,
"measurement": "chrony", "measurement": "chrony",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "autogen", "policy": "autogen",
"refId": "A", "refId": "A",
"resultFormat": "time_series", "resultFormat": "table",
"select": [ "select": [
[ [
{ {
"params": [ "params": [
"rms_offset" "system_time"
], ],
"type": "field" "type": "field"
},
{
"params": [],
"type": "mean"
} }
] ]
], ],
"tags": [] "tags": []
} }
], ],
"title": "RMS Offset", "title": "System Time (Time - Offset)",
"type": "timeseries" "type": "table"
}, },
{ {
"datasource": { "datasource": {
@@ -236,7 +198,7 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "12.2.0", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"groupBy": [ "groupBy": [
@@ -283,7 +245,7 @@
"type": "datasource", "type": "datasource",
"uid": "grafana" "uid": "grafana"
}, },
"description": "Chrony frequency offset over last minute in PPM", "description": "Long term average of time offset",
"fieldConfig": { "fieldConfig": {
"defaults": { "defaults": {
"color": { "color": {
@@ -323,7 +285,7 @@
"mode": "off" "mode": "off"
} }
}, },
"displayName": "Frequency Offset (PPM)", "displayName": "RMS Offset (Seconds)",
"mappings": [], "mappings": [],
"thresholds": { "thresholds": {
"mode": "absolute", "mode": "absolute",
@@ -338,7 +300,7 @@
} }
] ]
}, },
"unit": "ppm" "unit": "s"
}, },
"overrides": [] "overrides": []
}, },
@@ -348,7 +310,7 @@
"x": 0, "x": 0,
"y": 8 "y": 8
}, },
"id": 4, "id": 5,
"options": { "options": {
"legend": { "legend": {
"calcs": [], "calcs": [],
@@ -362,9 +324,13 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "12.2.0", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"datasource": {
"type": "influxdb",
"uid": "cenh879ru0gzkc"
},
"groupBy": [ "groupBy": [
{ {
"params": [ "params": [
@@ -379,6 +345,7 @@
"type": "fill" "type": "fill"
} }
], ],
"hide": false,
"measurement": "chrony", "measurement": "chrony",
"orderByTime": "ASC", "orderByTime": "ASC",
"policy": "autogen", "policy": "autogen",
@@ -388,7 +355,7 @@
[ [
{ {
"params": [ "params": [
"frequency" "rms_offset"
], ],
"type": "field" "type": "field"
}, },
@@ -401,7 +368,7 @@
"tags": [] "tags": []
} }
], ],
"title": "Frequency Offset (PPM)", "title": "RMS Offset",
"type": "timeseries" "type": "timeseries"
}, },
{ {
@@ -488,7 +455,7 @@
"sort": "none" "sort": "none"
} }
}, },
"pluginVersion": "12.2.0", "pluginVersion": "12.2.1",
"targets": [ "targets": [
{ {
"groupBy": [ "groupBy": [
@@ -529,6 +496,132 @@
], ],
"title": "Frequency Skew (PPM)", "title": "Frequency Skew (PPM)",
"type": "timeseries" "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, "preload": false,
@@ -539,12 +632,12 @@
"list": [] "list": []
}, },
"time": { "time": {
"from": "now-3h", "from": "2025-10-29T23:28:59.423Z",
"to": "now" "to": "2025-10-30T01:44:27.424Z"
}, },
"timepicker": {}, "timepicker": {},
"timezone": "browser", "timezone": "browser",
"title": "Chrony", "title": "Chrony",
"uid": "69a006d6-ccaa-4e9e-a8ec-6dba0b30fa1e", "uid": "69a006d6-ccaa-4e9e-a8ec-6dba0b30fa1e",
"version": 2 "version": 14
} }
+1 -1
View File
@@ -12,7 +12,7 @@
# debug = true # debug = true
[[inputs.chrony]] [[inputs.chrony]]
metrics = ["tracking"] metrics = ["tracking", "measurements", "statistics"]
timeout = "3s" timeout = "3s"
[[outputs.influxdb]] [[outputs.influxdb]]