-
Global information
- Generated on Mon Jun 15 06:05:39 2026
- Log file: /var/log/postgresql/postgresql-2026-05-13_000000.csv, ..., /var/log/postgresql/postgresql-2026-06-15_000000.csv
- Parsed 286,805 log entries in 5m38s
- Log start from 2026-06-05 00:00:01 to 2026-06-05 23:59:03
-
Overview
Global Stats
- 96 Number of unique normalized queries
- 24,696 Number of queries
- 2d3h20m25s Total query duration
- 2026-06-05 00:00:01 First query
- 2026-06-05 23:59:01 Last query
- 18 queries/s at 2026-06-05 13:49:01 Query peak
- 2d3h20m25s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 2d3h20m25s Execute total duration
- 1 Number of events
- 1 Number of unique normalized events
- 1 Max number of times the same event was reported
- 0 Number of cancellation
- 43 Total number of automatic vacuums
- 90 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 26,412 Total number of sessions
- 7 sessions at 2026-06-05 11:00:30 Session peak
- 1h39m50s Total duration of sessions
- 226ms Average duration of sessions
- 0 Average queries per session
- 6s997ms Average queries duration per session
- 0ms Average idle time per session
- 26,412 Total number of connections
- 35 connections/s at 2026-06-05 09:19:01 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 18 queries/s Query Peak
- 2026-06-05 13:49:01 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-06-05 06:25:24 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 18 queries/s Query Peak
- 2026-06-05 13:49:01 Date
Queries duration
Key values
- 2d3h20m25s 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) Jun 05 00 1,020 0ms 0ms 0ms 0ms 0ms 0ms 01 1,021 0ms 1s53ms 509ms 17s904ms 17s904ms 17s904ms 02 1,020 1s53ms 1s53ms 1s53ms 17s904ms 17s904ms 17s904ms 03 1,020 1s53ms 1s53ms 1s53ms 17s904ms 17s904ms 17s904ms 04 1,020 1s53ms 1s53ms 1s53ms 17s904ms 17s904ms 17s904ms 05 1,020 1s53ms 1s53ms 1s53ms 17s904ms 17s904ms 17s904ms 06 1,059 518ms 2s5ms 1s18ms 25s409ms 28s122ms 35s186ms 07 1,041 502ms 2s4ms 761ms 24s456ms 29s403ms 35s702ms 08 1,040 500ms 12s167ms 5s806ms 3m26s 3m28s 3m38s 09 1,038 501ms 12s258ms 9s73ms 3m28s 3m38s 3m40s 10 1,067 520ms 12s280ms 5s454ms 3m28s 3m30s 3m39s 11 1,035 504ms 12s372ms 9s299ms 3m31s 3m40s 3m42s 12 1,028 702ms 12s347ms 10s707ms 3m29s 3m40s 3m42s 13 1,026 12s224ms 12s334ms 12s272ms 3m40s 3m40s 3m41s 14 1,026 12s127ms 12s300ms 12s238ms 3m38s 3m40s 3m41s 15 1,026 12s251ms 12s386ms 12s323ms 3m40s 3m41s 3m42s 16 1,029 699ms 12s366ms 11s310ms 3m30s 3m41s 3m42s 17 1,023 12s148ms 12s295ms 12s258ms 3m29s 3m38s 3m41s 18 1,022 12s211ms 12s272ms 12s259ms 3m28s 3m28s 3m40s 19 1,020 12s272ms 12s272ms 12s272ms 3m28s 3m28s 3m28s 20 1,025 12s197ms 12s272ms 12s236ms 3m28s 3m40s 3m40s 21 1,024 12s174ms 12s300ms 12s258ms 3m29s 3m39s 3m41s 22 1,021 12s170ms 12s195ms 12s173ms 3m27s 3m27s 3m39s 23 1,025 545ms 12s170ms 11s401ms 3m26s 3m26s 3m33s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 05 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 36 0 1s1ms 1s371ms 2s614ms 3s108ms 07 19 0 984ms 502ms 1s618ms 2s590ms 08 13 0 707ms 0ms 606ms 1s922ms 09 10 0 613ms 0ms 0ms 1s576ms 10 35 0 927ms 1s604ms 2s352ms 3s128ms 11 5 0 698ms 0ms 0ms 1s492ms 12 2 0 736ms 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 4 0 734ms 0ms 0ms 1s465ms 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 5 1s302ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 05 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 1s53ms 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 Jun 05 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 3 3.00 0.00% 09 0 8 8.00 0.00% 10 0 6 6.00 0.00% 11 0 8 8.00 0.00% 12 0 6 6.00 0.00% 13 0 6 6.00 0.00% 14 0 6 6.00 0.00% 15 0 6 6.00 0.00% 16 0 5 5.00 0.00% 17 0 3 3.00 0.00% 18 0 2 2.00 0.00% 19 0 0 0.00 0.00% 20 0 5 5.00 0.00% 21 0 4 4.00 0.00% 22 0 1 1.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jun 05 00 543 0.15/s 01 546 0.15/s 02 546 0.15/s 03 546 0.15/s 04 546 0.15/s 05 549 0.15/s 06 1,654 0.46/s 07 1,553 0.43/s 08 2,194 0.61/s 09 2,261 0.63/s 10 2,698 0.75/s 11 2,093 0.58/s 12 1,144 0.32/s 13 1,284 0.36/s 14 1,260 0.35/s 15 1,286 0.36/s 16 1,015 0.28/s 17 705 0.20/s 18 690 0.19/s 19 548 0.15/s 20 847 0.24/s 21 724 0.20/s 22 634 0.18/s 23 546 0.15/s Day Hour Count Average Duration Average idle time Jun 05 00 543 248ms 248ms 01 546 252ms 0ms 02 546 250ms 0ms 03 546 251ms 0ms 04 546 251ms 0ms 05 549 251ms 0ms 06 1,654 207ms 0ms 07 1,553 182ms 0ms 08 2,194 177ms 0ms 09 2,261 194ms 0ms 10 2,698 203ms 0ms 11 2,093 212ms 0ms 12 1,144 263ms 0ms 13 1,284 240ms 0ms 14 1,260 245ms 0ms 15 1,286 243ms 0ms 16 1,015 247ms 0ms 17 705 267ms 0ms 18 690 254ms 0ms 19 548 247ms 0ms 20 847 269ms 0ms 21 724 280ms 0ms 22 634 246ms 0ms 23 546 266ms 0ms -
Connections
Established Connections
Key values
- 35 connections Connection Peak
- 2026-06-05 09:19:01 Date
Connections per database
Key values
- zemm_monitoring Main Database
- 26,412 connections Total
Connections per user
Key values
- labanimal Main User
- 26,412 connections Total
-
Sessions
Simultaneous sessions
Key values
- 7 sessions Session Peak
- 2026-06-05 11:00:30 Date
Histogram of session times
Key values
- 23,871 0-500ms duration
Sessions per database
Key values
- zemm_monitoring Main Database
- 26,412 sessions Total
Sessions per user
Key values
- labanimal Main User
- 26,412 sessions Total
Sessions per host
Key values
- ::1 Main Host
- 26,412 sessions Total
Sessions per application
Key values
- Main Application
- 26,412 sessions Total
Application Count Total Duration Average Duration 22,173 1h29m18s 241ms _desktop__zemm_produktiv_8_localhost_5432 7 333ms 47ms _desktop_index.php__zemm_produktiv_8_localhost_5432 2 117ms 58ms _desktop_index.php_animal_name_12_animal_id_2026_2F001_2F1012_s 1 46ms 46ms _desktop_index.php_cage_name_47-279_breeding_date_2026-06-05_va 1 78ms 78ms _desktop_index.php_command_animals_edit_subcommand_init_id_1026 1 102ms 102ms _desktop_index.php_command_animals_edit_subcommand_init_id_1027 3 273ms 91ms _desktop_index.php_command_animals_edit_subcommand_init_id_1028 1 86ms 86ms _desktop_index.php_command_animals_edit_subcommand_init_id_1029 3 277ms 92ms _desktop_index.php_command_animals_edit_subcommand_init_id_1030 7 677ms 96ms _desktop_index.php_command_animals_litters_create_subcommand_se 1 181ms 181ms _desktop_index.php_command_animals_subcommand_found_val1_1674_v 7 279ms 39ms _desktop_index.php_command_animals_subcommand_init_zemm_produkt 29 1s245ms 42ms _desktop_index.php_command_groups_subcommand_edit_id_149_zemm_p 1 46ms 46ms _desktop_index.php_command_home_subcommand_init_zemm_produktiv_ 1 101ms 101ms _desktop_index.php_command_login_subcommand_init_zemm_dev_local 2 57ms 28ms _desktop_index.php_command_login_subcommand_init_zemm_produktiv 1,607 47s397ms 29ms _desktop_index.php_command_login_subcommand_init_zemm_test_loca 2 62ms 31ms _desktop_index.php_command_reports_subcommand_animals_per_user_ 2 234ms 117ms _desktop_index.php_command_reports_subcommand_task_status_zemm_ 1 112ms 112ms _desktop_index.php_command_tasks_subcommand_edit_id_10142977_ze 1 84ms 84ms _desktop_index.php_command_tasks_subcommand_edit_id_10143305_ze 1 77ms 77ms _desktop_index.php_command_tasks_subcommand_edit_id_10143306_ze 2 161ms 80ms _desktop_index.php_command_tasks_subcommand_edit_id_10143374_ze 1 87ms 87ms _desktop_index.php_command_tasks_subcommand_edit_id_10143375_ze 1 85ms 85ms _desktop_index.php_command_tasks_subcommand_edit_id_10143408_ze 1 85ms 85ms _desktop_index.php_command_tasks_subcommand_init_template_zemm_ 3 130ms 43ms _desktop_index.php_command_tasks_subcommand_init_zemm_produktiv 49 3s868ms 78ms _desktop_index.php_m_action_animals_3Am_delete_row_animals_1030 1 49ms 49ms _desktop_index.php_m_action_animals_edit_3Alink_init_row_animal 3 161ms 53ms _desktop_index.php_m_action_animals_litters_edit_3Am_init_val4_ 2 79ms 39ms _desktop_index.php_name_Abt_C3_B6ten_20alter_20Zuchtpaare_instr 2 93ms 46ms _desktop_index.php_name_B6.Luc.Nfat-DKO.OT-1_species_1_stockno_ 1 76ms 76ms _desktop_index.php_name_VP_20von_20..._20bis_20..._20Ntsr1_2FGC 1 66ms 66ms _desktop_index.php_name_Verpaarungen_20zur_20Zucht_instructions 7 489ms 69ms _desktop_index.php_search_status_2_no_subtasks_true_command_ani 1 43ms 43ms _desktop_index.php_view_animal_name_on_view_animal_id_on_animal 3 831ms 277ms _desktop_index.php_view_animal_name_on_view_animal_id_on_view_b 38 22s316ms 587ms _desktop_index.php_zemm_produktiv_8_localhost_5432 2,387 8m53s 223ms backend:zemm_produktiv_8@localhost 28 1s836ms 65ms bounces:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 64ms 64ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s78ms 1s78ms pg_dump 1 10s460ms 10s460ms taskscron:zemm_produktiv_8@h2940066.stratoserver.net:5432 24 4s830ms 201ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 19,581 buffers Checkpoint Peak
- 2026-06-05 01:35:45 Date
- 269.956 seconds Highest write time
- 0.031 seconds Sync time
Checkpoints Wal files
Key values
- 7 files Wal files usage Peak
- 2026-06-05 01:35:45 Date
Checkpoints distance
Key values
- 210.42 Mo Distance Peak
- 2026-06-05 01:35:45 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jun 05 00 8,614 861.839s 0.11s 862.005s 01 27,746 1,086.06s 0.116s 1,086.239s 02 8,425 843.082s 0.114s 843.248s 03 8,806 881.161s 0.107s 881.319s 04 7,825 783.095s 0.106s 783.257s 05 9,449 945.265s 0.107s 945.426s 06 11,370 1,136.997s 0.245s 1,137.289s 07 10,505 1,051.165s 0.239s 1,051.457s 08 16,545 1,283.704s 0.234s 1,283.989s 09 11,869 1,188.212s 0.237s 1,188.501s 10 16,651 1,466.132s 0.274s 1,466.466s 11 19,308 1,321.397s 0.205s 1,321.657s 12 10,317 1,033.055s 0.166s 1,033.273s 13 9,500 950.695s 0.153s 950.906s 14 9,518 952.281s 0.114s 952.449s 15 11,550 1,155.552s 0.139s 1,155.744s 16 10,072 1,007.709s 0.148s 1,007.91s 17 9,250 925.519s 0.125s 925.698s 18 8,741 874.669s 0.104s 874.827s 19 8,825 883.048s 0.103s 883.207s 20 10,304 1,031.082s 0.104s 1,031.238s 21 9,209 921.993s 0.122s 922.17s 22 8,453 845.725s 0.105s 845.887s 23 9,298 930.549s 0.108s 930.715s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jun 05 00 0 0 1 612 0.001s 0.012s 01 0 0 9 633 0.004s 0.012s 02 0 0 1 601 0.002s 0.012s 03 0 0 2 579 0.002s 0.012s 04 0 0 2 579 0.001s 0.012s 05 0 0 2 581 0.001s 0.012s 06 0 0 2 1,454 0.002s 0.012s 07 0 0 2 1,403 0.002s 0.012s 08 0 0 4 1,373 0.002s 0.012s 09 0 0 2 1,408 0.002s 0.012s 10 0 0 3 1,578 0.002s 0.012s 11 0 0 4 1,210 0.003s 0.012s 12 0 0 2 935 0.004s 0.012s 13 0 0 2 845 0.002s 0.012s 14 0 0 1 602 0.002s 0.012s 15 0 0 2 762 0.004s 0.012s 16 0 0 2 843 0.001s 0.012s 17 0 0 2 649 0.002s 0.012s 18 0 0 2 563 0.002s 0.012s 19 0 0 2 551 0.001s 0.012s 20 0 0 2 554 0.001s 0.012s 21 0 0 2 543 0.010s 0.012s 22 0 0 1 543 0.004s 0.012s 23 0 0 2 572 0.002s 0.012s Day Hour Count Avg time (sec) Jun 05 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 Jun 05 00 2,314.17 kB 2,954.25 kB 01 11,209.42 kB 43,816.00 kB 02 2,362.00 kB 35,892.00 kB 03 2,330.42 kB 11,779.67 kB 04 2,231.67 kB 4,971.42 kB 05 2,588.67 kB 3,987.75 kB 06 3,299.67 kB 4,162.25 kB 07 3,025.00 kB 3,691.92 kB 08 4,536.42 kB 10,123.42 kB 09 3,268.75 kB 8,641.92 kB 10 4,098.67 kB 6,459.75 kB 11 4,867.00 kB 13,941.58 kB 12 2,815.33 kB 7,560.58 kB 13 2,581.33 kB 4,065.50 kB 14 2,558.92 kB 3,295.33 kB 15 2,818.00 kB 3,507.67 kB 16 2,631.58 kB 3,319.17 kB 17 2,526.75 kB 3,267.67 kB 18 2,425.33 kB 3,166.83 kB 19 2,447.17 kB 3,011.42 kB 20 2,799.83 kB 4,592.67 kB 21 2,490.83 kB 3,475.00 kB 22 2,323.17 kB 3,359.58 kB 23 2,559.08 kB 3,027.50 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jun 05 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 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 2.49 sec Highest CPU-cost vacuum
Table observability.metrics_timeseries
Database zemm_monitoring - 2026-06-05 11:13:32 Date
- 0 sec Highest CPU-cost analyze
Table
Database zemm_monitoring - Date
Average Autovacuum Duration
Key values
- 2.49 sec Highest CPU-cost vacuum
Table observability.metrics_timeseries
Database zemm_monitoring - 2026-06-05 11:13:32 Date
Analyzes per table
Key values
- pg_catalog.pg_type (28) Main table analyzed (database zemm_produktiv_8)
- 90 analyzes Total
Table Number of analyzes zemm_produktiv_8.pg_catalog.pg_type 28 zemm_produktiv_8.pg_catalog.pg_attribute 21 zemm_produktiv_8.pg_catalog.pg_class 15 zemm_produktiv_8.pg_catalog.pg_depend 13 zemm_produktiv_8.public.cages_search_mview 2 zemm_monitoring.observability.metrics_timeseries 2 zemm_test.pg_catalog.pg_shdepend 1 zemm_produktiv_8.pg_catalog.pg_shdepend 1 fbi_ci_db.pg_catalog.pg_shdepend 1 zemm_monitoring.observability.phpfpm_counters 1 zemm_produktiv_8.public.tasks 1 zemm_produktiv_8.public.users 1 zemm_produktiv_8.public.tmptasks 1 zemm_monitoring.observability.uptime_checks 1 fbi_unire.pg_catalog.pg_shdepend 1 Total 90 Vacuums per table
Key values
- pg_catalog.pg_type (10) Main table vacuumed on database zemm_produktiv_8
- 43 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples zemm_produktiv_8.pg_catalog.pg_type 10 10 0 0 0 0 0 519 165 147,619 0 0 zemm_produktiv_8.pg_catalog.pg_attribute 7 7 0 0 0 0 0 889 312 205,918 0 0 zemm_produktiv_8.pg_catalog.pg_class 5 5 0 0 0 0 0 470 151 176,921 0 0 zemm_monitoring.pg_toast.pg_toast_181881 5 0 0 0 0 0 0 1,414 482 2,448,694 465 2,788 zemm_produktiv_8.pg_catalog.pg_depend 4 4 0 0 0 0 0 509 131 187,133 0 0 zemm_monitoring.pg_toast.pg_toast_67431 3 1 0 0 0 0 0 12,671 5,102 8,000,719 1,411 8,466 labanimal.pg_catalog.pg_shdepend 2 2 0 0 0 0 0 149 57 115,317 0 0 zemm_produktiv_8.pg_toast.pg_toast_2619 2 2 0 0 0 0 0 361 96 498,854 20 62 zemm_produktiv_8.public.cages_search_mview 1 1 0 0 0 0 0 789 445 1,436,709 65 392 zemm_produktiv_8.public.tasks 1 1 0 0 0 0 0 50,158 18 3,647,264 0 0 zemm_monitoring.observability.metrics_timeseries 1 1 0 0 0 0 0 17,884 8,369 21,208,019 1,536 34,538 zemm_monitoring.pg_toast.pg_toast_2619 1 1 0 0 0 0 0 93 21 127,238 5 19 zemm_produktiv_8.pg_catalog.pg_statistic 1 1 0 0 0 0 0 223 68 235,605 33 84 Total 43 36 0 0 0 0 0 86,129 15,417 38,436,010 3,535 46,349 Vacuum throughput per table
Key values
- observability.metrics_timeseries (2.49) Max CPU elapsed for vacuum on database zemm_monitoring
- observability.metrics_timeseries (4.106 ms) Max I/O read time for vacuum on database zemm_monitoring
- observability.metrics_timeseries (1.204 ms) Max I/O write time for vacuum on database zemm_monitoring
I/O timing (ms) CPU (s) Table read write elapsed zemm_produktiv_8.pg_catalog.pg_type 0 0 0 zemm_produktiv_8.pg_catalog.pg_attribute 0 0 0.07 zemm_produktiv_8.pg_catalog.pg_class 0 0 0 zemm_monitoring.pg_toast.pg_toast_181881 0 0 0.1 zemm_produktiv_8.pg_catalog.pg_depend 0 0 0.04 zemm_monitoring.pg_toast.pg_toast_67431 0.372 0.101 1.31 labanimal.pg_catalog.pg_shdepend 0 0 0 zemm_produktiv_8.pg_toast.pg_toast_2619 0 0 0.02 zemm_produktiv_8.public.cages_search_mview 0 0 0.11 zemm_produktiv_8.public.tasks 0 0 0.63 zemm_monitoring.observability.metrics_timeseries 4.106 1.204 2.49 zemm_monitoring.pg_toast.pg_toast_2619 0.151 0 0 zemm_produktiv_8.pg_catalog.pg_statistic 0.221 0 0.02 Total 4.85 1.305 4.79 Tuples removed per table
Key values
- public.tasks (54863) Main table with removed tuples on database zemm_produktiv_8
- 102462 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain zemm_produktiv_8.public.tasks 1 1 54,863 57,994 0 0 17,134 zemm_monitoring.observability.metrics_timeseries 1 1 25,606 388,243 0 0 8,322 zemm_monitoring.pg_toast.pg_toast_67431 3 1 7,234 1,909,413 0 0 397,083 zemm_produktiv_8.pg_catalog.pg_attribute 7 7 7,028 37,649 0 0 1,288 zemm_produktiv_8.pg_catalog.pg_depend 4 4 3,448 16,788 0 0 220 zemm_produktiv_8.pg_catalog.pg_type 10 10 2,070 8,310 0 0 310 zemm_produktiv_8.pg_catalog.pg_class 5 5 811 4,515 0 0 210 labanimal.pg_catalog.pg_shdepend 2 2 633 9,410 0 0 78 zemm_produktiv_8.pg_catalog.pg_statistic 1 1 259 1,269 0 0 143 zemm_produktiv_8.public.cages_search_mview 1 1 245 13,885 0 0 234 zemm_produktiv_8.pg_toast.pg_toast_2619 2 2 196 586 0 0 212 zemm_monitoring.pg_toast.pg_toast_2619 1 1 69 84 0 0 38 zemm_monitoring.pg_toast.pg_toast_181881 5 0 0 151,022 0 0 27,397 Total 43 36 102,462 2,599,168 0 0 452,669 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_produktiv_8.public.cages_search_mview 1 1 245 0 zemm_produktiv_8.pg_catalog.pg_class 5 5 811 0 zemm_monitoring.pg_toast.pg_toast_181881 5 0 0 0 zemm_produktiv_8.pg_catalog.pg_depend 4 4 3448 0 zemm_produktiv_8.public.tasks 1 1 54863 0 labanimal.pg_catalog.pg_shdepend 2 2 633 0 zemm_monitoring.observability.metrics_timeseries 1 1 25606 0 zemm_produktiv_8.pg_catalog.pg_attribute 7 7 7028 0 zemm_monitoring.pg_toast.pg_toast_67431 3 1 7234 0 zemm_monitoring.pg_toast.pg_toast_2619 1 1 69 0 zemm_produktiv_8.pg_catalog.pg_statistic 1 1 259 0 zemm_produktiv_8.pg_catalog.pg_type 10 10 2070 0 zemm_produktiv_8.pg_toast.pg_toast_2619 2 2 196 0 Total 43 36 102,462 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jun 05 00 0 0 01 2 1 02 0 0 03 0 0 04 0 0 05 1 1 06 8 12 07 4 10 08 3 12 09 5 14 10 7 15 11 4 9 12 1 3 13 2 5 14 0 0 15 1 2 16 3 6 17 0 0 18 0 0 19 0 0 20 1 0 21 1 0 22 0 0 23 0 0 - 2.49 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
- 124 Total read queries
- 24,572 Total write queries
Queries by database
Key values
- zemm_monitoring Main database
- 24,549 Requests
- 2d3h18m3s (zemm_monitoring)
- Main time consuming database
Queries by user
Key values
- monitoring_admin Main user
- 590,190 Requests
User Request type Count Duration labanimal Total 2,040 44m52s copy to 8 22s808ms cte 338 7m28s select 1,670 36m35s update 24 26s65ms monitoring_admin Total 590,190 34d12h6m16s cte 1,883 4h22m3s ddl 587,448 34d7h31m50s delete 1 603ms select 850 12m13s postgres Total 125 2m50s copy to 125 2m50s Duration by user
Key values
- 34d12h6m16s (monitoring_admin) Main time consuming user
User Request type Count Duration labanimal Total 2,040 44m52s copy to 8 22s808ms cte 338 7m28s select 1,670 36m35s update 24 26s65ms monitoring_admin Total 590,190 34d12h6m16s cte 1,883 4h22m3s ddl 587,448 34d7h31m50s delete 1 603ms select 850 12m13s postgres Total 125 2m50s copy to 125 2m50s Queries by host
Key values
- unknown Main host
- 592,206 Requests
- 34d12h50m42s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 24,549 Requests
- 2d3h18m3s (unknown)
- Main time consuming application
Application Request type Count Duration _desktop_index.php_view_animal_name_on_view_animal_id_on_view_b Total 2 1s465ms select 2 1s465ms _desktop_index.php_zemm_produktiv_8_localhost_5432 Total 139 2m12s cte 17 23s853ms select 122 1m49s expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 Total 1 1s53ms update 1 1s53ms pg_dump Total 5 6s514ms copy to 5 6s514ms unknown Total 24,549 2d3h18m3s cte 69 14m4s ddl 24,480 2d3h3m58s Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-06-05 06:52:20 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 94 500-1000ms duration
Slowest individual queries
Rank Duration Query 1 12s386ms 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', 'live') AND collected_at >= '2026-06-03 09:13:52+02' AND collected_at <= '2026-06-05 09:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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-06-05 15:14:04 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
2 12s386ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
3 12s386ms 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-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
4 12s386ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
5 12s386ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
6 12s386ms 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-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
7 12s386ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
8 12s386ms CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
9 12s386ms 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-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
10 12s386ms CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
11 12s386ms 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-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
12 12s386ms 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-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
13 12s386ms 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-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
14 12s386ms 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-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
15 12s386ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
16 12s386ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
17 12s386ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
18 12s386ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);[ Date: 2026-06-05 15:15:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
19 12s386ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-06-05 15:16:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
20 12s386ms 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-06-05 15:16:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
Time consuming queries (N)
Rank Total duration Times executed Min duration Max duration Avg duration Query 1 3h14s 1,440 500ms 12s386ms 7s509ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
2 3h14s 1,440 500ms 12s386ms 7s509ms 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 #2
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
3 3h14s 1,440 500ms 12s386ms 7s509ms 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 #3
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
4 3h14s 1,440 500ms 12s386ms 7s509ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
5 3h14s 1,440 500ms 12s386ms 7s509ms 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 #5
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
6 3h14s 1,440 500ms 12s386ms 7s509ms 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 Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
7 3h14s 1,440 500ms 12s386ms 7s509ms 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 #7
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
8 3h14s 1,440 500ms 12s386ms 7s509ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
9 3h14s 1,440 500ms 12s386ms 7s509ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
10 3h14s 1,440 500ms 12s386ms 7s509ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
11 3h14s 1,440 500ms 12s386ms 7s509ms 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 #11
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
12 3h14s 1,440 500ms 12s386ms 7s509ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
13 3h14s 1,440 500ms 12s386ms 7s509ms create schema if not exists observability;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
14 3h14s 1,440 500ms 12s386ms 7s509ms 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 #14
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
15 3h14s 1,440 500ms 12s386ms 7s509ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
16 3h14s 1,440 500ms 12s386ms 7s509ms 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 #16
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
17 3h14s 1,440 500ms 12s386ms 7s509ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
18 14m4s 69 12s98ms 12s386ms 12s244ms 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 >= ? 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 Jun 05 09 3 36s395ms 12s131ms 10 8 1m37s 12s183ms 11 6 1m13s 12s215ms 12 8 1m38s 12s292ms 13 6 1m13s 12s256ms 14 6 1m13s 12s259ms 15 6 1m13s 12s235ms 16 6 1m13s 12s323ms 17 5 1m1s 12s319ms 18 3 36s580ms 12s193ms 19 2 24s534ms 12s267ms 21 5 1m1s 12s228ms 22 4 48s895ms 12s223ms 23 1 12s170ms 12s170ms [ User: monitoring_admin - Total duration: 14m4s - Times executed: 69 ]
-
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', 'live') AND collected_at >= '2026-06-03 09:13:52+02' AND collected_at <= '2026-06-05 09:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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-06-05 15:14:04 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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', 'live') AND collected_at >= '2026-06-03 09:23:53+02' AND collected_at <= '2026-06-05 09:23: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', 'live') AND collected_at BETWEEN '2026-06-05 09:23:53+02' AND '2026-06-05 15:23: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', 'live') AND collected_at BETWEEN '2026-06-05 09:23:53+02' AND '2026-06-05 15:23: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-06-05 15:24:05 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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', 'live') AND collected_at >= '2026-06-03 05:41:36+02' AND collected_at <= '2026-06-05 05:41:36+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', 'live') AND collected_at BETWEEN '2026-06-05 05:41:36+02' AND '2026-06-05 11:41:36+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', 'live') AND collected_at BETWEEN '2026-06-05 05:41:36+02' AND '2026-06-05 11:41:36+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-06-05 11:41:48 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
19 15s853ms 9 1s707ms 1s836ms 1s761ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and cagess."cageName" like (?) and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 05 07 1 1s776ms 1s776ms 09 3 5s303ms 1s767ms 11 3 5s240ms 1s746ms 12 2 3s533ms 1s766ms [ User: labanimal - Total duration: 15s853ms - Times executed: 9 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 15s853ms - Times executed: 9 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 10100206) THEN TRUE WHEN user_is_tgm (dam.editor, 10100206) THEN TRUE WHEN user_is_tgm (dam.tourist, 10100206) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 10100206) THEN TRUE WHEN user_is_tgm (sire.editor, 10100206) THEN TRUE WHEN user_is_tgm (sire.tourist, 10100206) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('A15.415.1-092') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 08:12:44 Duration: 1s836ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 452) THEN TRUE WHEN user_is_tgm (dam.editor, 452) THEN TRUE WHEN user_is_tgm (dam.tourist, 452) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 452) THEN TRUE WHEN user_is_tgm (sire.editor, 452) THEN TRUE WHEN user_is_tgm (sire.tourist, 452) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('33-171') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 10:32:58 Duration: 1s777ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 183) THEN TRUE WHEN user_is_tgm (dam.editor, 183) THEN TRUE WHEN user_is_tgm (dam.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 183) THEN TRUE WHEN user_is_tgm (sire.editor, 183) THEN TRUE WHEN user_is_tgm (sire.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('55-%') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 06:34:49 Duration: 1s776ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
20 9s19ms 13 599ms 894ms 693ms select p_update_animals (?, cast(? as character varying), null, null, null, null, null, null, null, null, null, ?, null, null, ?, null, true, null, null, null, null, null, null, null);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 05 09 7 4s734ms 676ms 10 3 2s481ms 827ms 11 3 1s803ms 601ms [ User: labanimal - Total duration: 9s19ms - Times executed: 13 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 9s19ms - Times executed: 13 ]
-
SELECT p_update_animals (270, CAST('10267371;10267373;10267374' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111715, NULL, NULL, 9239, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 08:29:42 Duration: 894ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
SELECT p_update_animals (142, CAST('10298830;10302964;10302965' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111718, NULL, NULL, 10240, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 09:51:00 Duration: 890ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
SELECT p_update_animals (457, CAST('10299267;10298503;10300859' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111716, NULL, NULL, 13036, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 09:27:09 Duration: 889ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,440 3h14s 500ms 12s386ms 7s509ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
2 1,440 3h14s 500ms 12s386ms 7s509ms 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 #2
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
3 1,440 3h14s 500ms 12s386ms 7s509ms 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 #3
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
4 1,440 3h14s 500ms 12s386ms 7s509ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
5 1,440 3h14s 500ms 12s386ms 7s509ms 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 #5
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
6 1,440 3h14s 500ms 12s386ms 7s509ms 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 Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
7 1,440 3h14s 500ms 12s386ms 7s509ms 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 #7
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
8 1,440 3h14s 500ms 12s386ms 7s509ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
9 1,440 3h14s 500ms 12s386ms 7s509ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
10 1,440 3h14s 500ms 12s386ms 7s509ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
11 1,440 3h14s 500ms 12s386ms 7s509ms 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 #11
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
12 1,440 3h14s 500ms 12s386ms 7s509ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
13 1,440 3h14s 500ms 12s386ms 7s509ms create schema if not exists observability;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
14 1,440 3h14s 500ms 12s386ms 7s509ms 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 #14
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
15 1,440 3h14s 500ms 12s386ms 7s509ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
16 1,440 3h14s 500ms 12s386ms 7s509ms 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 #16
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
17 1,440 3h14s 500ms 12s386ms 7s509ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
18 69 14m4s 12s98ms 12s386ms 12s244ms 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 >= ? 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 Jun 05 09 3 36s395ms 12s131ms 10 8 1m37s 12s183ms 11 6 1m13s 12s215ms 12 8 1m38s 12s292ms 13 6 1m13s 12s256ms 14 6 1m13s 12s259ms 15 6 1m13s 12s235ms 16 6 1m13s 12s323ms 17 5 1m1s 12s319ms 18 3 36s580ms 12s193ms 19 2 24s534ms 12s267ms 21 5 1m1s 12s228ms 22 4 48s895ms 12s223ms 23 1 12s170ms 12s170ms [ User: monitoring_admin - Total duration: 14m4s - Times executed: 69 ]
-
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', 'live') AND collected_at >= '2026-06-03 09:13:52+02' AND collected_at <= '2026-06-05 09:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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-06-05 15:14:04 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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', 'live') AND collected_at >= '2026-06-03 09:23:53+02' AND collected_at <= '2026-06-05 09:23: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', 'live') AND collected_at BETWEEN '2026-06-05 09:23:53+02' AND '2026-06-05 15:23: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', 'live') AND collected_at BETWEEN '2026-06-05 09:23:53+02' AND '2026-06-05 15:23: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-06-05 15:24:05 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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', 'live') AND collected_at >= '2026-06-03 05:41:36+02' AND collected_at <= '2026-06-05 05:41:36+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', 'live') AND collected_at BETWEEN '2026-06-05 05:41:36+02' AND '2026-06-05 11:41:36+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', 'live') AND collected_at BETWEEN '2026-06-05 05:41:36+02' AND '2026-06-05 11:41:36+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-06-05 11:41:48 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
19 13 9s19ms 599ms 894ms 693ms select p_update_animals (?, cast(? as character varying), null, null, null, null, null, null, null, null, null, ?, null, null, ?, null, true, null, null, null, null, null, null, null);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 05 09 7 4s734ms 676ms 10 3 2s481ms 827ms 11 3 1s803ms 601ms [ User: labanimal - Total duration: 9s19ms - Times executed: 13 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 9s19ms - Times executed: 13 ]
-
SELECT p_update_animals (270, CAST('10267371;10267373;10267374' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111715, NULL, NULL, 9239, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 08:29:42 Duration: 894ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
SELECT p_update_animals (142, CAST('10298830;10302964;10302965' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111718, NULL, NULL, 10240, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 09:51:00 Duration: 890ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
SELECT p_update_animals (457, CAST('10299267;10298503;10300859' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111716, NULL, NULL, 13036, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 09:27:09 Duration: 889ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
20 9 15s853ms 1s707ms 1s836ms 1s761ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and cagess."cageName" like (?) and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 05 07 1 1s776ms 1s776ms 09 3 5s303ms 1s767ms 11 3 5s240ms 1s746ms 12 2 3s533ms 1s766ms [ User: labanimal - Total duration: 15s853ms - Times executed: 9 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 15s853ms - Times executed: 9 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 10100206) THEN TRUE WHEN user_is_tgm (dam.editor, 10100206) THEN TRUE WHEN user_is_tgm (dam.tourist, 10100206) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 10100206) THEN TRUE WHEN user_is_tgm (sire.editor, 10100206) THEN TRUE WHEN user_is_tgm (sire.tourist, 10100206) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('A15.415.1-092') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 08:12:44 Duration: 1s836ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 452) THEN TRUE WHEN user_is_tgm (dam.editor, 452) THEN TRUE WHEN user_is_tgm (dam.tourist, 452) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 452) THEN TRUE WHEN user_is_tgm (sire.editor, 452) THEN TRUE WHEN user_is_tgm (sire.tourist, 452) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('33-171') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 10:32:58 Duration: 1s777ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 183) THEN TRUE WHEN user_is_tgm (dam.editor, 183) THEN TRUE WHEN user_is_tgm (dam.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 183) THEN TRUE WHEN user_is_tgm (sire.editor, 183) THEN TRUE WHEN user_is_tgm (sire.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('55-%') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 06:34:49 Duration: 1s776ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 12s98ms 12s386ms 12s244ms 69 14m4s 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 >= ? 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 Jun 05 09 3 36s395ms 12s131ms 10 8 1m37s 12s183ms 11 6 1m13s 12s215ms 12 8 1m38s 12s292ms 13 6 1m13s 12s256ms 14 6 1m13s 12s259ms 15 6 1m13s 12s235ms 16 6 1m13s 12s323ms 17 5 1m1s 12s319ms 18 3 36s580ms 12s193ms 19 2 24s534ms 12s267ms 21 5 1m1s 12s228ms 22 4 48s895ms 12s223ms 23 1 12s170ms 12s170ms [ User: monitoring_admin - Total duration: 14m4s - Times executed: 69 ]
-
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', 'live') AND collected_at >= '2026-06-03 09:13:52+02' AND collected_at <= '2026-06-05 09:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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', 'live') AND collected_at BETWEEN '2026-06-05 09:13:52+02' AND '2026-06-05 15:13:52+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-06-05 15:14:04 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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', 'live') AND collected_at >= '2026-06-03 09:23:53+02' AND collected_at <= '2026-06-05 09:23: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', 'live') AND collected_at BETWEEN '2026-06-05 09:23:53+02' AND '2026-06-05 15:23: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', 'live') AND collected_at BETWEEN '2026-06-05 09:23:53+02' AND '2026-06-05 15:23: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-06-05 15:24:05 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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', 'live') AND collected_at >= '2026-06-03 05:41:36+02' AND collected_at <= '2026-06-05 05:41:36+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', 'live') AND collected_at BETWEEN '2026-06-05 05:41:36+02' AND '2026-06-05 11:41:36+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', 'live') AND collected_at BETWEEN '2026-06-05 05:41:36+02' AND '2026-06-05 11:41:36+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-06-05 11:41:48 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
2 500ms 12s386ms 7s509ms 1,440 3h14s create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
3 500ms 12s386ms 7s509ms 1,440 3h14s 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 #3
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
4 500ms 12s386ms 7s509ms 1,440 3h14s 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 #4
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
5 500ms 12s386ms 7s509ms 1,440 3h14s create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
6 500ms 12s386ms 7s509ms 1,440 3h14s 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 #6
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
7 500ms 12s386ms 7s509ms 1,440 3h14s 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 #7
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
8 500ms 12s386ms 7s509ms 1,440 3h14s 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 #8
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
9 500ms 12s386ms 7s509ms 1,440 3h14s create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
10 500ms 12s386ms 7s509ms 1,440 3h14s create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
11 500ms 12s386ms 7s509ms 1,440 3h14s alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
12 500ms 12s386ms 7s509ms 1,440 3h14s 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 Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
13 500ms 12s386ms 7s509ms 1,440 3h14s create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
14 500ms 12s386ms 7s509ms 1,440 3h14s create schema if not exists observability;Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
15 500ms 12s386ms 7s509ms 1,440 3h14s 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 Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
16 500ms 12s386ms 7s509ms 1,440 3h14s create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
17 500ms 12s386ms 7s509ms 1,440 3h14s 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 #17
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - 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-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
18 500ms 12s386ms 7s509ms 1,440 3h14s alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 05 01 60 0ms 0ms 02 60 30s542ms 509ms 03 60 1m3s 1s53ms 04 60 1m3s 1s53ms 05 60 1m3s 1s53ms 06 60 1m3s 1s53ms 07 60 1m1s 1s19ms 08 60 45s435ms 757ms 09 60 5m52s 5s868ms 10 60 9m7s 9s132ms 11 60 5m35s 5s593ms 12 60 9m19s 9s332ms 13 60 10m43s 10s718ms 14 60 12m16s 12s272ms 15 60 12m14s 12s238ms 16 60 12m19s 12s323ms 17 60 11m20s 11s346ms 18 60 12m15s 12s258ms 19 60 12m15s 12s259ms 20 60 12m16s 12s272ms 21 60 12m14s 12s236ms 22 60 12m15s 12s258ms 23 60 12m10s 12s173ms 00 60 11m27s 11s450ms [ User: monitoring_admin - Total duration: 3h14s - Times executed: 1349 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 15:24:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 15:34:01 Duration: 12s386ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-05 11:48:01 Duration: 12s372ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
19 1s707ms 1s836ms 1s761ms 9 15s853ms with damdam as ( select breedingid, string_agg(cast(dam as text), ?) as dam from breedingsdams inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as dam on dam.id = breedingsdams.dam and case when user_is_tgm (dam.owner, ?) then true when user_is_tgm (dam.editor, ?) then true when user_is_tgm (dam.tourist, ?) then true else false end group by breedingid ), siresire as ( select breedingid, string_agg(cast(sire as text), ?) as sire from breedingssires inner join ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" from animals) as sire on sire.id = breedingssires.sire and case when user_is_tgm (sire.owner, ?) then true when user_is_tgm (sire.editor, ?) then true when user_is_tgm (sire.tourist, ?) then true else false end group by breedingid ), cagess as ( select id, "cageName" from cages) ( select breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire from damdam, siresire, cagess, breedings where breedings.deleted != true and cagess.id = breedings.cage and cagess."cageName" like (?) and damdam.breedingid = breedings.id and siresire.breedingid = breedings.id and breedings."unbreeding_date" is null group by breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire order by breeding_date, plug_date);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 05 07 1 1s776ms 1s776ms 09 3 5s303ms 1s767ms 11 3 5s240ms 1s746ms 12 2 3s533ms 1s766ms [ User: labanimal - Total duration: 15s853ms - Times executed: 9 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 15s853ms - Times executed: 9 ]
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 10100206) THEN TRUE WHEN user_is_tgm (dam.editor, 10100206) THEN TRUE WHEN user_is_tgm (dam.tourist, 10100206) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 10100206) THEN TRUE WHEN user_is_tgm (sire.editor, 10100206) THEN TRUE WHEN user_is_tgm (sire.tourist, 10100206) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('A15.415.1-092') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 08:12:44 Duration: 1s836ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 452) THEN TRUE WHEN user_is_tgm (dam.editor, 452) THEN TRUE WHEN user_is_tgm (dam.tourist, 452) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 452) THEN TRUE WHEN user_is_tgm (sire.editor, 452) THEN TRUE WHEN user_is_tgm (sire.tourist, 452) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('33-171') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 10:32:58 Duration: 1s777ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
WITH damdam AS ( SELECT breedingid, string_agg(cast(dam as text), ';') AS dam FROM breedingsdams INNER JOIN ( SELECT id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS dam ON dam.id = breedingsdams.dam AND CASE WHEN user_is_tgm (dam.owner, 183) THEN TRUE WHEN user_is_tgm (dam.editor, 183) THEN TRUE WHEN user_is_tgm (dam.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), siresire AS ( SELECT breedingid, string_agg(cast(sire as text), ';') AS sire FROM breedingssires INNER JOIN ( select id, owner, editor, tourist, "animalID", name, "dummy_strain_info", generation, "dummy_line_info", "dummy_backcross_info" FROM animals) AS sire ON sire.id = breedingssires.sire AND CASE WHEN user_is_tgm (sire.owner, 183) THEN TRUE WHEN user_is_tgm (sire.editor, 183) THEN TRUE WHEN user_is_tgm (sire.tourist, 183) THEN TRUE ELSE FALSE END GROUP BY breedingid ), cagess AS ( select id, "cageName" FROM cages) ( SELECT breedings.id, breedings.breeding_date, breedings.unbreeding_date, breedings.plug_date, cagess."cageName" as cage_name, breedings.deleted, damdam.dam, siresire.sire FROM damdam, siresire, cagess, breedings WHERE breedings.deleted != true AND cagess.id = breedings.cage AND cagess."cageName" like ('55-%') AND damdam.breedingid = breedings.id AND siresire.breedingid = breedings.id AND breedings."unbreeding_date" IS NULL GROUP BY breedings.id, cagess."cageName", breeding_date, unbreeding_date, plug_date, damdam.dam, siresire.sire ORDER BY breeding_date, plug_date);
Date: 2026-06-05 06:34:49 Duration: 1s776ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
20 599ms 894ms 693ms 13 9s19ms select p_update_animals (?, cast(? as character varying), null, null, null, null, null, null, null, null, null, ?, null, null, ?, null, true, null, null, null, null, null, null, null);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 05 09 7 4s734ms 676ms 10 3 2s481ms 827ms 11 3 1s803ms 601ms [ User: labanimal - Total duration: 9s19ms - Times executed: 13 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 9s19ms - Times executed: 13 ]
-
SELECT p_update_animals (270, CAST('10267371;10267373;10267374' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111715, NULL, NULL, 9239, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 08:29:42 Duration: 894ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
SELECT p_update_animals (142, CAST('10298830;10302964;10302965' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111718, NULL, NULL, 10240, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 09:51:00 Duration: 890ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv
-
SELECT p_update_animals (457, CAST('10299267;10298503;10300859' AS character varying), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 10111716, NULL, NULL, 13036, NULL, TRUE, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
Date: 2026-06-05 09:27:09 Duration: 889ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-05_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
- 131,054 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
- 1 ERROR entries
- 0 WARNING entries
- 0 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 1 Max number of times the same event was reported
- 1 Total events found
Rank Times reported Error 1 1 ERROR: invalid input syntax for type date: ...
Times Reported Most Frequent Error / Event #1
Day Hour Count Jun 05 10 1 - ERROR: invalid input syntax for type date: ""
Statement: SELECT p_update_animals(10100206, '10306350', '', NULL, '', false,'', '', false, '2026-06-05', '', NULL, 1, '', 9628, '', false,'','',NULL, '','',NULL,0);
Date: 2026-06-05 09:42:34 Database: zemm_produktiv_8 Application: _desktop_index.php_m_action_animals_3Am_delete_row_animals_1030 User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-06-05_000000.csv