feat(hub): deploy_agent_termux.sh (runit+Termux:Boot+wake-lock, helpers shell battery/logcat), panels de batería + logs unificados en node detail
This commit is contained in:
@@ -161,13 +161,36 @@
|
||||
"fieldConfig": { "defaults": {}, "overrides": [ { "matcher": { "id": "byName", "options": "RAM %" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "custom.cellOptions", "value": { "type": "gauge" } }, { "id": "max", "value": 100 } ] } ] },
|
||||
"options": { "sortBy": [ { "displayName": "RAM %", "desc": true } ] }
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"type": "gauge",
|
||||
"title": "Batería % (móviles)",
|
||||
"gridPos": { "h": 6, "w": 8, "x": 0, "y": 41 },
|
||||
"datasource": { "type": "prometheus", "uid": "victoriametrics" },
|
||||
"targets": [ { "refId": "A", "expr": "node_battery_percent{instance=\"$node\"}", "datasource": { "type": "prometheus", "uid": "victoriametrics" } } ],
|
||||
"fieldConfig": { "defaults": { "unit": "percent", "min": 0, "max": 100, "thresholds": { "mode": "absolute", "steps": [ { "color": "red", "value": null }, { "color": "yellow", "value": 20 }, { "color": "green", "value": 50 } ] } }, "overrides": [] },
|
||||
"options": { "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false } }
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"type": "timeseries",
|
||||
"title": "Batería: nivel y temperatura",
|
||||
"gridPos": { "h": 6, "w": 16, "x": 8, "y": 41 },
|
||||
"datasource": { "type": "prometheus", "uid": "victoriametrics" },
|
||||
"targets": [
|
||||
{ "refId": "A", "expr": "node_battery_percent{instance=\"$node\"}", "legendFormat": "nivel %", "datasource": { "type": "prometheus", "uid": "victoriametrics" } },
|
||||
{ "refId": "B", "expr": "node_battery_temp_celsius{instance=\"$node\"}", "legendFormat": "temp °C", "datasource": { "type": "prometheus", "uid": "victoriametrics" } }
|
||||
],
|
||||
"fieldConfig": { "defaults": { "custom": { "drawStyle": "line", "fillOpacity": 8, "showPoints": "never", "lineWidth": 2 } }, "overrides": [ { "matcher": { "id": "byName", "options": "temp °C" }, "properties": [ { "id": "unit", "value": "celsius" } ] }, { "matcher": { "id": "byName", "options": "nivel %" }, "properties": [ { "id": "unit", "value": "percent" }, { "id": "max", "value": 100 } ] } ] },
|
||||
"options": { "legend": { "displayMode": "list", "placement": "bottom" }, "tooltip": { "mode": "multi" } }
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"type": "logs",
|
||||
"title": "Logs (journald)",
|
||||
"gridPos": { "h": 11, "w": 24, "x": 0, "y": 41 },
|
||||
"title": "Logs (journald / logcat)",
|
||||
"gridPos": { "h": 11, "w": 24, "x": 0, "y": 47 },
|
||||
"datasource": { "type": "loki", "uid": "loki" },
|
||||
"targets": [ { "refId": "A", "expr": "{instance=\"$node\", job=\"journald\"}", "datasource": { "type": "loki", "uid": "loki" } } ],
|
||||
"targets": [ { "refId": "A", "expr": "{instance=\"$node\"}", "datasource": { "type": "loki", "uid": "loki" } } ],
|
||||
"options": { "showTime": true, "wrapLogMessage": true, "prettifyLogMessage": false, "enableLogDetails": true, "dedupStrategy": "none", "sortOrder": "Descending" }
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user