mkabilov / logical_backup

[WIP] Continuous backup of the tables using PostgreSQL logical replication
MIT License
9 stars 3 forks source link

Export backup progress to prometheus #25

Closed alexeyklyukin closed 6 years ago

alexeyklyukin commented 6 years ago

Export vital metrics that were previously stored as counters inside the TableBackup and LogicalBackup class to Prometheus.

Right now we expose both the per-table and global metrics (for instance, per table per message type counter and global message counter). We might decide to export only the most detailed one and derive the aggregated value from it in the future.

Some refactoring along the way to have a single point of storing metrics:

Miscellaneous small changes, mostly to simplify metrics collection.