Watch
0
0
Fork
You've already forked hyperhive
0

archive: push restic backup and prune metrics, and add a backups dashboard

This commit is contained in:
atlas 2026-11-14 11:06:38 +01:00
commit 723ce866f1

View file

@ -19,6 +19,9 @@
# A failed agent prints `archive backup failed: <agent>` to the journal,
# which the swarm's `archive backup failed` alert reads, and fails the unit
# after the others have been tried.
#
# Each agent's run also pushes `hyperhive.archive.backup.*` gauges to this
# hive's collector (./lib/archive-backup.nix); a failed push is only a warning.
{
pkgs,
lib,
@ -56,6 +59,7 @@ let
agentRoot = "/var/lib/hyperhive/agents";
url = "https://${hyperhiveCfg.swarm.archive.ownDomain}";
inherit caBundle;
otlpEndpoint = "http://${hyperhiveCfg.network.bridgeIp}:${toString hyperhiveCfg.swarm.hiveOtel.collectorPort}";
};
in
{
@ -137,6 +141,7 @@ in
baoDeploy.package
pkgs.btrfs-progs
pkgs.coreutils
pkgs.curl
pkgs.gnugrep
pkgs.jq
];