diff --git a/ops/glance/config/glance.yml b/ops/glance/config/glance.yml index 262c39b..aa3f972 100644 --- a/ops/glance/config/glance.yml +++ b/ops/glance/config/glance.yml @@ -34,6 +34,19 @@ theme: primary-color: 212 100 35 positive-color: 140 70 30 negative-color: 0 70 45 + synthwave: + background-color: 265 35 10 + primary-color: 320 100 65 + positive-color: 175 100 50 + negative-color: 0 100 65 + contrast-multiplier: 1.3 + matrix: + background-color: 130 25 6 + primary-color: 130 100 55 + positive-color: 130 100 45 + negative-color: 35 100 55 + contrast-multiplier: 1.25 + text-saturation-multiplier: 1.2 pages: $include: pages.yml diff --git a/ops/glance/config/home.yml b/ops/glance/config/home.yml index f0d7155..ea818fd 100644 --- a/ops/glance/config/home.yml +++ b/ops/glance/config/home.yml @@ -455,6 +455,34 @@ username: ${GLANCE_ADGUARD_USERNAME} password: ${GLANCE_ADGUARD_PASSWORD} + - type: custom-api + title: Borg Backup + title-url: https://borg.kaleschke.info + cache: 15m + url: http://monitoring-prometheus:9090/api/v1/query?query=homelab_borg_last_completed_timestamp_seconds + subrequests: + success: + url: http://monitoring-prometheus:9090/api/v1/query?query=homelab_borg_last_success + template: | + {{ $ts := .JSON.Float "data.result.0.value.1" }} + {{ $archive := .JSON.String "data.result.0.metric.archive" }} + {{ $succ := .Subrequest "success" }} + {{ $ok := $succ.JSON.Float "data.result.0.value.1" }} + {{ $status := $succ.JSON.String "data.result.0.metric.status" }} + {{ if eq $ts 0.0 }} +