Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(zigbee2mqtt): cleanup old deployments #4277

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Conversation

tyriis
Copy link
Owner

@tyriis tyriis commented Jan 7, 2025

No description provided.

Copy link

sonarqubecloud bot commented Jan 7, 2025

@tyriis-automation
Copy link
Contributor

--- kubernetes/talos-flux/apps Kustomization: flux-system/apps-sync Kustomization: flux-system/zigbee2mqtt

+++ kubernetes/talos-flux/apps Kustomization: flux-system/apps-sync Kustomization: flux-system/zigbee2mqtt

@@ -1,10 +1,13 @@

 ---
 apiVersion: kustomize.toolkit.fluxcd.io/v1
 kind: Kustomization
 metadata:
+  annotations:
+    backstage.io/discovery: enabled
+    backstage.io/name: zigbee2mqtt
   labels:
     kustomize.toolkit.fluxcd.io/name: apps-sync
     kustomize.toolkit.fluxcd.io/namespace: flux-system
     substitution.flux.home.arpa/enabled: 'true'
   name: zigbee2mqtt
   namespace: flux-system
--- kubernetes/talos-flux/apps/home-automation/zigbee2mqtt/app Kustomization: flux-system/zigbee2mqtt PrometheusRule: home-automation/zigbee2mqtt-rules

+++ kubernetes/talos-flux/apps/home-automation/zigbee2mqtt/app Kustomization: flux-system/zigbee2mqtt PrometheusRule: home-automation/zigbee2mqtt-rules

@@ -0,0 +1,24 @@

+---
+apiVersion: monitoring.coreos.com/v1
+kind: PrometheusRule
+metadata:
+  labels:
+    app.kubernetes.io/name: zigbee2mqtt
+    kustomize.toolkit.fluxcd.io/name: zigbee2mqtt
+    kustomize.toolkit.fluxcd.io/namespace: flux-system
+  name: zigbee2mqtt-rules
+  namespace: home-automation
+spec:
+  groups:
+  - name: zigbee2mqtt.rules
+    rules:
+    - alert: DeviceNotSeen
+      annotations:
+        summary: Zigbee Device {{ $labels.device }} on {{ $labels.job }} has not been
+          seen since 24h.
+      expr: zigbee2mqtt_last_seen{device!~"hue.*|tradfri ambience spot.*|ambient desk.*"}
+        > (60 * 60 * 24)
+      for: 10m
+      labels:
+        severity: warning
+

@tyriis-automation
Copy link
Contributor

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 2 0 0.01s
✅ REPOSITORY gitleaks yes no 3.99s
✅ YAML prettier 2 0 0.44s
✅ YAML yamllint 2 0 0.41s

See detailed report in MegaLinter reports
Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff

MegaLinter is graciously provided by OX Security

@tyriis tyriis merged commit 18f66ba into main Jan 7, 2025
16 checks passed
@tyriis tyriis deleted the feature/zigbee2mqtt-cleanup branch January 7, 2025 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant