-
Global information
- Generated on Mon Jun 15 06:05:02 2026
- Log file: /var/log/postgresql/postgresql-2026-05-13_000000.csv, ..., /var/log/postgresql/postgresql-2026-06-15_000000.csv
- Parsed 294,600 log entries in 5m1s
- Log start from 2026-05-22 00:00:01 to 2026-05-22 23:59:03
-
Overview
Global Stats
- 62 Number of unique normalized queries
- 24,715 Number of queries
- 1d21h14m9s Total query duration
- 2026-05-22 00:00:01 First query
- 2026-05-22 23:59:01 Last query
- 19 queries/s at 2026-05-22 08:39:01 Query peak
- 1d21h14m9s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 1d21h14m9s Execute total duration
- 5 Number of events
- 4 Number of unique normalized events
- 2 Max number of times the same event was reported
- 0 Number of cancellation
- 42 Total number of automatic vacuums
- 87 Total number of automatic analyzes
- 23 Number temporary file
- 119.84 MiB Max size of temporary file
- 119.73 MiB Average size of temporary file
- 27,367 Total number of sessions
- 7 sessions at 2026-05-22 14:28:42 Session peak
- 1h38m16s Total duration of sessions
- 215ms Average duration of sessions
- 0 Average queries per session
- 5s950ms Average queries duration per session
- 0ms Average idle time per session
- 27,367 Total number of connections
- 36 connections/s at 2026-05-22 10:01:01 Connection peak
- 3 Total number of databases
SQL Traffic
Key values
- 19 queries/s Query Peak
- 2026-05-22 08:39:01 Date
SELECT Traffic
Key values
- 2 queries/s Query Peak
- 2026-05-22 08:39:01 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 18 queries/s Query Peak
- 2026-05-22 06:45:01 Date
Queries duration
Key values
- 1d21h14m9s 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) May 22 00 1,038 0ms 1s425ms 1s102ms 24s237ms 24s770ms 25s208ms 01 1,038 928ms 1s410ms 1s175ms 23s971ms 24s711ms 24s900ms 02 1,026 1s360ms 1s442ms 1s386ms 24s515ms 24s884ms 25s171ms 03 1,026 1s386ms 1s442ms 1s416ms 25s207ms 25s638ms 25s941ms 04 1,026 1s376ms 1s462ms 1s405ms 24s861ms 25s262ms 26s244ms 05 1,026 1s374ms 1s456ms 1s402ms 24s819ms 25s179ms 26s173ms 06 1,026 1s373ms 1s493ms 1s410ms 25s386ms 25s386ms 26s760ms 07 986 0ms 7s667ms 1s460ms 25s773ms 27s179ms 2m13s 08 1,067 512ms 9s16ms 1s17ms 24s492ms 25s979ms 27s440ms 09 1,066 503ms 27s700ms 3s465ms 3m38s 7m50s 7m55s 10 1,037 619ms 11s52ms 2s11ms 31s552ms 3m7s 3m9s 11 1,031 628ms 11s235ms 9s534ms 3m10s 3m18s 3m21s 12 1,026 11s30ms 11s252ms 11s148ms 3m18s 3m21s 3m22s 13 1,026 11s15ms 11s216ms 11s110ms 3m18s 3m20s 3m21s 14 1,028 719ms 11s158ms 11s87ms 3m19s 3m20s 3m20s 15 1,027 747ms 11s158ms 9s727ms 3m9s 3m19s 3m20s 16 1,027 1s1ms 11s230ms 10s555ms 3m10s 3m20s 3m22s 17 1,026 11s87ms 11s228ms 11s154ms 3m19s 3m20s 3m22s 18 1,026 11s156ms 11s389ms 11s278ms 3m21s 3m23s 3m24s 19 1,026 11s135ms 11s359ms 11s238ms 3m20s 3m21s 3m24s 20 1,026 11s195ms 11s328ms 11s255ms 3m21s 3m22s 3m23s 21 1,026 11s184ms 11s347ms 11s265ms 3m21s 3m23s 3m24s 22 1,026 11s175ms 11s336ms 11s247ms 3m21s 3m22s 3m23s 23 1,032 552ms 11s426ms 10s546ms 3m20s 3m22s 3m25s Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 22 00 12 0 986ms 953ms 987ms 1s12ms 01 11 0 968ms 0ms 975ms 993ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 0 0 0ms 0ms 0ms 0ms 06 0 0 0ms 0ms 0ms 0ms 07 10 0 1s33ms 0ms 0ms 3s280ms 08 26 0 812ms 571ms 1s888ms 2s948ms 09 23 0 2s341ms 503ms 1s538ms 12s740ms 10 4 0 754ms 0ms 0ms 1s501ms 11 3 0 1s55ms 0ms 0ms 1s38ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 2 0 761ms 0ms 0ms 0ms 15 2 0 771ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 0 0 0ms 0ms 0ms 0ms 20 0 0 0ms 0ms 0ms 0ms 21 0 0 0ms 0ms 0ms 0ms 22 0 0 0ms 0ms 0ms 0ms 23 0 7 1s297ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) May 22 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 1s61ms 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 May 22 00 0 18 18.00 0.00% 01 0 17 17.00 0.00% 02 0 6 6.00 0.00% 03 0 6 6.00 0.00% 04 0 6 6.00 0.00% 05 0 6 6.00 0.00% 06 0 6 6.00 0.00% 07 0 9 9.00 0.00% 08 0 8 8.00 0.00% 09 0 11 11.00 0.00% 10 0 10 10.00 0.00% 11 0 6 6.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 5 5.00 0.00% 16 0 6 6.00 0.00% 17 0 6 6.00 0.00% 18 0 6 6.00 0.00% 19 0 6 6.00 0.00% 20 0 6 6.00 0.00% 21 0 6 6.00 0.00% 22 0 6 6.00 0.00% 23 0 5 5.00 0.00% Day Hour Count Average / Second May 22 00 754 0.21/s 01 759 0.21/s 02 754 0.21/s 03 753 0.21/s 04 754 0.21/s 05 753 0.21/s 06 744 0.21/s 07 1,327 0.37/s 08 2,119 0.59/s 09 2,574 0.71/s 10 1,703 0.47/s 11 1,705 0.47/s 12 1,197 0.33/s 13 1,208 0.34/s 14 1,185 0.33/s 15 1,389 0.39/s 16 999 0.28/s 17 1,063 0.30/s 18 1,174 0.33/s 19 897 0.25/s 20 877 0.24/s 21 900 0.25/s 22 909 0.25/s 23 870 0.24/s Day Hour Count Average Duration Average idle time May 22 00 754 221ms 0ms 01 759 219ms 0ms 02 754 207ms 0ms 03 753 207ms 0ms 04 754 206ms 0ms 05 753 206ms 0ms 06 744 207ms 0ms 07 1,327 182ms 0ms 08 2,119 210ms 0ms 09 2,574 218ms 0ms 10 1,703 172ms 0ms 11 1,705 202ms 0ms 12 1,197 218ms 0ms 13 1,208 211ms 0ms 14 1,185 215ms 0ms 15 1,389 186ms 0ms 16 999 236ms 0ms 17 1,063 230ms 0ms 18 1,174 213ms 0ms 19 897 253ms 0ms 20 877 255ms 0ms 21 900 251ms 0ms 22 909 248ms 0ms 23 870 260ms 0ms -
Connections
Established Connections
Key values
- 36 connections Connection Peak
- 2026-05-22 10:01:01 Date
Connections per database
Key values
- zemm_monitoring Main Database
- 27,367 connections Total
Connections per user
Key values
- labanimal Main User
- 27,367 connections Total
-
Sessions
Simultaneous sessions
Key values
- 7 sessions Session Peak
- 2026-05-22 14:28:42 Date
Histogram of session times
Key values
- 24,773 0-500ms duration
Sessions per database
Key values
- zemm_monitoring Main Database
- 27,367 sessions Total
Sessions per user
Key values
- labanimal Main User
- 27,367 sessions Total
Sessions per host
Key values
- ::1 Main Host
- 27,367 sessions Total
Sessions per application
Key values
- Main Application
- 27,367 sessions Total
Application Count Total Duration Average Duration 24,122 1h29m 221ms _backend_cage_autocomplete_api.php_q_2025_limit_12_zemm_dev_loc 1 23ms 23ms _backend_cage_autocomplete_api.php_q_Kadavertruhe_limit_12_zemm 1 36ms 36ms _backend_wean_api.php_litter_id_10130227_zemm_dev_localhost_543 5 629ms 125ms _backend_wean_api.php_litter_id_10130236_zemm_dev_localhost_543 5 676ms 135ms _backend_wean_api.php_litter_id_10130257_zemm_dev_localhost_543 6 769ms 128ms _desktop__zemm_dev_localhost_5432 1 59ms 59ms _desktop__zemm_produktiv_8_localhost_5432 11 838ms 76ms _desktop_index.php_animal_name_69_20Z_animal_id_2025_2F001_2F60 1 69ms 69ms _desktop_index.php_animal_name_69_animal_id_2026_2F000_2F6101_s 1 44ms 44ms _desktop_index.php_cage_name_46-372_current_only_true_val4_anim 1 76ms 76ms _desktop_index.php_cages_name_51-_2A_cages_empty_false_val4_cag 5 563ms 112ms _desktop_index.php_cages_name_51_2A_cages_empty_false_val4_cage 5 527ms 105ms _desktop_index.php_command_animals_breedings_subcommand_add_bre 2 75ms 37ms _desktop_index.php_command_animals_breedings_subcommand_edit_id 1 768ms 768ms _desktop_index.php_command_animals_breedings_subcommand_select_ 1 52ms 52ms _desktop_index.php_command_animals_create_subcommand_init_zemm_ 1 52ms 52ms _desktop_index.php_command_animals_edit_subcommand_init_id_1028 3 260ms 86ms _desktop_index.php_command_animals_edit_subcommand_init_id_1030 2 190ms 95ms _desktop_index.php_command_animals_edit_subcommand_link_init_va 1 120ms 120ms _desktop_index.php_command_animals_edit_subcommand_m_init_scree 1 116ms 116ms _desktop_index.php_command_animals_litters_create_subcommand_se 1 184ms 184ms _desktop_index.php_command_animals_litters_edit_subcommand_init 1 112ms 112ms _desktop_index.php_command_animals_litters_edit_subcommand_m_in 1 336ms 336ms _desktop_index.php_command_animals_litters_subcommand_select_ze 1 44ms 44ms _desktop_index.php_command_animals_subcommand_found_val1_1541_v 2 89ms 44ms _desktop_index.php_command_animals_subcommand_init_zemm_produkt 30 1s307ms 43ms _desktop_index.php_command_animals_subcommand_select_zemm_dev_l 1 71ms 71ms _desktop_index.php_command_cages_edit_subcommand_init_id_13411_ 1 69ms 69ms _desktop_index.php_command_cages_edit_subcommand_init_id_13423_ 1 73ms 73ms _desktop_index.php_command_cages_edit_subcommand_init_id_13424_ 1 70ms 70ms _desktop_index.php_command_cages_edit_subcommand_init_id_16001_ 1 50ms 50ms _desktop_index.php_command_cages_edit_subcommand_init_id_16007_ 3 206ms 68ms _desktop_index.php_command_login_subcommand_init_zemm_dev_local 8 258ms 32ms _desktop_index.php_command_login_subcommand_init_zemm_produktiv 1,129 32s605ms 28ms _desktop_index.php_command_login_subcommand_init_zemm_test_loca 4 157ms 39ms _desktop_index.php_command_reports_subcommand_animals_per_user_ 1 116ms 116ms _desktop_index.php_command_reports_subcommand_fates_zemm_dev_lo 1 125ms 125ms _desktop_index.php_command_reports_subcommand_init_zemm_dev_loc 2 1s749ms 874ms _desktop_index.php_command_reports_subcommand_task_status_zemm_ 2 230ms 115ms _desktop_index.php_command_tasks_subcommand_edit_id_10134267_ze 1 103ms 103ms _desktop_index.php_command_tasks_subcommand_edit_id_10143059_ze 1 79ms 79ms _desktop_index.php_command_tasks_subcommand_edit_id_10143130_ze 1 82ms 82ms _desktop_index.php_command_tasks_subcommand_edit_id_10143150_ze 1 80ms 80ms _desktop_index.php_command_tasks_subcommand_init_search_zemm_de 1 43ms 43ms _desktop_index.php_command_tasks_subcommand_init_zemm_produktiv 16 1s160ms 72ms _desktop_index.php_command_tasks_subcommand_open_legacy_1_id_10 2 162ms 81ms _desktop_index.php_current_only_true_val4_animals_breedings_sea 5 398ms 79ms _desktop_index.php_m_action_animals_3Am_delete_val4_animals_lis 1 71ms 71ms _desktop_index.php_m_action_animals_edit_3Alink_init_row_animal 1 269ms 269ms _desktop_index.php_m_action_cages_3Am_delete_command_tasks_subc 1 53ms 53ms _desktop_index.php_name_Tiertransport_20durch_20das_20ZEMM_20-_ 1 64ms 64ms _desktop_index.php_name_Tiertransport_20innerhalb_20W_C3_BCrzbu 2 145ms 72ms _desktop_index.php_name_Verpaarungen_20zur_20Zucht_instructions 3 154ms 51ms _desktop_index.php_search_status__25_deadline_from_2026-05-01_n 6 833ms 138ms _desktop_index.php_view_animal_name_on_view_animal_id_on_animal 2 464ms 232ms _desktop_index.php_view_animal_name_on_view_animal_id_on_breedi 1 634ms 634ms _desktop_index.php_view_animal_name_on_view_animal_id_on_view_b 21 12s45ms 573ms _desktop_index.php_view_animal_name_on_view_animal_id_on_view_s 10 8s506ms 850ms _desktop_index.php_zemm_dev_localhost_5432 16 13s802ms 862ms _desktop_index.php_zemm_produktiv_8_localhost_5432 1,857 7m32s 243ms backend:zemm_produktiv_8@localhost 14 1s10ms 72ms bounces:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 61ms 61ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s85ms 1s85ms pg_dump 1 13s838ms 13s838ms psql 8 58ms 7ms taskscron:zemm_produktiv_8@h2940066.stratoserver.net:5432 24 4s103ms 170ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 38,968 buffers Checkpoint Peak
- 2026-05-22 16:56:37 Date
- 269.315 seconds Highest write time
- 0.030 seconds Sync time
Checkpoints Wal files
Key values
- 64 files Wal files usage Peak
- 2026-05-22 16:56:37 Date
Checkpoints distance
Key values
- 2,053.11 Mo Distance Peak
- 2026-05-22 16:56:37 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time May 22 00 8,080 808.625s 0.096s 808.776s 01 26,844 1,011.321s 0.1s 1,011.483s 02 7,621 762.708s 0.102s 762.865s 03 8,928 894.095s 0.099s 894.249s 04 8,423 843.208s 0.097s 843.361s 05 8,699 870.432s 0.098s 870.588s 06 7,087 709.751s 0.085s 709.897s 07 8,931 884.035s 0.139s 884.246s 08 10,853 1,085.622s 0.235s 1,085.909s 09 12,602 1,260.861s 0.263s 1,261.182s 10 8,950 895.355s 0.19s 895.61s 11 9,780 978.707s 0.194s 978.963s 12 8,836 884.302s 0.126s 884.48s 13 8,858 886.06s 0.157s 886.27s 14 9,271 928.314s 0.177s 928.546s 15 8,971 897.822s 0.17s 898.046s 16 46,562 1,029.379s 0.127s 1,029.607s 17 10,959 1,096.715s 0.104s 1,096.878s 18 12,328 1,233.067s 0.119s 1,233.251s 19 11,492 1,149.429s 0.092s 1,149.577s 20 10,954 1,096.04s 0.094s 1,096.19s 21 10,961 1,096.429s 0.098s 1,096.583s 22 11,900 1,190.494s 0.098s 1,190.648s 23 10,033 1,004.203s 0.09s 1,004.349s Day Hour Added Removed Recycled Synced files Longest sync Average sync May 22 00 0 0 1 506 0.001s 0.012s 01 0 0 8 535 0.001s 0.012s 02 0 0 2 514 0.002s 0.012s 03 0 0 1 532 0.002s 0.012s 04 0 0 2 524 0.001s 0.012s 05 0 0 2 518 0.002s 0.012s 06 0 0 1 471 0.001s 0.011s 07 0 0 2 737 0.002s 0.015s 08 0 0 2 1,381 0.002s 0.012s 09 0 0 4 1,581 0.002s 0.012s 10 0 0 1 1,090 0.002s 0.012s 11 0 0 3 1,103 0.004s 0.012s 12 0 0 1 690 0.002s 0.012s 13 0 0 2 888 0.002s 0.012s 14 0 0 2 1,016 0.002s 0.012s 15 0 0 2 954 0.002s 0.012s 16 0 0 65 618 0.010s 0.012s 17 0 0 2 556 0.002s 0.012s 18 0 1 2 663 0.001s 0.012s 19 0 0 2 483 0.003s 0.012s 20 0 0 2 491 0.002s 0.012s 21 0 0 2 492 0.003s 0.012s 22 0 0 2 496 0.002s 0.012s 23 0 0 2 454 0.002s 0.011s Day Hour Count Avg time (sec) May 22 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 May 22 00 2,235.42 kB 2,980.67 kB 01 10,620.25 kB 41,693.58 kB 02 2,172.17 kB 34,140.42 kB 03 2,423.08 kB 11,356.58 kB 04 2,324.17 kB 4,894.17 kB 05 2,359.75 kB 3,633.67 kB 06 2,224.55 kB 3,114.73 kB 07 2,207.64 kB 2,979.57 kB 08 3,205.83 kB 4,448.17 kB 09 4,237.75 kB 6,548.83 kB 10 2,563.08 kB 5,646.00 kB 11 2,819.08 kB 3,929.25 kB 12 2,376.25 kB 3,286.58 kB 13 2,422.00 kB 3,116.33 kB 14 2,568.75 kB 3,056.67 kB 15 2,484.75 kB 3,132.08 kB 16 89,657.75 kB 169,046.08 kB 17 2,757.75 kB 510,575.08 kB 18 3,109.92 kB 146,261.92 kB 19 2,846.67 kB 43,422.42 kB 20 2,753.92 kB 14,295.75 kB 21 2,732.33 kB 6,051.58 kB 22 3,012.67 kB 3,893.58 kB 23 2,902.09 kB 3,352.18 kB -
Temporary Files
Size of temporary files
Key values
- 119.84 MiB Temp Files size Peak
- 2026-05-22 01:54:41 Date
Number of temporary files
Key values
- 1 per second Temp Files Peak
- 2026-05-22 01:14:38 Date
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size May 22 00 12 1.40 GiB 119.68 MiB 01 11 1.29 GiB 119.79 MiB 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
- 43.03 sec Highest CPU-cost vacuum
Table observability.db_top_queries
Database zemm_monitoring - 2026-05-22 16:48:55 Date
- 0 sec Highest CPU-cost analyze
Table
Database zemm_monitoring - Date
Average Autovacuum Duration
Key values
- 43.03 sec Highest CPU-cost vacuum
Table observability.db_top_queries
Database zemm_monitoring - 2026-05-22 16:48:55 Date
Analyzes per table
Key values
- pg_catalog.pg_type (27) Main table analyzed (database zemm_produktiv_8)
- 87 analyzes Total
Table Number of analyzes zemm_produktiv_8.pg_catalog.pg_type 27 zemm_produktiv_8.pg_catalog.pg_attribute 19 zemm_produktiv_8.pg_catalog.pg_class 14 zemm_produktiv_8.pg_catalog.pg_depend 12 zemm_monitoring.observability.metrics_timeseries 2 zemm_produktiv_8.public.cages_search_mview 2 zemm_produktiv_8.public.tmptasks 1 template1.pg_catalog.pg_shdepend 1 zemm_produktiv_8.public.cost_history 1 fbi_unibi.pg_catalog.pg_shdepend 1 fbi_ci_db.pg_catalog.pg_shdepend 1 zemm_produktiv_8.pg_catalog.pg_shdepend 1 zemm_dev.public.login_tracker 1 zemm_dev.pg_catalog.pg_shdepend 1 zemm_produktiv_8.public.users 1 zemm_monitoring.observability.phpfpm_counters 1 zemm_produktiv_8.public.tasks 1 Total 87 Vacuums per table
Key values
- pg_catalog.pg_type (10) Main table vacuumed on database zemm_produktiv_8
- 42 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 500 110 119,356 0 0 zemm_produktiv_8.pg_catalog.pg_attribute 7 7 0 0 0 0 0 848 278 198,075 0 0 zemm_produktiv_8.pg_catalog.pg_class 5 5 0 0 0 0 0 459 147 168,869 0 0 zemm_monitoring.pg_toast.pg_toast_181881 4 0 0 0 0 0 0 1,086 372 1,856,856 356 2,001 zemm_produktiv_8.pg_catalog.pg_depend 4 4 0 0 0 0 0 441 143 175,514 0 0 invdb.pg_catalog.pg_shdepend 3 3 0 0 0 0 0 220 84 170,642 0 0 zemm_monitoring.pg_toast.pg_toast_67431 3 0 0 0 0 0 0 3,468 1,161 2,643,308 1,149 6,894 zemm_produktiv_8.pg_toast.pg_toast_2619 2 2 0 0 0 0 0 366 75 395,813 17 42 zemm_monitoring.observability.db_top_queries 1 0 0 0 0 0 0 374,006 149,831 547,356,477 112,077 1,175,470 zemm_monitoring.pg_toast.pg_toast_2619 1 1 0 0 0 0 0 111 35 205,138 11 41 zemm_produktiv_8.public.cages_search_mview 1 1 0 0 0 0 0 772 422 1,387,794 55 411 zemm_produktiv_8.public.tasks 1 1 0 0 0 0 0 49,077 49 3,670,169 3 4 Total 42 34 0 0 0 0 0 431,354 152,707 558,348,011 113,668 1,184,863 Vacuum throughput per table
Key values
- observability.db_top_queries (43.03) Max CPU elapsed for vacuum on database zemm_monitoring
- observability.db_top_queries (72.134 ms) Max I/O read time for vacuum on database zemm_monitoring
- observability.db_top_queries (854.624 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.924 0 0 zemm_produktiv_8.pg_catalog.pg_attribute 2.633 0 0.06 zemm_produktiv_8.pg_catalog.pg_class 2.265 0 0.01 zemm_monitoring.pg_toast.pg_toast_181881 1.508 0 0.08 zemm_produktiv_8.pg_catalog.pg_depend 1.596 0 0.03 invdb.pg_catalog.pg_shdepend 1.697 0 0.01 zemm_monitoring.pg_toast.pg_toast_67431 4.954 0 0.28 zemm_produktiv_8.pg_toast.pg_toast_2619 0.298 0 0.02 zemm_monitoring.observability.db_top_queries 72.134 854.624 43.03 zemm_monitoring.pg_toast.pg_toast_2619 0.174 0 0 zemm_produktiv_8.public.cages_search_mview 0.891 0.044 0.12 zemm_produktiv_8.public.tasks 0.098 0 0.63 Total 89.172 854.668 44.27 Tuples removed per table
Key values
- public.tasks (54592) Main table with removed tuples on database zemm_produktiv_8
- 67597 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain zemm_produktiv_8.public.tasks 1 1 54,592 57,726 0 0 17,018 zemm_produktiv_8.pg_catalog.pg_attribute 7 7 6,489 38,282 0 0 1,288 zemm_produktiv_8.pg_catalog.pg_depend 4 4 2,753 16,788 0 0 220 zemm_produktiv_8.pg_catalog.pg_type 10 10 1,845 8,310 0 0 310 zemm_produktiv_8.pg_catalog.pg_class 5 5 721 4,515 0 0 210 invdb.pg_catalog.pg_shdepend 3 3 591 14,115 0 0 114 zemm_produktiv_8.public.cages_search_mview 1 1 303 13,885 0 0 234 zemm_produktiv_8.pg_toast.pg_toast_2619 2 2 239 586 0 0 212 zemm_monitoring.pg_toast.pg_toast_2619 1 1 64 86 0 0 38 zemm_monitoring.pg_toast.pg_toast_181881 4 0 0 11,017 0 0 1,879 zemm_monitoring.observability.db_top_queries 1 0 0 18,193,067 0 0 1,924,847 zemm_monitoring.pg_toast.pg_toast_67431 3 0 0 2,087,277 0 0 354,220 Total 42 34 67,597 20,445,654 0 0 2,300,590 Pages removed per table
Key values
- unknown (0) Main table with removed pages on database unknown
- 0 pages Total removed
Pages removed per tables
NO DATASET
Table Number of vacuums Index scans Tuples removed Pages removed zemm_monitoring.pg_toast.pg_toast_181881 4 0 0 0 zemm_monitoring.observability.db_top_queries 1 0 0 0 zemm_monitoring.pg_toast.pg_toast_2619 1 1 64 0 invdb.pg_catalog.pg_shdepend 3 3 591 0 zemm_produktiv_8.pg_toast.pg_toast_2619 2 2 239 0 zemm_produktiv_8.pg_catalog.pg_class 5 5 721 0 zemm_produktiv_8.public.cages_search_mview 1 1 303 0 zemm_produktiv_8.public.tasks 1 1 54592 0 zemm_produktiv_8.pg_catalog.pg_depend 4 4 2753 0 zemm_produktiv_8.pg_catalog.pg_attribute 7 7 6489 0 zemm_monitoring.pg_toast.pg_toast_67431 3 0 0 0 zemm_produktiv_8.pg_catalog.pg_type 10 10 1845 0 Total 42 34 67,597 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs May 22 00 0 0 01 2 1 02 1 0 03 1 1 04 0 0 05 1 0 06 1 0 07 1 7 08 4 12 09 13 30 10 3 4 11 1 4 12 1 2 13 4 6 14 0 5 15 3 11 16 4 2 17 0 0 18 1 1 19 0 0 20 1 0 21 0 1 22 0 0 23 0 0 - 43.03 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- ShareLock Main Lock Type
- 1 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query 1 1 1s 1s 1s 1s create index if not exists idx_db_top_queries_tenant on observability.db_top_queries (tenant_key, collected_at desc);-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:14:01 Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:50:01 Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 23:19:01 Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
Queries that waited the most
Rank Wait time Query 1 1s CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-05-22 16:48:02 - Database: zemm_monitoring - User: monitoring_admin ]
-
Queries
Queries by type
Key values
- 93 Total read queries
- 24,621 Total write queries
Queries by database
Key values
- zemm_monitoring Main database
- 24,609 Requests
- 1d21h11m46s (zemm_monitoring)
- Main time consuming database
Queries by user
Key values
- monitoring_admin Main user
- 246,165 Requests
User Request type Count Duration labanimal Total 1,034 26m34s copy to 8 22s808ms cte 172 4m5s select 844 21m54s update 10 11s28ms monitoring_admin Total 246,165 6d12h25m48s cte 551 1h5m19s ddl 244,762 6d11h8m14s select 847 12m10s postgres Total 53 1m15s copy to 53 1m15s Duration by user
Key values
- 6d12h25m48s (monitoring_admin) Main time consuming user
User Request type Count Duration labanimal Total 1,034 26m34s copy to 8 22s808ms cte 172 4m5s select 844 21m54s update 10 11s28ms monitoring_admin Total 246,165 6d12h25m48s cte 551 1h5m19s ddl 244,762 6d11h8m14s select 847 12m10s postgres Total 53 1m15s copy to 53 1m15s Queries by host
Key values
- unknown Main host
- 247,189 Requests
- 6d12h52m11s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 24,609 Requests
- 1d21h11m46s (unknown)
- Main time consuming application
Application Request type Count Duration _desktop_index.php_command_animals_breedings_subcommand_edit_id Total 1 512ms select 1 512ms _desktop_index.php_command_reports_subcommand_init_zemm_dev_loc Total 2 1s634ms select 2 1s634ms _desktop_index.php_view_animal_name_on_view_animal_id_on_view_b Total 6 4s522ms select 6 4s522ms _desktop_index.php_zemm_dev_localhost_5432 Total 2 9s588ms cte 1 9s16ms select 1 571ms _desktop_index.php_zemm_produktiv_8_localhost_5432 Total 87 1m56s cte 30 32s834ms select 57 1m24s expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 Total 1 1s61ms update 1 1s61ms pg_dump Total 7 9s84ms copy to 7 9s84ms unknown Total 24,609 1d21h11m46s cte 153 16m17s ddl 24,429 1d20h55m2s select 26 25s776ms Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-05-22 10:54:03 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 110 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 27s700ms SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 142) AS is_owner, user_is_tgm (animals_search_mview.editor, 142) AS is_editor, user_is_tgm (animals_search_mview.tourist, 142) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE (is_owner OR is_editor OR is_tourist);[ Date: 2026-05-22 09:10:49 - Database: zemm_produktiv_8 - User: labanimal - Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Bind query: yes ]
2 27s700ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
3 27s700ms 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-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
4 27s700ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
5 27s700ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
6 27s700ms 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-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
7 27s700ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
8 27s700ms CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
9 27s700ms 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-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
10 27s700ms CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
11 27s700ms 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-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
12 27s700ms 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-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
13 27s700ms 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-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
14 27s700ms 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-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
15 27s700ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
16 27s700ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
17 27s700ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
18 27s700ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);[ Date: 2026-05-22 09:11:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
19 27s700ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-05-22 09:12:01 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
20 27s700ms 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-05-22 09:12: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 2h38m36s 1,437 503ms 27s700ms 6s622ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
2 2h38m36s 1,437 503ms 27s700ms 6s622ms 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 #2
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
3 2h38m36s 1,437 503ms 27s700ms 6s622ms 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 #3
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
4 2h38m36s 1,437 503ms 27s700ms 6s622ms create schema if not exists observability;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
5 2h38m36s 1,437 503ms 27s700ms 6s622ms 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 #5
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
6 2h38m36s 1,437 503ms 27s700ms 6s622ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
7 2h38m36s 1,437 503ms 27s700ms 6s622ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
8 2h38m36s 1,437 503ms 27s700ms 6s622ms 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 #8
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
9 2h38m36s 1,437 503ms 27s700ms 6s622ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
10 2h38m26s 1,437 503ms 27s700ms 6s615ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
11 2h38m26s 1,437 503ms 27s700ms 6s615ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
12 2h38m26s 1,437 503ms 27s700ms 6s615ms 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 #12
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
13 2h38m26s 1,437 503ms 27s700ms 6s615ms 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 #13
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
14 2h38m26s 1,437 503ms 27s700ms 6s615ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
15 2h38m26s 1,437 503ms 27s700ms 6s615ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
16 2h38m26s 1,437 503ms 27s700ms 6s615ms 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 May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
17 2h38m26s 1,437 503ms 27s700ms 6s615ms 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 #17
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
18 16m17s 153 1s347ms 11s426ms 6s385ms 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 May 22 01 6 8s340ms 1s390ms 02 6 8s323ms 1s387ms 03 6 8s354ms 1s392ms 04 6 8s472ms 1s412ms 05 6 8s431ms 1s405ms 06 6 8s416ms 1s402ms 07 6 8s489ms 1s414ms 08 6 14s882ms 2s480ms 09 8 11s129ms 1s391ms 10 11 16s788ms 1s526ms 11 10 24s943ms 2s494ms 12 6 1m6s 11s105ms 13 6 1m6s 11s143ms 14 6 1m6s 11s109ms 15 6 1m6s 11s113ms 16 5 55s556ms 11s111ms 17 6 1m6s 11s152ms 18 6 1m6s 11s158ms 19 6 1m7s 11s276ms 20 6 1m7s 11s252ms 21 6 1m7s 11s248ms 22 6 1m7s 11s264ms 23 6 1m7s 11s235ms 00 5 56s515ms 11s303ms [ User: monitoring_admin - Total duration: 16m17s - Times executed: 153 ]
-
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-05-20 22:09:28+02' AND collected_at <= '2026-05-22 22:09:28+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-05-22 22:09:28+02' AND '2026-05-22 23:09:28+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-05-22 22:09:28+02' AND '2026-05-22 23:09:28+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-05-22 23:09:39 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-20 17:42:59+02' AND collected_at <= '2026-05-22 17:42:59+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-05-22 17:42:59+02' AND '2026-05-22 18:42:59+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-05-22 17:42:59+02' AND '2026-05-22 18:42:59+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-05-22 18:43:10 Duration: 11s389ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-20 18:44:25+02' AND collected_at <= '2026-05-22 18:44:25+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-05-22 18:44:25+02' AND '2026-05-22 19:44:25+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-05-22 18:44:25+02' AND '2026-05-22 19:44:25+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-05-22 19:44:37 Duration: 11s359ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
19 27s700ms 1 27s700ms 27s700ms 27s700ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 22 10 1 27s700ms 27s700ms [ User: labanimal - Total duration: 27s700ms - Times executed: 1 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 27s700ms - Times executed: 1 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 142) AS is_owner, user_is_tgm (animals_search_mview.editor, 142) AS is_editor, user_is_tgm (animals_search_mview.tourist, 142) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE (is_owner OR is_editor OR is_tourist);
Date: 2026-05-22 09:10:49 Duration: 27s700ms 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-05-22_074204.csv
20 23s103ms 24 608ms 1s27ms 962ms select distinct on (coalesce(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at from observability.uptime_checks order by coalesce(check_key, endpoint), checked_at desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 22 01 12 11s838ms 986ms 02 11 10s656ms 968ms 08 1 608ms 608ms [ User: monitoring_admin - Total duration: 23s103ms - Times executed: 24 ]
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 01:24:39 Duration: 1s27ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 00:54:37 Duration: 1s27ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 00:34:36 Duration: 1s12ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,437 2h38m36s 503ms 27s700ms 6s622ms create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
2 1,437 2h38m36s 503ms 27s700ms 6s622ms 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 #2
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
3 1,437 2h38m36s 503ms 27s700ms 6s622ms 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 #3
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
4 1,437 2h38m36s 503ms 27s700ms 6s622ms create schema if not exists observability;Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
5 1,437 2h38m36s 503ms 27s700ms 6s622ms 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 #5
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
6 1,437 2h38m36s 503ms 27s700ms 6s622ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
7 1,437 2h38m36s 503ms 27s700ms 6s622ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
8 1,437 2h38m36s 503ms 27s700ms 6s622ms 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 #8
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
9 1,437 2h38m36s 503ms 27s700ms 6s622ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
10 1,437 2h38m26s 503ms 27s700ms 6s615ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
11 1,437 2h38m26s 503ms 27s700ms 6s615ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
12 1,437 2h38m26s 503ms 27s700ms 6s615ms 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 #12
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
13 1,437 2h38m26s 503ms 27s700ms 6s615ms 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 #13
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
14 1,437 2h38m26s 503ms 27s700ms 6s615ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
15 1,437 2h38m26s 503ms 27s700ms 6s615ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #15
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
16 1,437 2h38m26s 503ms 27s700ms 6s615ms 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 May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
17 1,437 2h38m26s 503ms 27s700ms 6s615ms 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 #17
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
18 153 16m17s 1s347ms 11s426ms 6s385ms 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 May 22 01 6 8s340ms 1s390ms 02 6 8s323ms 1s387ms 03 6 8s354ms 1s392ms 04 6 8s472ms 1s412ms 05 6 8s431ms 1s405ms 06 6 8s416ms 1s402ms 07 6 8s489ms 1s414ms 08 6 14s882ms 2s480ms 09 8 11s129ms 1s391ms 10 11 16s788ms 1s526ms 11 10 24s943ms 2s494ms 12 6 1m6s 11s105ms 13 6 1m6s 11s143ms 14 6 1m6s 11s109ms 15 6 1m6s 11s113ms 16 5 55s556ms 11s111ms 17 6 1m6s 11s152ms 18 6 1m6s 11s158ms 19 6 1m7s 11s276ms 20 6 1m7s 11s252ms 21 6 1m7s 11s248ms 22 6 1m7s 11s264ms 23 6 1m7s 11s235ms 00 5 56s515ms 11s303ms [ User: monitoring_admin - Total duration: 16m17s - Times executed: 153 ]
-
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-05-20 22:09:28+02' AND collected_at <= '2026-05-22 22:09:28+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-05-22 22:09:28+02' AND '2026-05-22 23:09:28+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-05-22 22:09:28+02' AND '2026-05-22 23:09:28+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-05-22 23:09:39 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-20 17:42:59+02' AND collected_at <= '2026-05-22 17:42:59+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-05-22 17:42:59+02' AND '2026-05-22 18:42:59+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-05-22 17:42:59+02' AND '2026-05-22 18:42:59+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-05-22 18:43:10 Duration: 11s389ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-20 18:44:25+02' AND collected_at <= '2026-05-22 18:44:25+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-05-22 18:44:25+02' AND '2026-05-22 19:44:25+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-05-22 18:44:25+02' AND '2026-05-22 19:44:25+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-05-22 19:44:37 Duration: 11s359ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
19 24 23s103ms 608ms 1s27ms 962ms select distinct on (coalesce(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at from observability.uptime_checks order by coalesce(check_key, endpoint), checked_at desc;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration May 22 01 12 11s838ms 986ms 02 11 10s656ms 968ms 08 1 608ms 608ms [ User: monitoring_admin - Total duration: 23s103ms - Times executed: 24 ]
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 01:24:39 Duration: 1s27ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 00:54:37 Duration: 1s27ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 00:34:36 Duration: 1s12ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
20 18 12s453ms 611ms 1s16ms 691ms with readable_targetgroups as materialized ( select tgm.targetgroup from "targetgroupMembers" tgm where tgm."user" = ? union select tgm.targetgroup from "targetgroupMembers" tgm join "groupMembers" gm on gm."group" = tgm."group" where gm."user" = ? ) select * from litters_search_mview l where not (deleted) and (l.owner in ( select targetgroup from readable_targetgroups) or l.editor in ( select targetgroup from readable_targetgroups) or l.tourist in ( select targetgroup from readable_targetgroups)) and (offspring - case when male_wean is null then ? else male_wean end - case when female_wean is null then ? else female_wean end - case when male_dead is null then ? else male_dead end - case when female_dead is null then ? else female_dead end - case when female_deceased is null then ? else female_deceased end - case when male_deceased is null then ? else male_deceased end) > ? and "cageName" like ? order by bday desc, dam_name, sire_name;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 22 09 8 5s605ms 700ms 10 6 4s256ms 709ms 11 2 1s285ms 642ms 12 2 1s306ms 653ms [ User: labanimal - Total duration: 12s453ms - Times executed: 18 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 12s453ms - Times executed: 18 ]
-
WITH readable_targetgroups AS MATERIALIZED ( SELECT tgm.targetgroup FROM "targetgroupMembers" tgm WHERE tgm."user" = 457 UNION SELECT tgm.targetgroup FROM "targetgroupMembers" tgm JOIN "groupMembers" gm ON gm."group" = tgm."group" WHERE gm."user" = 457 ) SELECT * FROM litters_search_mview l WHERE NOT (deleted) AND (l.owner IN ( SELECT targetgroup FROM readable_targetgroups) OR l.editor IN ( SELECT targetgroup FROM readable_targetgroups) OR l.tourist IN ( SELECT targetgroup FROM readable_targetgroups)) AND (offspring - CASE WHEN male_wean IS NULL THEN 0 ELSE male_wean END - CASE WHEN female_wean IS NULL THEN 0 ELSE female_wean END - CASE WHEN male_dead IS NULL THEN 0 ELSE male_dead END - CASE WHEN female_dead IS NULL THEN 0 ELSE female_dead END - CASE WHEN female_deceased IS NULL THEN 0 ELSE female_deceased END - CASE WHEN male_deceased IS NULL THEN 0 ELSE male_deceased END) > 0 AND "cageName" LIKE '46-047' ORDER BY bday DESC, dam_name, sire_name;
Date: 2026-05-22 08:08:43 Duration: 1s16ms 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-05-22_074204.csv
-
WITH readable_targetgroups AS MATERIALIZED ( SELECT tgm.targetgroup FROM "targetgroupMembers" tgm WHERE tgm."user" = 356 UNION SELECT tgm.targetgroup FROM "targetgroupMembers" tgm JOIN "groupMembers" gm ON gm."group" = tgm."group" WHERE gm."user" = 356 ) SELECT * FROM litters_search_mview l WHERE NOT (deleted) AND (l.owner IN ( SELECT targetgroup FROM readable_targetgroups) OR l.editor IN ( SELECT targetgroup FROM readable_targetgroups) OR l.tourist IN ( SELECT targetgroup FROM readable_targetgroups)) AND (offspring - CASE WHEN male_wean IS NULL THEN 0 ELSE male_wean END - CASE WHEN female_wean IS NULL THEN 0 ELSE female_wean END - CASE WHEN male_dead IS NULL THEN 0 ELSE male_dead END - CASE WHEN female_dead IS NULL THEN 0 ELSE female_dead END - CASE WHEN female_deceased IS NULL THEN 0 ELSE female_deceased END - CASE WHEN male_deceased IS NULL THEN 0 ELSE male_deceased END) > 0 AND "cageName" LIKE '31-%' ORDER BY bday DESC, dam_name, sire_name;
Date: 2026-05-22 09:18:02 Duration: 749ms 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-05-22_074204.csv
-
WITH readable_targetgroups AS MATERIALIZED ( SELECT tgm.targetgroup FROM "targetgroupMembers" tgm WHERE tgm."user" = 142 UNION SELECT tgm.targetgroup FROM "targetgroupMembers" tgm JOIN "groupMembers" gm ON gm."group" = tgm."group" WHERE gm."user" = 142 ) SELECT * FROM litters_search_mview l WHERE NOT (deleted) AND (l.owner IN ( SELECT targetgroup FROM readable_targetgroups) OR l.editor IN ( SELECT targetgroup FROM readable_targetgroups) OR l.tourist IN ( SELECT targetgroup FROM readable_targetgroups)) AND (offspring - CASE WHEN male_wean IS NULL THEN 0 ELSE male_wean END - CASE WHEN female_wean IS NULL THEN 0 ELSE female_wean END - CASE WHEN male_dead IS NULL THEN 0 ELSE male_dead END - CASE WHEN female_dead IS NULL THEN 0 ELSE female_dead END - CASE WHEN female_deceased IS NULL THEN 0 ELSE female_deceased END - CASE WHEN male_deceased IS NULL THEN 0 ELSE male_deceased END) > 0 AND "cageName" LIKE '50-236' ORDER BY bday DESC, dam_name, sire_name;
Date: 2026-05-22 09:02:04 Duration: 737ms 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-05-22_074204.csv
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 27s700ms 27s700ms 27s700ms 1 27s700ms select count(distinct animal_id) AS "count" from ( select animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, ?) as is_owner, user_is_tgm (animals_search_mview.editor, ?) as is_editor, user_is_tgm (animals_search_mview.tourist, ?) as is_tourist, case when not exists ( select ? from scoresheet_diary sd where sd.animals_id = animals_search_mview.id) then ? else ? end as isscored from animals_search_mview left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join animals a on a."animalID" = animals_search_mview.animal_id left join breedings b on b.id = animals_search_mview.last_mating) data where (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration May 22 10 1 27s700ms 27s700ms [ User: labanimal - Total duration: 27s700ms - Times executed: 1 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 27s700ms - Times executed: 1 ]
-
SELECT COUNT(DISTINCT animal_id) AS "count" FROM ( SELECT animals_search_mview.*, b.unbreeding_date, a.id as animal, user_is_tgm (animals_search_mview.owner, 142) AS is_owner, user_is_tgm (animals_search_mview.editor, 142) AS is_editor, user_is_tgm (animals_search_mview.tourist, 142) AS is_tourist, CASE WHEN NOT EXISTS ( SELECT 1 FROM scoresheet_diary sd WHERE sd.animals_id = animals_search_mview.id) THEN 'f' ELSE 't' END AS isscored FROM animals_search_mview LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN animals a ON a."animalID" = animals_search_mview.animal_id LEFT JOIN breedings b ON b.id = animals_search_mview.last_mating) data WHERE (is_owner OR is_editor OR is_tourist);
Date: 2026-05-22 09:10:49 Duration: 27s700ms 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-05-22_074204.csv
2 503ms 27s700ms 6s622ms 1,437 2h38m36s create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
3 503ms 27s700ms 6s622ms 1,437 2h38m36s 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 May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
4 503ms 27s700ms 6s622ms 1,437 2h38m36s 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 #4
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
5 503ms 27s700ms 6s622ms 1,437 2h38m36s create schema if not exists observability;Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
6 503ms 27s700ms 6s622ms 1,437 2h38m36s 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 #6
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
7 503ms 27s700ms 6s622ms 1,437 2h38m36s create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
8 503ms 27s700ms 6s622ms 1,437 2h38m36s 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 May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
9 503ms 27s700ms 6s622ms 1,437 2h38m36s 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 #9
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
10 503ms 27s700ms 6s622ms 1,437 2h38m36s create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m38s 10s641ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m36s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
11 503ms 27s700ms 6s615ms 1,437 2h38m26s create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
12 503ms 27s700ms 6s615ms 1,437 2h38m26s alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
13 503ms 27s700ms 6s615ms 1,437 2h38m26s 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 #13
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
14 503ms 27s700ms 6s615ms 1,437 2h38m26s 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 #14
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
15 503ms 27s700ms 6s615ms 1,437 2h38m26s 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 May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
16 503ms 27s700ms 6s615ms 1,437 2h38m26s alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
17 503ms 27s700ms 6s615ms 1,437 2h38m26s 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 May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
18 503ms 27s700ms 6s615ms 1,437 2h38m26s 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 #18
Day Hour Count Duration Avg duration May 22 01 60 1m6s 1s102ms 02 60 1m10s 1s177ms 03 60 1m23s 1s386ms 04 60 1m25s 1s416ms 05 60 1m24s 1s405ms 06 60 1m24s 1s402ms 07 60 1m24s 1s410ms 08 57 1m22s 1s456ms 09 60 1m 1s12ms 10 60 3m32s 3s540ms 11 60 2m 2s14ms 12 60 9m34s 9s567ms 13 60 11m8s 11s148ms 14 60 11m6s 11s110ms 15 60 11m6s 11s108ms 16 60 9m44s 9s738ms 17 60 10m28s 10s471ms 18 60 11m9s 11s154ms 19 60 11m16s 11s278ms 20 60 11m14s 11s238ms 21 60 11m15s 11s255ms 22 60 11m15s 11s265ms 23 60 11m14s 11s247ms 00 60 10m36s 10s605ms [ User: monitoring_admin - Total duration: 2h38m26s - Times executed: 1431 ]
-
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-05-22 09:14:01 Duration: 27s700ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 09:50:01 Duration: 12s740ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-22 23:19:01 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
19 1s347ms 11s426ms 6s385ms 153 16m17s 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 #19
Day Hour Count Duration Avg duration May 22 01 6 8s340ms 1s390ms 02 6 8s323ms 1s387ms 03 6 8s354ms 1s392ms 04 6 8s472ms 1s412ms 05 6 8s431ms 1s405ms 06 6 8s416ms 1s402ms 07 6 8s489ms 1s414ms 08 6 14s882ms 2s480ms 09 8 11s129ms 1s391ms 10 11 16s788ms 1s526ms 11 10 24s943ms 2s494ms 12 6 1m6s 11s105ms 13 6 1m6s 11s143ms 14 6 1m6s 11s109ms 15 6 1m6s 11s113ms 16 5 55s556ms 11s111ms 17 6 1m6s 11s152ms 18 6 1m6s 11s158ms 19 6 1m7s 11s276ms 20 6 1m7s 11s252ms 21 6 1m7s 11s248ms 22 6 1m7s 11s264ms 23 6 1m7s 11s235ms 00 5 56s515ms 11s303ms [ User: monitoring_admin - Total duration: 16m17s - Times executed: 153 ]
-
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-05-20 22:09:28+02' AND collected_at <= '2026-05-22 22:09:28+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-05-22 22:09:28+02' AND '2026-05-22 23:09:28+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-05-22 22:09:28+02' AND '2026-05-22 23:09:28+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-05-22 23:09:39 Duration: 11s426ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-20 17:42:59+02' AND collected_at <= '2026-05-22 17:42:59+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-05-22 17:42:59+02' AND '2026-05-22 18:42:59+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-05-22 17:42:59+02' AND '2026-05-22 18:42:59+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-05-22 18:43:10 Duration: 11s389ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.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-05-20 18:44:25+02' AND collected_at <= '2026-05-22 18:44:25+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-05-22 18:44:25+02' AND '2026-05-22 19:44:25+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-05-22 18:44:25+02' AND '2026-05-22 19:44:25+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-05-22 19:44:37 Duration: 11s359ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
20 608ms 1s27ms 962ms 24 23s103ms select distinct on (coalesce(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at from observability.uptime_checks order by coalesce(check_key, endpoint), checked_at desc;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration May 22 01 12 11s838ms 986ms 02 11 10s656ms 968ms 08 1 608ms 608ms [ User: monitoring_admin - Total duration: 23s103ms - Times executed: 24 ]
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 01:24:39 Duration: 1s27ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 00:54:37 Duration: 1s27ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_000000.csv
-
SELECT DISTINCT ON (COALESCE(check_key, endpoint) ) check_key, label, endpoint, status, latency_ms, payload, checked_at FROM observability.uptime_checks ORDER BY COALESCE(check_key, endpoint), checked_at DESC;
Date: 2026-05-22 00:34:36 Duration: 1s12ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-05-22_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
- 134,940 Event entries
- (EVENTLOG entries are formaly LOG level entries that are not queries)
Events distribution (except queries)
Key values
- 0 PANIC entries
- 0 FATAL entries
- 0 ERROR entries
- 0 WARNING entries
- 5 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 2 Max number of times the same event was reported
- 5 Total events found
Rank Times reported Error 1 2 LOG: database system was shut down at ...
Times Reported Most Frequent Error / Event #1
Day Hour Count May 22 08 2 - LOG: database system was shut down at 2026-05-22 07:39:57 CEST
- LOG: database system was shut down at 2026-05-22 07:40:26 CEST
Date: 2026-05-22 07:40:03 Log file: /var/log/postgresql/postgresql-2026-05-22_074003.csv
Date: 2026-05-22 07:42:04 Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
2 1 ERROR: canceling autovacuum task
Times Reported Most Frequent Error / Event #2
Day Hour Count May 22 17 1 - ERROR: canceling autovacuum task
Context: while scanning block 1775039 of relation "observability.db_top_queries" automatic vacuum of table "zemm_monitoring.observability.db_top_queries"
Date: 2026-05-22 16:48:02 Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
3 1 ERROR: invalid input syntax for type date: ...
Times Reported Most Frequent Error / Event #3
Day Hour Count May 22 09 1 - ERROR: invalid input syntax for type date: ""
Statement: SELECT p_update_animal(456, 10278868, '69 Z', 1, 'f', false, '2025-06-10', '2025-06-10', true, '', '', 5, '', 10145, '20', true, '56','2025/000/4322',10267155, '64','2025/000/4330',10267163,0,'');
Date: 2026-05-22 08:46:43 Database: zemm_produktiv_8 Application: _desktop_index.php_animal_name_69_20Z_animal_id_2025_2F001_2F60 User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv
4 1 LOG: process ... still waiting for ShareLock on relation ... of database ... after ... ms
Times Reported Most Frequent Error / Event #4
Day Hour Count May 22 17 1 - LOG: process 819307 still waiting for ShareLock on relation 67431 of database 51653 after 1000.066 ms
Detail: Process holding the lock: 812544. Wait queue: 819307.
Statement: CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC)Date: 2026-05-22 16:48:02 Database: zemm_monitoring Application: User: monitoring_admin Remote: Log file: /var/log/postgresql/postgresql-2026-05-22_074204.csv