restic-exporter: Deploy Restic Prometheus exporter

The [restic-exporter][0] exposes metrics about Restic snapshots as
Prometheus metrics.  This allows us to get similar data as we have for
BURP backups.  Chiefly important among the metrics are last backup time
and size, which we can use to determine if backups are working
correctly.

[0]: https://github.com/ngosang/restic-exporter
This commit is contained in:
2024-06-22 19:58:23 -05:00
parent ebcf9e3d42
commit 5079599423
7 changed files with 189 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: restic-exporter
labels:
- pairs:
app.kubernetes.io/instance: restic-exporter
resources:
- namespace.yaml
- network-policy.yaml
- restic-exporter.yaml
- secrets.yaml
configMapGenerator:
- name: restic-exporter
envs:
- restic-exporter.env
patches:
- patch: |-
apiVersion: apps/v1
kind: Deployment
metadata:
name: restic-exporter
spec:
template:
spec:
containers:
- name: restic-exporter
envFrom:
- secretRef:
name: restic-s3
- configMapRef:
name: restic-exporter