Arlo-Kameras: Pushgateway (v1.11.5, :9091), Scrape-Job, 4 Alerts + Healer-notify, Dashboard arlo-kameras
ci / test (push) Failing after 22s
ci / test (push) Failing after 22s
Kiosk-Watchdog gode-pc-02 schiebt 4x taeglich Akku, Online-Status, Preview-Streaming und Verbrauchsmodell (job=arlo). Freigabe R. Rapp 03.11.
This commit is contained in:
@@ -0,0 +1,712 @@
|
||||
{
|
||||
"uid": "arlo-kameras",
|
||||
"title": "Arlo-Kameras – Akku und Verbrauch",
|
||||
"tags": [
|
||||
"knaster",
|
||||
"arlo",
|
||||
"kiosk"
|
||||
],
|
||||
"description": "Akku, Verbrauch und Prognose der Arlo-Kameras (Messung durch den Kiosk-Watchdog auf gode-pc-02, seit 03.11.2026)",
|
||||
"timezone": "browser",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"editable": false,
|
||||
"refresh": "5m",
|
||||
"time": {
|
||||
"from": "now-7d",
|
||||
"to": "now"
|
||||
},
|
||||
"templating": {
|
||||
"list": []
|
||||
},
|
||||
"annotations": {
|
||||
"list": []
|
||||
},
|
||||
"panels": [
|
||||
{
|
||||
"id": 1,
|
||||
"type": "text",
|
||||
"title": "Hinweise",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"w": 24,
|
||||
"h": 3
|
||||
},
|
||||
"targets": [],
|
||||
"options": {
|
||||
"mode": "markdown",
|
||||
"content": "Der Kiosk-Watchdog auf **gode-pc-02** liest den Akku der Online-Kameras **4× täglich** aus (07:45, 12:15, 17:45, 03:00): Zahnrad, dann *Device Settings*, dann *Battery*. Danach schiebt er die Werte an den Pushgateway auf infra. Offline-Kameras erscheinen nur in der Statusliste. **Tag** = 07:45–17:45, **Nacht** = 17:45–07:45. **Erwartet** rechnet mit dem Grundverbrauch aus Abschnitten ohne Streaming plus den Kosten je Minute Preview-Streaming. Das Modell wird aus den Messungen gelernt, die älter als 24 h sind, und erst nach ein paar Tagen belastbar. Live-Ansehen von Hand wird nicht gezählt und taucht deshalb als Mehrverbrauch auf. Quelle: `C:\\Android\\arlo-battery.csv` auf gode-pc-02."
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"type": "bargauge",
|
||||
"title": "Akkustand jetzt",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 3,
|
||||
"w": 12,
|
||||
"h": 8
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_percent{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}}",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"options": {
|
||||
"orientation": "horizontal",
|
||||
"displayMode": "gradient",
|
||||
"showUnfilled": true,
|
||||
"valueMode": "color",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
}
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"decimals": 0,
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "orange",
|
||||
"value": 20
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 40
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"type": "stat",
|
||||
"title": "Akku leer am (Prognose, Verbrauch 7 Tage)",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 12,
|
||||
"y": 3,
|
||||
"w": 8,
|
||||
"h": 8
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "(time() + arlo_battery_percent{job=\"arlo\"} / (arlo_battery_drain_percent_per_day{job=\"arlo\"} > 0.05) * 86400) * 1000",
|
||||
"legendFormat": "{{camera}}",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Linear: aktueller Akkustand geteilt durch den mittleren Verbrauch der letzten 7 Tage (Ladevorgänge ausgenommen). Leer = noch kein messbarer Verbrauch.",
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"orientation": "horizontal",
|
||||
"textMode": "value_and_name",
|
||||
"colorMode": "value",
|
||||
"graphMode": "none",
|
||||
"justifyMode": "auto"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "dateTimeAsLocalNoDateIfToday",
|
||||
"color": {
|
||||
"mode": "fixed",
|
||||
"fixedColor": "text"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"type": "stat",
|
||||
"title": "Letzte Messung vor",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 20,
|
||||
"y": 3,
|
||||
"w": 4,
|
||||
"h": 8
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "time() - push_time_seconds{job=\"arlo\"}",
|
||||
"legendFormat": "gode-pc-02",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Zeit seit dem letzten Push von gode-pc-02. Die längste planmäßige Lücke ist 17:45 → 03:00 (9 h 15 min). Rot ab 13 h.",
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"colorMode": "background",
|
||||
"graphMode": "none",
|
||||
"textMode": "value"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s",
|
||||
"decimals": 0,
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 46800
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"type": "timeseries",
|
||||
"title": "Akkustand Verlauf",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 11,
|
||||
"w": 24,
|
||||
"h": 9
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_percent{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}}"
|
||||
}
|
||||
],
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"custom": {
|
||||
"lineInterpolation": "stepAfter",
|
||||
"lineWidth": 2,
|
||||
"showPoints": "never",
|
||||
"spanNulls": true
|
||||
},
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "red",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "transparent",
|
||||
"value": 20
|
||||
}
|
||||
]
|
||||
},
|
||||
"color": {
|
||||
"mode": "palette-classic"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
},
|
||||
"options": {
|
||||
"legend": {
|
||||
"displayMode": "table",
|
||||
"placement": "right",
|
||||
"calcs": [
|
||||
"lastNotNull",
|
||||
"min"
|
||||
]
|
||||
},
|
||||
"tooltip": {
|
||||
"mode": "multi",
|
||||
"sort": "desc"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"type": "bargauge",
|
||||
"title": "Verbrauch Tag / Nacht (% je Stunde, 7 Tage)",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 20,
|
||||
"w": 10,
|
||||
"h": 9
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_drain_percent_per_hour{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}} {{period}}",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Akkuabnahme je Stunde, getrennt nach Tag (07:45–17:45) und Nacht (17:45–07:45). Abschnitte mit Laden werden nicht gezählt.",
|
||||
"options": {
|
||||
"orientation": "horizontal",
|
||||
"displayMode": "basic",
|
||||
"showUnfilled": true,
|
||||
"valueMode": "color",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
}
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"decimals": 2,
|
||||
"min": 0,
|
||||
"color": {
|
||||
"mode": "fixed",
|
||||
"fixedColor": "blue"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"type": "bargauge",
|
||||
"title": "Erwartet vs. tatsächlich (letzte 24 h, % Akku)",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 10,
|
||||
"y": 20,
|
||||
"w": 9,
|
||||
"h": 9
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_24h_actual_percent{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}} tatsächlich",
|
||||
"instant": true,
|
||||
"range": false
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_24h_expected_percent{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}} erwartet",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Erwartet = Grundverbrauch × Stunden + Kosten je Streaming-Minute × Minuten Preview-Streaming. Das Modell lernt nur aus Messungen, die älter als 24 h sind. Fehlt der Balken, sind es noch zu wenige Daten.",
|
||||
"options": {
|
||||
"orientation": "horizontal",
|
||||
"displayMode": "basic",
|
||||
"showUnfilled": true,
|
||||
"valueMode": "color",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
}
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"decimals": 1,
|
||||
"min": 0,
|
||||
"color": {
|
||||
"mode": "fixed",
|
||||
"fixedColor": "text"
|
||||
}
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byRegexp",
|
||||
"options": ".*tatsächlich"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"mode": "fixed",
|
||||
"fixedColor": "orange"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"matcher": {
|
||||
"id": "byRegexp",
|
||||
"options": ".*erwartet"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"id": "color",
|
||||
"value": {
|
||||
"mode": "fixed",
|
||||
"fixedColor": "blue"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"type": "stat",
|
||||
"title": "Mehrverbrauch 24 h",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 19,
|
||||
"y": 20,
|
||||
"w": 5,
|
||||
"h": 9
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_24h_actual_percent{job=\"arlo\"} - arlo_battery_24h_expected_percent{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}}",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Tatsächlich minus erwartet. Orange ab 1 %, rot ab 3 % Akku über der Erwartung, z. B. durch viel Live-Ansehen von Hand, Bewegungsaufnahmen, schwaches LTE oder einen alternden Akku.",
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"colorMode": "background",
|
||||
"graphMode": "none",
|
||||
"textMode": "value_and_name",
|
||||
"orientation": "horizontal"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"decimals": 1,
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "green",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "orange",
|
||||
"value": 1
|
||||
},
|
||||
{
|
||||
"color": "red",
|
||||
"value": 3
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"type": "stat",
|
||||
"title": "Kameras",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 0,
|
||||
"y": 29,
|
||||
"w": 8,
|
||||
"h": 8
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_camera_online{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}}",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Stand der letzten Messung. Offline-Kameras sind grau und lösen keine Warnung aus.",
|
||||
"options": {
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
},
|
||||
"colorMode": "background",
|
||||
"graphMode": "none",
|
||||
"textMode": "value_and_name",
|
||||
"orientation": "horizontal",
|
||||
"justifyMode": "auto"
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"mappings": [
|
||||
{
|
||||
"type": "value",
|
||||
"options": {
|
||||
"0": {
|
||||
"text": "offline",
|
||||
"color": "#4a4a4a"
|
||||
},
|
||||
"1": {
|
||||
"text": "online",
|
||||
"color": "green"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"color": {
|
||||
"mode": "thresholds"
|
||||
},
|
||||
"thresholds": {
|
||||
"mode": "absolute",
|
||||
"steps": [
|
||||
{
|
||||
"color": "#4a4a4a",
|
||||
"value": null
|
||||
},
|
||||
{
|
||||
"color": "green",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"type": "bargauge",
|
||||
"title": "Preview-Streaming (Sekunden, 24 h)",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 8,
|
||||
"y": 29,
|
||||
"w": 8,
|
||||
"h": 8
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "increase(arlo_preview_stream_seconds_total{job=\"arlo\"}[24h])",
|
||||
"legendFormat": "{{camera}}",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Streaming-Sekunden, die der Preview-Refresh (alle 90 min, 08:00–17:30) je Kamera verursacht hat.",
|
||||
"options": {
|
||||
"orientation": "horizontal",
|
||||
"displayMode": "basic",
|
||||
"showUnfilled": true,
|
||||
"valueMode": "color",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
}
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "s",
|
||||
"decimals": 0,
|
||||
"min": 0,
|
||||
"color": {
|
||||
"mode": "fixed",
|
||||
"fixedColor": "purple"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"type": "bargauge",
|
||||
"title": "Modell: Grundverbrauch (% je Tag)",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"gridPos": {
|
||||
"x": 16,
|
||||
"y": 29,
|
||||
"w": 8,
|
||||
"h": 8
|
||||
},
|
||||
"targets": [
|
||||
{
|
||||
"refId": "A",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_model_base_percent_per_day{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}} Grund",
|
||||
"instant": true,
|
||||
"range": false
|
||||
},
|
||||
{
|
||||
"refId": "B",
|
||||
"datasource": {
|
||||
"type": "prometheus",
|
||||
"uid": "prometheus"
|
||||
},
|
||||
"expr": "arlo_battery_model_stream_percent_per_minute{job=\"arlo\"}",
|
||||
"legendFormat": "{{camera}} je Stream-Min.",
|
||||
"instant": true,
|
||||
"range": false
|
||||
}
|
||||
],
|
||||
"description": "Gelernte Werte: Grundverbrauch aus Abschnitten ohne Streaming, Zusatz je Minute Preview-Streaming.",
|
||||
"options": {
|
||||
"orientation": "horizontal",
|
||||
"displayMode": "basic",
|
||||
"showUnfilled": false,
|
||||
"valueMode": "color",
|
||||
"reduceOptions": {
|
||||
"calcs": [
|
||||
"lastNotNull"
|
||||
],
|
||||
"fields": "",
|
||||
"values": false
|
||||
}
|
||||
},
|
||||
"fieldConfig": {
|
||||
"defaults": {
|
||||
"unit": "percent",
|
||||
"decimals": 2,
|
||||
"min": 0,
|
||||
"color": {
|
||||
"mode": "fixed",
|
||||
"fixedColor": "blue"
|
||||
}
|
||||
},
|
||||
"overrides": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
# nvidia-gpu.json ID 14574 „Nvidia GPU Metrics“ Revision 15 (für utkuozdemir/nvidia_gpu_exporter)
|
||||
# knaster-uebersicht.json eigenes Dashboard (Startseite, für den Kiosk in Task 5.3)
|
||||
# k3s-pods.json eigenes Dashboard (Task 6.5): Pods je Namespace (Vorgabe nex), kube-state-metrics + cAdvisor
|
||||
# arlo-kameras.json eigenes Dashboard (03.11.): Akku/Verbrauch der Arlo-Kameras (Pushgateway, Kiosk gode-pc-02)
|
||||
apiVersion: 1
|
||||
providers:
|
||||
- name: knaster
|
||||
|
||||
Reference in New Issue
Block a user