Commit 1c14f848 authored by Pablo Carranza's avatar Pablo Carranza Committed by GitLab

Add explanation on how to run pgbadger

parent 01ef4d5e
......@@ -125,6 +125,7 @@ The aim of this project is to have a quick guide of what to do when an emergency
* [Work with Kibana (logs view)](howto/kibana.md)
* [Work with Check_MK (Notifications, scheduled downtime, acknowledge problems)](howto/manage-checkmk.md)
* [Reload CheckMK metrics](howto/manage-checkmk.md#reload_host_metrics)
* [Run pgbadger to analyze queries](howto/postgresql.md#run-pgbadger-in-the-primary-database-server)
## General guidelines in an emergency
......
......@@ -64,4 +64,7 @@ JOIN pg_stat_activity blockinga ON blockingl.pid = blockinga.pid
WHERE NOT blockedl.granted;
```
## Run pgbadger in the primary database server
* sudo up
* `pgbadger | /usr/bin/pgbadger -o output.txt -`
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment