A Rust service/CLI that monitors your primary and read replica.
For local environment, spin up the postgres docker containers and Grafana environment including Prometheus via docker-compose.yml
docker-compose up -dIf you just want to run the grafana and prometheus, then you can use the following command:
docker-compose -f docker-compose-grafana.yml up -dUpdate the file config.yaml file with the connection details of your primary and read replica.
Pass the config file as the cli argument:
cargo run -- --config config.yamlNote: If you are are not using the Local setup via docker-compose, then expose the endpoint http://localhost:8080/metrics as a data source in Grafana to visualize the replication lag and other metrics. (It is already added in the prometheus.yml file for local setup)

