archive: push restic backup and prune metrics, and add a backups dashboard
This commit is contained in:
parent
9ac6024a67
commit
723ce866f1
1 changed files with 1288 additions and 4 deletions
|
|
@ -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
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue