pgstatactivitymaxtx_duration want to alert when many long-running queries are happening.…
- User
pg_stat_activity_max_tx_duration want to alert when many long-running queries are happening. e.g. above the threshold of 500 seconds. should i use increase or rate? write a PromQL query and give me the alert condition
Assistant
Alerting on Long-Running PostgreSQL Queries
For monitoring long-running PostgreSQL queries using , you should use rather than because:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.