You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable async-replication with the create-replication action
Enable monitoring with grafana-agent subordinates
Check alerts in prometheus (COS)
Expected behavior
Alert PostgresqlExporterError is not firing
Actual behavior
Alert PostgresqlExporterError is firing
Indeed the pg_exporter_last_scrape_error returns 1 on the replica unit of the standby cluster
curl -sS http://127.0.0.1:9187/metrics | grep pg_exporter_last_scrape_error
# HELP pg_exporter_last_scrape_error Whether the last scrape of metrics from PostgreSQL resulted in an error (1 for error, 0 for success).
# TYPE pg_exporter_last_scrape_error gauge
pg_exporter_last_scrape_error 1
The curl command above shows there is no scrape error.