kumar1202 / wal-g-prometheus-exporter

Export prometheus metrics for wal-g backup tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wal-g-prometheus-exporter

Requirements

  1. Python 3.7+ (For make build-binary).
  2. This exporter must run on Postgres instance that do the WAL archiving or you can check with SELECT * FROM pg_stat_archiver;. If there is no output from the query, then this exporter won't run and give an error message There is no WAL archiver process running on this postgresql\nCheck with SELECT * FROM pg_stat_archiver;
  3. WAL-G must be installed.

Build

  1. For Linux, you can use the binary from make build. It should run on most Linux distro.
  2. For specific OS or to run in your own machine, you can get the binary with make build-binary and use the binary output.

Usage

usage: wal-g-exporter [-h] --archive_dir ARCHIVE_DIR [--debug] [--version]

optional arguments:
  -h, --help            show this help message and exit
  --archive_dir ARCHIVE_DIR
                        pg_wal/archive_status/ Directory location
  --debug               enable debug log
  --version             show binary version

About

Export prometheus metrics for wal-g backup tool


Languages

Language:Python 80.6%Language:Dockerfile 9.3%Language:Shell 6.4%Language:Makefile 3.7%