-
Global information
- Generated on Thu Apr 30 06:06:28 2026
- Log file: /var/log/postgresql/postgresql-2026-03-25_000000.csv, ..., /var/log/postgresql/postgresql-2026-04-30_000000.csv
- Parsed 208,684 log entries in 6m27s
- Log start from 2026-04-18 00:00:01 to 2026-04-18 23:59:13
-
Overview
Global Stats
- 26 Number of unique normalized queries
- 24,516 Number of queries
- 13h2m8s Total query duration
- 2026-04-18 00:00:01 First query
- 2026-04-18 23:59:01 Last query
- 17 queries/s at 2026-04-18 19:19:01 Query peak
- 13h2m8s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 13h2m8s Execute total duration
- 0 Number of events
- 0 Number of unique normalized events
- 0 Max number of times the same event was reported
- 0 Number of cancellation
- 8 Total number of automatic vacuums
- 6 Total number of automatic analyzes
- 140 Number temporary file
- 86.65 MiB Max size of temporary file
- 53.74 MiB Average size of temporary file
- 16,710 Total number of sessions
- 12 sessions at 2026-04-18 12:12:57 Session peak
- 58m33s Total duration of sessions
- 210ms Average duration of sessions
- 1 Average queries per session
- 2s808ms Average queries duration per session
- 0ms Average idle time per session
- 16,710 Total number of connections
- 33 connections/s at 2026-04-18 15:13:01 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 17 queries/s Query Peak
- 2026-04-18 19:19:01 Date
SELECT Traffic
Key values
- 0 queries/s Query Peak
- Date
INSERT/UPDATE/DELETE Traffic
Key values
- 17 queries/s Query Peak
- 2026-04-18 19:19:01 Date
Queries duration
Key values
- 13h2m8s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 18 00 1,020 0ms 0ms 0ms 0ms 0ms 0ms 01 1,021 0ms 956ms 462ms 16s264ms 16s264ms 16s264ms 02 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 03 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 04 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 05 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 06 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 07 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 08 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 09 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 10 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 11 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 12 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 13 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 14 1,020 956ms 956ms 956ms 16s264ms 16s264ms 16s264ms 15 1,025 956ms 4s627ms 2s884ms 1m7s 1m10s 1m22s 16 1,026 3s702ms 3s915ms 3s834ms 1m6s 1m9s 1m10s 17 1,026 3s751ms 3s867ms 3s793ms 1m7s 1m8s 1m9s 18 1,026 3s683ms 3s793ms 3s731ms 1m6s 1m7s 1m8s 19 1,025 3s714ms 3s836ms 3s770ms 1m5s 1m7s 1m9s 20 1,020 3s788ms 3s788ms 3s788ms 1m4s 1m4s 1m4s 21 1,020 3s788ms 3s788ms 3s788ms 1m4s 1m4s 1m4s 22 1,020 3s788ms 3s788ms 3s788ms 1m4s 1m4s 1m4s 23 1,027 631ms 3s788ms 3s603ms 1m4s 1m4s 1m14s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 18 00 0 0 0ms 0ms 0ms 0ms 01 0 0 0ms 0ms 0ms 0ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 0 0 0ms 0ms 0ms 0ms 06 0 0 0ms 0ms 0ms 0ms 07 0 0 0ms 0ms 0ms 0ms 08 0 0 0ms 0ms 0ms 0ms 09 0 0 0ms 0ms 0ms 0ms 10 0 0 0ms 0ms 0ms 0ms 11 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 0 0 0ms 0ms 0ms 0ms 15 0 0 0ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 7 1s473ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Apr 18 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 956ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Apr 18 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 0 0.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 5 5.00 0.00% 16 0 6 6.00 0.00% 17 0 6 6.00 0.00% 18 0 6 6.00 0.00% 19 0 5 5.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Apr 18 00 544 0.15/s 01 547 0.15/s 02 546 0.15/s 03 544 0.15/s 04 544 0.15/s 05 546 0.15/s 06 547 0.15/s 07 814 0.23/s 08 642 0.18/s 09 945 0.26/s 10 928 0.26/s 11 931 0.26/s 12 936 0.26/s 13 917 0.25/s 14 906 0.25/s 15 817 0.23/s 16 725 0.20/s 17 721 0.20/s 18 718 0.20/s 19 695 0.19/s 20 550 0.15/s 21 544 0.15/s 22 550 0.15/s 23 553 0.15/s Day Hour Count Average Duration Average idle time Apr 18 00 544 231ms 231ms 01 547 232ms 0ms 02 546 230ms 0ms 03 544 231ms 0ms 04 544 231ms 0ms 05 546 230ms 0ms 06 547 228ms 0ms 07 814 189ms 0ms 08 642 210ms 0ms 09 945 177ms 0ms 10 928 177ms 0ms 11 931 178ms 0ms 12 936 179ms 0ms 13 917 181ms 0ms 14 906 185ms 0ms 15 817 213ms 0ms 16 725 228ms 0ms 17 721 228ms 0ms 18 718 225ms 0ms 19 695 226ms 0ms 20 550 227ms 0ms 21 544 228ms 0ms 22 550 228ms 0ms 23 553 257ms 0ms -
Connections
Established Connections
Key values
- 33 connections Connection Peak
- 2026-04-18 15:13:01 Date
Connections per database
Key values
- zemm_monitoring Main Database
- 16,710 connections Total
Connections per user
Key values
- labanimal Main User
- 16,710 connections Total
-
Sessions
Simultaneous sessions
Key values
- 12 sessions Session Peak
- 2026-04-18 12:12:57 Date
Histogram of session times
Key values
- 15,112 0-500ms duration
Sessions per database
Key values
- zemm_monitoring Main Database
- 16,710 sessions Total
Sessions per user
Key values
- labanimal Main User
- 16,710 sessions Total
Sessions per host
Key values
- ::1 Main Host
- 16,710 sessions Total
Sessions per application
Key values
- Main Application
- 16,710 sessions Total
Application Count Total Duration Average Duration 15,162 57m25s 227ms _desktop__zemm_produktiv_8_localhost_5432 1 68ms 68ms _desktop_index.php_command_login_subcommand_init_zemm_produktiv 1,471 44s534ms 30ms _desktop_index.php_command_reports_subcommand_animals_per_user_ 1 106ms 106ms _desktop_index.php_command_tasks_subcommand_open_zemm_produktiv 2 121ms 60ms _desktop_index.php_zemm_produktiv_8_localhost_5432 22 2s433ms 110ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 973ms 973ms fatescron:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s165ms 1s165ms pg_dump 1 16s132ms 16s132ms taskscron:zemm_produktiv_7@zemm.fbiscience.eu 24 595ms 24ms taskscron:zemm_produktiv_8@h2940066.stratoserver.net:5432 24 1s854ms 77ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 55,861 buffers Checkpoint Peak
- 2026-04-18 15:28:12 Date
- 269.681 seconds Highest write time
- 0.022 seconds Sync time
Checkpoints Wal files
Key values
- 11 files Wal files usage Peak
- 2026-04-18 15:28:12 Date
Checkpoints distance
Key values
- 354.78 Mo Distance Peak
- 2026-04-18 15:28:12 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Apr 18 00 2,373 238.021s 0.079s 238.153s 01 20,962 489.845s 0.084s 489.983s 02 7,396 500.238s 0.083s 500.37s 03 3,035 304.141s 0.085s 304.278s 04 2,651 265.879s 0.082s 266.013s 05 2,619 262.658s 0.081s 262.788s 06 5,331 533.772s 0.087s 533.908s 07 3,824 383.063s 0.081s 383.195s 08 2,979 298.705s 0.085s 298.84s 09 2,905 291.342s 0.098s 291.492s 10 3,023 303.188s 0.124s 303.362s 11 2,868 287.598s 0.117s 287.769s 12 3,150 315.767s 0.115s 315.932s 13 3,288 329.658s 0.121s 329.83s 14 2,855 286.334s 0.111s 286.493s 15 58,522 536.381s 0.091s 536.53s 16 3,585 359.04s 0.106s 359.194s 17 3,973 397.993s 0.097s 398.141s 18 3,572 358.027s 0.096s 358.176s 19 3,364 337.293s 0.098s 337.441s 20 2,495 250.242s 0.094s 250.395s 21 2,450 245.747s 0.104s 245.901s 22 2,528 253.568s 0.104s 253.722s 23 2,866 287.33s 0.11s 287.491s Day Hour Added Removed Recycled Synced files Longest sync Average sync Apr 18 00 0 0 1 397 0.002s 0.012s 01 0 0 7 429 0.002s 0.012s 02 0 0 1 414 0.002s 0.012s 03 0 0 1 442 0.001s 0.012s 04 0 0 1 426 0.001s 0.012s 05 0 0 1 425 0.002s 0.012s 06 0 0 1 438 0.002s 0.012s 07 0 0 1 418 0.002s 0.012s 08 0 0 1 419 0.002s 0.012s 09 0 0 1 519 0.002s 0.012s 10 0 0 1 475 0.004s 0.012s 11 0 0 1 457 0.003s 0.012s 12 0 0 0 455 0.003s 0.012s 13 0 0 1 455 0.003s 0.012s 14 0 0 1 436 0.002s 0.012s 15 0 0 12 390 0.003s 0.011s 16 0 0 1 427 0.002s 0.012s 17 0 0 1 436 0.002s 0.012s 18 0 0 1 432 0.003s 0.012s 19 0 0 1 433 0.003s 0.012s 20 0 0 1 432 0.003s 0.012s 21 0 0 1 428 0.002s 0.012s 22 0 0 1 431 0.002s 0.012s 23 0 0 1 452 0.003s 0.012s Day Hour Count Avg time (sec) Apr 18 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Apr 18 00 1,099.58 kB 1,592.42 kB 01 9,062.00 kB 38,505.08 kB 02 2,165.00 kB 31,758.50 kB 03 1,217.17 kB 10,306.83 kB 04 1,138.33 kB 3,730.50 kB 05 1,130.33 kB 1,868.08 kB 06 1,831.42 kB 5,558.33 kB 07 1,321.08 kB 2,931.83 kB 08 1,176.42 kB 1,689.00 kB 09 1,175.25 kB 1,495.08 kB 10 1,231.58 kB 1,391.83 kB 11 1,192.83 kB 1,256.67 kB 12 1,246.00 kB 1,277.42 kB 13 1,253.58 kB 1,813.08 kB 14 1,176.42 kB 1,406.92 kB 15 17,723.55 kB 86,858.91 kB 16 1,384.33 kB 52,952.25 kB 17 1,489.58 kB 15,986.08 kB 18 1,404.17 kB 5,561.67 kB 19 1,346.92 kB 2,562.42 kB 20 1,132.17 kB 1,571.08 kB 21 1,118.50 kB 1,249.25 kB 22 1,140.75 kB 1,175.67 kB 23 1,218.00 kB 1,581.92 kB -
Temporary Files
Size of temporary files
Key values
- 269.50 MiB Temp Files size Peak
- 2026-04-18 15:20:57 Date
Number of temporary files
Key values
- 5 per second Temp Files Peak
- 2026-04-18 19:41:18 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Apr 18 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 25 1.31 GiB 53.71 MiB 16 30 1.57 GiB 53.69 MiB 17 30 1.57 GiB 53.73 MiB 18 30 1.58 GiB 53.78 MiB 19 25 1.31 GiB 53.82 MiB 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 Queries generating the most temporary files (N)
Rank Count Total size Min size Max size Avg size Query 1 112 5.57 GiB 45.50 MiB 57.64 MiB 50.91 MiB with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 09:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:20:57 Duration: 4s627ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:31:17 Duration: 3s948ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:21:14 Duration: 3s946ms Database: zemm_monitoring User: labanimal Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
Queries generating the largest temporary files
Rank Size Query 1 57.64 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 16:01:17 - Queryid: 1753447 ]
2 57.17 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 19:01:18 - Queryid: 1814289 ]
3 56.95 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 16:31:17 - Queryid: 1763013 ]
4 56.77 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 15:31:17 - Queryid: 1743555 ]
5 55.78 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 18:31:18 - Queryid: 1803716 ]
6 55.51 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 18:31:18 - Queryid: 1803716 ]
7 55.34 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 16:01:17 - Queryid: 1753447 ]
8 55.16 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 19:41:18 - Queryid: 1828231 ]
9 54.60 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 18:41:18 - Queryid: 1807396 ]
10 54.52 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 19:11:18 - Queryid: 1817933 ]
11 54.40 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 17:01:17 - Queryid: 1772962 ]
12 54.37 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 17:11:17 - Queryid: 1776579 ]
13 54.23 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 15:41:17 - Queryid: 1747040 ]
14 54.22 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 17:11:17 - Queryid: 1776579 ]
15 54.05 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 17:51:18 - Queryid: 1790263 ]
16 54.03 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 17:01:17 - Queryid: 1772962 ]
17 53.99 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 19:31:18 - Queryid: 1824900 ]
18 53.80 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 17:21:18 - Queryid: 1779906 ]
19 53.70 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 18:01:18 - Queryid: 1793564 ]
20 53.62 MiB WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($1) AND collected_at <= $2 ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($3) AND collected_at BETWEEN $4 AND $5 ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ($6) AND collected_at BETWEEN $7 AND $8 ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT $9 OFFSET $10;[ Date: 2026-04-18 19:21:18 - Queryid: 1821327 ]
-
Vacuums
Vacuums / Analyzes Distribution
Key values
- 1.57 sec Highest CPU-cost vacuum
Table observability.metrics_timeseries
Database zemm_monitoring - 2026-04-18 02:48:24 Date
- 0 sec Highest CPU-cost analyze
Table
Database zemm_monitoring - Date
Average Autovacuum Duration
Key values
- 1.57 sec Highest CPU-cost vacuum
Table observability.metrics_timeseries
Database zemm_monitoring - 2026-04-18 02:48:24 Date
Analyzes per table
Key values
- pg_catalog.pg_type (1) Main table analyzed (database zemm_produktiv_8)
- 6 analyzes Total
Vacuums per table
Key values
- pg_toast.pg_toast_67431 (5) Main table vacuumed on database zemm_monitoring
- 8 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples zemm_monitoring.pg_toast.pg_toast_67431 5 0 0 0 0 0 0 4,487 1,505 3,419,012 1,484 8,904 zemm_monitoring.observability.metrics_timeseries 1 1 0 0 0 0 0 10,681 5,057 12,587,473 1,017 23,358 zemm_produktiv_8.pg_catalog.pg_class 1 1 0 0 0 0 0 97 33 41,390 0 0 zemm_produktiv_8.public.tasks 1 1 0 0 0 0 0 47,117 45 3,500,091 2 6 Total 8 3 0 0 0 0 0 62,382 6,640 19,547,966 2,503 32,268 Vacuum throughput per table
Key values
- observability.metrics_timeseries (1.57) Max CPU elapsed for vacuum on database zemm_monitoring
- observability.metrics_timeseries (7.197 ms) Max I/O read time for vacuum on database zemm_monitoring
- observability.metrics_timeseries (1.306 ms) Max I/O write time for vacuum on database zemm_monitoring
Tuples removed per table
Key values
- public.tasks (53882) Main table with removed tuples on database zemm_produktiv_8
- 77873 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain zemm_produktiv_8.public.tasks 1 1 53,882 56,952 0 0 16,781 zemm_monitoring.observability.metrics_timeseries 1 1 23,815 349,875 0 0 7,136 zemm_produktiv_8.pg_catalog.pg_class 1 1 176 894 0 0 42 zemm_monitoring.pg_toast.pg_toast_67431 5 0 0 2,055,854 0 0 346,279 Total 8 3 77,873 2,463,575 0 0 370,238 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed zemm_monitoring.observability.metrics_timeseries 1 1 23815 0 zemm_produktiv_8.pg_catalog.pg_class 1 1 176 0 zemm_monitoring.pg_toast.pg_toast_67431 5 0 0 0 zemm_produktiv_8.public.tasks 1 1 53882 0 Total 8 3 77,873 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Apr 18 00 0 0 01 1 1 02 1 0 03 1 0 04 0 0 05 0 0 06 0 2 07 1 0 08 0 0 09 1 1 10 0 0 11 0 0 12 1 0 13 0 1 14 0 0 15 0 0 16 0 0 17 1 0 18 0 0 19 0 0 20 0 0 21 0 0 22 1 0 23 0 1 - 1.57 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 0 Total read queries
- 24,516 Total write queries
Queries by database
Key values
- zemm_monitoring Main database
- 24,508 Requests
- 13h1m56s (zemm_monitoring)
- Main time consuming database
Queries by user
Key values
- labanimal Main user
- 573,438 Requests
User Request type Count Duration deploy Total 58 14m47s cte 4 1m18s ddl 30 4m31s others 9 22s849ms select 9 6m3s labanimal Total 573,438 14d8h1m58s copy from 8 18s286ms copy to 96 4m30s cte 2,515 2h44m19s ddl 568,685 14d4h32m58s others 179 2m6s select 1,911 36m58s tcl 3 1s733ms update 27 28s648ms postgres Total 146 3m15s copy to 146 3m15s Duration by user
Key values
- 14d8h1m58s (labanimal) Main time consuming user
User Request type Count Duration deploy Total 58 14m47s cte 4 1m18s ddl 30 4m31s others 9 22s849ms select 9 6m3s labanimal Total 573,438 14d8h1m58s copy from 8 18s286ms copy to 96 4m30s cte 2,515 2h44m19s ddl 568,685 14d4h32m58s others 179 2m6s select 1,911 36m58s tcl 3 1s733ms update 27 28s648ms postgres Total 146 3m15s copy to 146 3m15s Queries by host
Key values
- unknown Main host
- 573,408 Requests
- 14d7h58m27s (unknown)
- Main time consuming host
Host Request type Count Duration 127.0.0.1 Total 2 6s311ms ddl 2 6s311ms 81.169.238.237 Total 28 3m25s select 1 2m56s update 27 28s648ms [local] Total 204 18m3s copy to 146 3m15s cte 4 1m18s ddl 30 4m31s others 9 22s849ms select 9 6m3s unknown Total 573,408 14d7h58m27s copy from 8 18s286ms copy to 96 4m30s cte 2,515 2h44m19s ddl 568,683 14d4h32m52s others 179 2m6s select 1,910 34m1s tcl 3 1s733ms Queries by application
Key values
- unknown Main application
- 24,508 Requests
- 13h1m56s (unknown)
- Main time consuming application
Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-04-18 15:18:02 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 34 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 4s627ms WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 09:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';[ Date: 2026-04-18 15:20:57 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
2 4s627ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
3 4s627ms CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
4 4s627ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
5 4s627ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
6 4s627ms CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
7 4s627ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
8 4s627ms CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
9 4s627ms CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
10 4s627ms CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
11 4s627ms CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
12 4s627ms CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
13 4s627ms CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
14 4s627ms CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
15 4s627ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
16 4s627ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
17 4s627ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
18 4s627ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);[ Date: 2026-04-18 15:21:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
19 3s948ms WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';[ Date: 2026-04-18 15:31:17 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
20 3s948ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-04-18 15:32:01 - Database: zemm_monitoring - User: labanimal - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 45m53s 1,440 956ms 4s627ms 1s912ms create schema if not exists observability;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
2 45m53s 1,440 956ms 4s627ms 1s912ms create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
3 45m53s 1,440 956ms 4s627ms 1s912ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
4 45m53s 1,440 956ms 4s627ms 1s912ms create table if not exists observability.system_metrics ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
5 45m53s 1,440 956ms 4s627ms 1s912ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
6 45m53s 1,440 956ms 4s627ms 1s912ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
7 45m53s 1,440 956ms 4s627ms 1s912ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
8 45m53s 1,440 956ms 4s627ms 1s912ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
9 45m53s 1,440 956ms 4s627ms 1s912ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
10 45m53s 1,440 956ms 4s627ms 1s912ms create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
11 45m53s 1,440 956ms 4s627ms 1s912ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
12 45m53s 1,440 956ms 4s627ms 1s912ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
13 45m53s 1,440 956ms 4s627ms 1s912ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
14 45m53s 1,440 956ms 4s627ms 1s912ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
15 45m53s 1,440 956ms 4s627ms 1s912ms create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
16 45m53s 1,440 956ms 4s627ms 1s912ms create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
17 45m53s 1,440 956ms 4s627ms 1s912ms create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
18 1m47s 28 3s683ms 4s627ms 3s827ms with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Apr 18 16 5 20s194ms 4s38ms 17 6 23s15ms 3s835ms 18 6 22s745ms 3s790ms 19 6 22s375ms 3s729ms 20 5 18s846ms 3s769ms [ User: labanimal - Total duration: 1m47s - Times executed: 28 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 09:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:20:57 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:31:17 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:21:14 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
19 2s344ms 1 2s344ms 2s344ms 2s344ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 18 00 1 2s344ms 2s344ms [ User: postgres - Total duration: 2s344ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s344ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-04-18 23:55:08 Duration: 2s344ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
20 1s885ms 1 1s885ms 1s885ms 1s885ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 18 00 1 1s885ms 1s885ms [ User: postgres - Total duration: 1s885ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s885ms - Times executed: 1 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-18 23:55:12 Duration: 1s885ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,440 45m53s 956ms 4s627ms 1s912ms create schema if not exists observability;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
2 1,440 45m53s 956ms 4s627ms 1s912ms create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
3 1,440 45m53s 956ms 4s627ms 1s912ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
4 1,440 45m53s 956ms 4s627ms 1s912ms create table if not exists observability.system_metrics ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
5 1,440 45m53s 956ms 4s627ms 1s912ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
6 1,440 45m53s 956ms 4s627ms 1s912ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
7 1,440 45m53s 956ms 4s627ms 1s912ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
8 1,440 45m53s 956ms 4s627ms 1s912ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
9 1,440 45m53s 956ms 4s627ms 1s912ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
10 1,440 45m53s 956ms 4s627ms 1s912ms create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
11 1,440 45m53s 956ms 4s627ms 1s912ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
12 1,440 45m53s 956ms 4s627ms 1s912ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
13 1,440 45m53s 956ms 4s627ms 1s912ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
14 1,440 45m53s 956ms 4s627ms 1s912ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
15 1,440 45m53s 956ms 4s627ms 1s912ms create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
16 1,440 45m53s 956ms 4s627ms 1s912ms create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
17 1,440 45m53s 956ms 4s627ms 1s912ms create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
18 28 1m47s 3s683ms 4s627ms 3s827ms with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Apr 18 16 5 20s194ms 4s38ms 17 6 23s15ms 3s835ms 18 6 22s745ms 3s790ms 19 6 22s375ms 3s729ms 20 5 18s846ms 3s769ms [ User: labanimal - Total duration: 1m47s - Times executed: 28 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 09:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:20:57 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:31:17 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:21:14 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
19 1 2s344ms 2s344ms 2s344ms 2s344ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 18 00 1 2s344ms 2s344ms [ User: postgres - Total duration: 2s344ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s344ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-04-18 23:55:08 Duration: 2s344ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
20 1 1s885ms 1s885ms 1s885ms 1s885ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 18 00 1 1s885ms 1s885ms [ User: postgres - Total duration: 1s885ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s885ms - Times executed: 1 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-18 23:55:12 Duration: 1s885ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 3s683ms 4s627ms 3s827ms 28 1m47s with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Apr 18 16 5 20s194ms 4s38ms 17 6 23s15ms 3s835ms 18 6 22s745ms 3s790ms 19 6 22s375ms 3s729ms 20 5 18s846ms 3s769ms [ User: labanimal - Total duration: 1m47s - Times executed: 28 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 09:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 09:20:53+02' AND '2026-04-18 15:20:53+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:20:57 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:31:13+02' AND '2026-04-18 15:31:13+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:31:17 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at <= '2026-04-18 03:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod') AND collected_at BETWEEN '2026-04-18 03:21:10+02' AND '2026-04-18 15:21:10+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-04-18 15:21:14 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
2 2s344ms 2s344ms 2s344ms 1 2s344ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Apr 18 00 1 2s344ms 2s344ms [ User: postgres - Total duration: 2s344ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s344ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-04-18 23:55:08 Duration: 2s344ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
3 956ms 4s627ms 1s912ms 1,440 45m53s create schema if not exists observability;Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
4 956ms 4s627ms 1s912ms 1,440 45m53s create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
5 956ms 4s627ms 1s912ms 1,440 45m53s create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
6 956ms 4s627ms 1s912ms 1,440 45m53s create table if not exists observability.system_metrics ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
7 956ms 4s627ms 1s912ms 1,440 45m53s create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
8 956ms 4s627ms 1s912ms 1,440 45m53s create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
9 956ms 4s627ms 1s912ms 1,440 45m53s create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
10 956ms 4s627ms 1s912ms 1,440 45m53s alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
11 956ms 4s627ms 1s912ms 1,440 45m53s create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
12 956ms 4s627ms 1s912ms 1,440 45m53s create table if not exists observability.uptime_checks ( id bigserial primary key, endpoint text not null, status text not null, latency_ms double precision, checked_at timestamptz not null default now() );Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
13 956ms 4s627ms 1s912ms 1,440 45m53s create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
14 956ms 4s627ms 1s912ms 1,440 45m53s create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
15 956ms 4s627ms 1s912ms 1,440 45m53s create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
16 956ms 4s627ms 1s912ms 1,440 45m53s alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
17 956ms 4s627ms 1s912ms 1,440 45m53s create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
18 956ms 4s627ms 1s912ms 1,440 45m53s create table if not exists observability.db_top_queries ( id bigserial primary key, tenant_key text not null, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz not null default now() );Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
19 956ms 4s627ms 1s912ms 1,440 45m53s create table if not exists observability.phpfpm_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Apr 18 01 60 0ms 0ms 02 60 27s746ms 462ms 03 60 57s405ms 956ms 04 60 57s405ms 956ms 05 60 57s405ms 956ms 06 60 57s405ms 956ms 07 60 57s405ms 956ms 08 60 57s405ms 956ms 09 60 57s405ms 956ms 10 60 57s405ms 956ms 11 60 57s405ms 956ms 12 60 57s405ms 956ms 13 60 57s405ms 956ms 14 60 57s405ms 956ms 15 60 57s405ms 956ms 16 60 2m52s 2s879ms 17 60 3m50s 3s834ms 18 60 3m47s 3s793ms 19 60 3m43s 3s731ms 20 60 3m46s 3s770ms 21 60 3m47s 3s788ms 22 60 3m47s 3s788ms 23 60 3m47s 3s788ms 00 60 3m37s 3s618ms [ User: labanimal - Total duration: 45m53s - Times executed: 1349 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:21:01 Duration: 4s627ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:41:01 Duration: 3s948ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-04-18 15:31:01 Duration: 3s946ms Database: zemm_monitoring User: labanimal Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
20 1s885ms 1s885ms 1s885ms 1 1s885ms copy public."targetgroupMembers" (id, targetgroup, "user", "group") to stdout;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Apr 18 00 1 1s885ms 1s885ms [ User: postgres - Total duration: 1s885ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 1s885ms - Times executed: 1 ]
-
COPY public."targetgroupMembers" (id, targetgroup, "user", "group") TO stdout;
Date: 2026-04-18 23:55:12 Duration: 1s885ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-04-18_000000.csv
Time consuming prepare
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
Time consuming bind
Rank Total duration Times executed Min duration Max duration Avg duration Query NO DATASET
-
Events
Log levels
Key values
- 92,084 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 0 EVENTLOG entries
Events per 5 minutes
NO DATASET
Most Frequent Errors/Events
Key values
- 0 Max number of times the same event was reported
- 0 Total events found
Rank Times reported Error NO DATASET