feat(hass+kromgo)!: PhoneOps low battery!

This commit is contained in:
JJGadgets
2025-02-11 14:10:27 +08:00
parent cb51b04396
commit 0fb827b404
3 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
# Biohazard - JJ's Homelab Monorepo
**<ins>Glorifying jank that works.</ins>**
Powered by Flux, Kubernetes, Cilium, Talos, and jank. Amongst others.
<!--![Biohazard - CPU](https://img.shields.io/endpoint?url=https%3A%2F%2Fbiohazard-metrics.jjgadgets.tech%2Fquery%3Fformat%3Dendpoint%26metric%3Dcluster_cpu_usage&style=flat&label=Biohazard%20-%20CPU)
@@ -25,7 +27,8 @@ Powered by Flux, Kubernetes, Cilium, Talos, and jank. Amongst others.
![Biohazard - Pods Unhealthy](https://biohazard-metrics.jjgadgets.tech/cluster_pods_unhealthy?format=badge)
![Biohazard - Active Alerts](https://biohazard-metrics.jjgadgets.tech/prometheus_active_alerts?format=badge)
![Biohazard - Cilium Endpoints Unhealthy](https://biohazard-metrics.jjgadgets.tech/cilium_endpoints_unhealthy?format=badge)
![Biohazard - Cilium BPF Map Pressure](https://biohazard-metrics.jjgadgets.tech/cilium_bpf_map_pressure?format=badge)
![Biohazard - Cilium BPF Map Pressure](https://biohazard-metrics.jjgadgets.tech/cilium_bpf_map_pressure?format=badge)<br><br>
![Darkhawk - Battery](https://biohazard-metrics.jjgadgets.tech/darkhawk_battery_percent?format=badge)
</div>

View File

@@ -30,6 +30,7 @@ spec:
egress.home.arpa/r2: allow
egress.home.arpa/pypi: allow # entrypoint does a `uv pip install uv` in the venv
db.home.arpa/emqx: emqx
prom.home.arpa/kps: allow
dns.home.arpa/l7: "true"
annotations:
k8s.v1.cni.cncf.io/networks: |

View File

@@ -118,6 +118,14 @@ metrics:
- { color: "red", min: 70, max: 99999 }
# Personal devices
- name: darkhawk_battery_percent
query: round(homeassistant_sensor_battery_percent{entity="*darkhawk*"}, 0.01)
suffix: "%"
colors:
- { color: "red", min: 0, max: 20 }
- { color: "orange", min: 20.01, max: 49.99 }
- { color: "green", min: 50, max: 99999 }
- name: blackhawk_battery_percent
query: round(node_power_supply_capacity{instance="blackhawk.*"}, 0.01)
suffix: "%"