Argelbargel / vault-raft-snapshot-agent

An agent which creates periodic snapshots of Vault's integrated raft storage and stores them locally or in remote storages as backup in case of system failure or user errors.
MIT License
9 stars 4 forks source link

Adds prometheus metrics #37

Open anguswilliams opened 1 month ago

anguswilliams commented 1 month ago

Adds endpoint for prometheus metrics and instrument the snapshot function.

This allows for alerts to be created when snapshots fail or have not been taken for some time.

anguswilliams commented 1 month ago

Hey @Argelbargel, I've added some prometheus metrics, as I like to alert if backups fail. This allows me to generate alerts via alert manager, e.g.

vrsa_last_snapshot_success != 1

Will also add additional serviceMonitor and ports to your helm chart if you're happy with this.

Argelbargel commented 1 week ago

Hi @anguswilliams,

sorry, did not have the time yet to review your pull-request. I'll try to find some time for it this week...