-
Global information
- Generated on Mon Jun 15 06:05:42 2026
- Log file: /var/log/postgresql/postgresql-2026-05-13_000000.csv, ..., /var/log/postgresql/postgresql-2026-06-15_000000.csv
- Parsed 212,739 log entries in 5m41s
- Log start from 2026-06-06 00:00:01 to 2026-06-06 23:59:03
-
Overview
Global Stats
- 34 Number of unique normalized queries
- 24,483 Number of queries
- 7h41m34s Total query duration
- 2026-06-06 00:00:01 First query
- 2026-06-06 23:59:01 Last query
- 17 queries/s at 2026-06-06 11:45:02 Query peak
- 7h41m34s Total query duration
- 0ms Prepare/parse total duration
- 0ms Bind total duration
- 7h41m34s Execute total duration
- 2 Number of events
- 2 Number of unique normalized events
- 1 Max number of times the same event was reported
- 0 Number of cancellation
- 10 Total number of automatic vacuums
- 10 Total number of automatic analyzes
- 0 Number temporary file
- 0 Max size of temporary file
- 0.00 B Average size of temporary file
- 17,259 Total number of sessions
- 8 sessions at 2026-06-06 15:59:12 Session peak
- 1h8m4s Total duration of sessions
- 236ms Average duration of sessions
- 1 Average queries per session
- 1s604ms Average queries duration per session
- 0ms Average idle time per session
- 17,259 Total number of connections
- 34 connections/s at 2026-06-06 10:31:03 Connection peak
- 2 Total number of databases
SQL Traffic
Key values
- 17 queries/s Query Peak
- 2026-06-06 11:45:02 Date
SELECT Traffic
Key values
- 1 queries/s Query Peak
- 2026-06-06 19:47:39 Date
INSERT/UPDATE/DELETE Traffic
Key values
- 17 queries/s Query Peak
- 2026-06-06 11:45:02 Date
Queries duration
Key values
- 7h41m34s Total query duration
Prepared queries ratio
Key values
- 0.00 Ratio of bind vs prepare
- 0.00 % Ratio between prepared and "usual" statements
General Activity
↑ Back to the top of the General Activity tableDay Hour Count Min duration Max duration Avg duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 06 00 1,020 0ms 0ms 0ms 0ms 0ms 0ms 01 1,021 0ms 1s19ms 493ms 17s326ms 17s326ms 17s326ms 02 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 03 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 04 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 05 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 06 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 07 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 08 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 09 1,020 1s19ms 1s19ms 1s19ms 17s326ms 17s326ms 17s326ms 10 1,008 0ms 6s490ms 1s980ms 43s366ms 43s366ms 1m52s 11 1,020 2s550ms 2s550ms 2s550ms 43s366ms 43s366ms 43s366ms 12 1,020 2s550ms 2s550ms 2s550ms 43s366ms 43s366ms 43s366ms 13 1,020 2s550ms 2s550ms 2s550ms 43s366ms 43s366ms 43s366ms 14 1,021 932ms 2s550ms 1s471ms 43s366ms 43s366ms 44s299ms 15 1,020 932ms 932ms 932ms 15s853ms 15s853ms 15s853ms 16 1,020 932ms 932ms 932ms 15s853ms 15s853ms 15s853ms 17 1,020 932ms 932ms 932ms 15s853ms 15s853ms 15s853ms 18 1,020 932ms 932ms 932ms 15s853ms 15s853ms 15s853ms 19 1,024 699ms 1s751ms 886ms 15s853ms 15s853ms 19s773ms 20 1,020 699ms 699ms 699ms 11s890ms 11s890ms 11s890ms 21 1,020 699ms 699ms 699ms 11s890ms 11s890ms 11s890ms 22 1,020 699ms 699ms 699ms 11s890ms 11s890ms 11s890ms 23 1,029 500ms 2s523ms 697ms 11s890ms 11s890ms 22s274ms Day Hour SELECT COPY TO Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 06 00 0 0 0ms 0ms 0ms 0ms 01 0 0 0ms 0ms 0ms 0ms 02 0 0 0ms 0ms 0ms 0ms 03 0 0 0ms 0ms 0ms 0ms 04 0 0 0ms 0ms 0ms 0ms 05 0 0 0ms 0ms 0ms 0ms 06 0 0 0ms 0ms 0ms 0ms 07 0 0 0ms 0ms 0ms 0ms 08 0 0 0ms 0ms 0ms 0ms 09 0 0 0ms 0ms 0ms 0ms 10 3 0 1s118ms 0ms 0ms 0ms 11 0 0 0ms 0ms 0ms 0ms 12 0 0 0ms 0ms 0ms 0ms 13 0 0 0ms 0ms 0ms 0ms 14 1 0 932ms 0ms 0ms 0ms 15 0 0 0ms 0ms 0ms 0ms 16 0 0 0ms 0ms 0ms 0ms 17 0 0 0ms 0ms 0ms 0ms 18 0 0 0ms 0ms 0ms 0ms 19 4 0 980ms 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 9 1s153ms 0ms 0ms 0ms Day Hour INSERT UPDATE DELETE COPY FROM Average Duration Latency Percentile(90) Latency Percentile(95) Latency Percentile(99) Jun 06 00 0 0 0 0 0ms 0ms 0ms 0ms 01 0 1 0 0 1s19ms 0ms 0ms 0ms 02 0 0 0 0 0ms 0ms 0ms 0ms 03 0 0 0 0 0ms 0ms 0ms 0ms 04 0 0 0 0 0ms 0ms 0ms 0ms 05 0 0 0 0 0ms 0ms 0ms 0ms 06 0 0 0 0 0ms 0ms 0ms 0ms 07 0 0 0 0 0ms 0ms 0ms 0ms 08 0 0 0 0 0ms 0ms 0ms 0ms 09 0 0 0 0 0ms 0ms 0ms 0ms 10 0 0 0 0 0ms 0ms 0ms 0ms 11 0 0 0 0 0ms 0ms 0ms 0ms 12 0 0 0 0 0ms 0ms 0ms 0ms 13 0 0 0 0 0ms 0ms 0ms 0ms 14 0 0 0 0 0ms 0ms 0ms 0ms 15 0 0 0 0 0ms 0ms 0ms 0ms 16 0 0 0 0 0ms 0ms 0ms 0ms 17 0 0 0 0 0ms 0ms 0ms 0ms 18 0 0 0 0 0ms 0ms 0ms 0ms 19 0 0 0 0 0ms 0ms 0ms 0ms 20 0 0 0 0 0ms 0ms 0ms 0ms 21 0 0 0 0 0ms 0ms 0ms 0ms 22 0 0 0 0 0ms 0ms 0ms 0ms 23 0 0 0 0 0ms 0ms 0ms 0ms Day Hour Prepare Bind Bind/Prepare Percentage of prepare Jun 06 00 0 0 0.00 0.00% 01 0 0 0.00 0.00% 02 0 0 0.00 0.00% 03 0 0 0.00 0.00% 04 0 0 0.00 0.00% 05 0 0 0.00 0.00% 06 0 0 0.00 0.00% 07 0 0 0.00 0.00% 08 0 0 0.00 0.00% 09 0 0 0.00 0.00% 10 0 5 5.00 0.00% 11 0 0 0.00 0.00% 12 0 0 0.00 0.00% 13 0 0 0.00 0.00% 14 0 0 0.00 0.00% 15 0 0 0.00 0.00% 16 0 0 0.00 0.00% 17 0 0 0.00 0.00% 18 0 0 0.00 0.00% 19 0 0 0.00 0.00% 20 0 0 0.00 0.00% 21 0 0 0.00 0.00% 22 0 0 0.00 0.00% 23 0 0 0.00 0.00% Day Hour Count Average / Second Jun 06 00 543 0.15/s 01 546 0.15/s 02 620 0.17/s 03 560 0.16/s 04 548 0.15/s 05 549 0.15/s 06 559 0.16/s 07 547 0.15/s 08 555 0.15/s 09 617 0.17/s 10 886 0.25/s 11 919 0.26/s 12 910 0.25/s 13 870 0.24/s 14 921 0.26/s 15 906 0.25/s 16 872 0.24/s 17 903 0.25/s 18 845 0.23/s 19 1,022 0.28/s 20 654 0.18/s 21 815 0.23/s 22 543 0.15/s 23 549 0.15/s Day Hour Count Average Duration Average idle time Jun 06 00 543 249ms 249ms 01 546 250ms 0ms 02 620 222ms 0ms 03 560 244ms 0ms 04 548 250ms 0ms 05 549 250ms 0ms 06 559 235ms 0ms 07 547 236ms 0ms 08 555 234ms 0ms 09 617 233ms 0ms 10 886 255ms 0ms 11 919 251ms 0ms 12 910 234ms 0ms 13 870 259ms 0ms 14 921 230ms 0ms 15 906 227ms 0ms 16 872 224ms 0ms 17 903 221ms 0ms 18 845 225ms 0ms 19 1,022 214ms 0ms 20 654 223ms 0ms 21 815 225ms 0ms 22 543 241ms 0ms 23 549 266ms 0ms -
Connections
Established Connections
Key values
- 34 connections Connection Peak
- 2026-06-06 10:31:03 Date
Connections per database
Key values
- zemm_monitoring Main Database
- 17,259 connections Total
Connections per user
Key values
- labanimal Main User
- 17,259 connections Total
-
Sessions
Simultaneous sessions
Key values
- 8 sessions Session Peak
- 2026-06-06 15:59:12 Date
Histogram of session times
Key values
- 15,418 0-500ms duration
Sessions per database
Key values
- zemm_monitoring Main Database
- 17,259 sessions Total
Sessions per user
Key values
- labanimal Main User
- 17,259 sessions Total
Sessions per host
Key values
- ::1 Main Host
- 17,259 sessions Total
Sessions per application
Key values
- Main Application
- 17,259 sessions Total
Application Count Total Duration Average Duration 15,664 1h6m45s 255ms _desktop_index.php_command_login_subcommand_init_zemm_dev_local 11 380ms 34ms _desktop_index.php_command_login_subcommand_init_zemm_produktiv 1,478 43s499ms 29ms _desktop_index.php_command_login_subcommand_init_zemm_test_loca 4 145ms 36ms _desktop_index.php_name_Tiertransport_20innerhalb_20W_C3_BCrzbu 1 95ms 95ms _desktop_index.php_zemm_produktiv_8_localhost_5432 70 14s438ms 206ms bounces:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 76ms 76ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s43ms 1s43ms fatescron:zemm_produktiv_8@h2940066.stratoserver.net:5432 1 1s174ms 1s174ms pg_dump 1 15s109ms 15s109ms psql 3 23ms 7ms taskscron:zemm_produktiv_8@h2940066.stratoserver.net:5432 24 2s404ms 100ms -
Checkpoints / Restartpoints
Checkpoints Buffers
Key values
- 19,715 buffers Checkpoint Peak
- 2026-06-06 01:36:01 Date
- 269.298 seconds Highest write time
- 0.023 seconds Sync time
Checkpoints Wal files
Key values
- 6 files Wal files usage Peak
- 2026-06-06 01:36:01 Date
Checkpoints distance
Key values
- 195.68 Mo Distance Peak
- 2026-06-06 01:36:01 Date
Checkpoints Activity
↑ Back to the top of the Checkpoint Activity tableDay Hour Written buffers Write time Sync time Total time Jun 06 00 8,431 843.502s 0.102s 843.66s 01 27,156 1,014.107s 0.107s 1,014.273s 02 8,006 801.216s 0.104s 801.367s 03 8,692 869.541s 0.101s 869.699s 04 8,597 860.337s 0.108s 860.503s 05 9,190 919.92s 0.104s 920.075s 06 8,606 861.708s 0.105s 861.872s 07 9,356 936.235s 0.109s 936.4s 08 8,946 895.386s 0.105s 895.548s 09 13,358 988.923s 0.096s 989.066s 10 8,444 741.704s 0.104s 741.866s 11 9,335 934.397s 0.108s 934.567s 12 8,403 840.864s 0.097s 841.008s 13 9,930 993.645s 0.102s 993.799s 14 8,348 835.374s 0.105s 835.537s 15 8,280 828.901s 0.105s 829.065s 16 8,882 888.852s 0.095s 889.003s 17 9,557 956.77s 0.097s 956.922s 18 8,703 870.848s 0.095s 871s 19 8,875 887.582s 0.119s 887.761s 20 8,988 898.992s 0.125s 899.18s 21 9,875 988.336s 0.1s 988.495s 22 8,326 832.969s 0.101s 833.132s 23 9,033 904.017s 0.1s 904.651s Day Hour Added Removed Recycled Synced files Longest sync Average sync Jun 06 00 0 0 2 555 0.002s 0.012s 01 0 0 8 572 0.003s 0.012s 02 0 0 1 548 0.002s 0.012s 03 0 0 2 550 0.002s 0.012s 04 0 0 2 560 0.001s 0.012s 05 0 0 2 547 0.004s 0.012s 06 0 0 2 557 0.002s 0.012s 07 0 0 1 570 0.002s 0.012s 08 0 0 2 561 0.001s 0.012s 09 0 0 3 520 0.002s 0.011s 10 0 0 2 521 0.003s 0.012s 11 0 0 2 574 0.002s 0.013s 12 0 0 1 480 0.002s 0.011s 13 0 0 2 529 0.003s 0.012s 14 0 0 2 544 0.002s 0.012s 15 0 0 2 532 0.002s 0.012s 16 0 0 1 521 0.002s 0.012s 17 0 0 2 529 0.001s 0.012s 18 0 0 2 523 0.001s 0.012s 19 0 0 2 650 0.002s 0.012s 20 0 0 2 665 0.002s 0.012s 21 0 0 2 544 0.002s 0.012s 22 0 0 1 542 0.002s 0.012s 23 0 0 2 543 0.002s 0.012s Day Hour Count Avg time (sec) Jun 06 00 0 0s 01 0 0s 02 0 0s 03 0 0s 04 0 0s 05 0 0s 06 0 0s 07 0 0s 08 0 0s 09 0 0s 10 0 0s 11 0 0s 12 0 0s 13 0 0s 14 0 0s 15 0 0s 16 0 0s 17 0 0s 18 0 0s 19 0 0s 20 0 0s 21 0 0s 22 0 0s 23 0 0s Day Hour Mean distance Mean estimate Jun 06 00 2,404.67 kB 3,008.33 kB 01 10,487.58 kB 40,806.08 kB 02 2,242.58 kB 33,442.08 kB 03 2,433.42 kB 11,121.50 kB 04 2,422.92 kB 4,924.00 kB 05 2,521.67 kB 3,513.25 kB 06 2,493.75 kB 3,835.50 kB 07 2,502.75 kB 4,346.08 kB 08 2,470.58 kB 3,210.58 kB 09 4,040.09 kB 13,054.27 kB 10 2,333.00 kB 3,900.75 kB 11 2,423.92 kB 3,071.85 kB 12 2,459.45 kB 2,992.27 kB 13 2,682.58 kB 3,471.92 kB 14 2,363.33 kB 3,115.92 kB 15 2,279.83 kB 2,808.83 kB 16 2,446.17 kB 3,103.25 kB 17 2,633.75 kB 3,204.50 kB 18 2,389.25 kB 2,932.25 kB 19 2,468.83 kB 2,974.33 kB 20 2,561.00 kB 3,215.58 kB 21 2,741.58 kB 3,564.42 kB 22 2,364.33 kB 2,981.00 kB 23 2,456.75 kB 3,734.92 kB -
Temporary Files
Size of temporary files
Key values
- 0 Temp Files size Peak
- Date
Size of temporary files (5 minutes period)
NO DATASET
Number of temporary files
Key values
- 0 per second Temp Files Peak
- Date
Number of temporary files (5 minutes period)
NO DATASET
Temporary Files Activity
↑ Back to the top of the Temporary Files Activity tableDay Hour Count Total size Average size Jun 06 00 0 0 0 01 0 0 0 02 0 0 0 03 0 0 0 04 0 0 0 05 0 0 0 06 0 0 0 07 0 0 0 08 0 0 0 09 0 0 0 10 0 0 0 11 0 0 0 12 0 0 0 13 0 0 0 14 0 0 0 15 0 0 0 16 0 0 0 17 0 0 0 18 0 0 0 19 0 0 0 20 0 0 0 21 0 0 0 22 0 0 0 23 0 0 0 -
Vacuums
Vacuums / Analyzes Distribution
Key values
- 0.62 sec Highest CPU-cost vacuum
Table public.tasks
Database zemm_produktiv_8 - 2026-06-06 01:30:32 Date
- 0 sec Highest CPU-cost analyze
Table
Database zemm_produktiv_8 - Date
Average Autovacuum Duration
Key values
- 0.62 sec Highest CPU-cost vacuum
Table public.tasks
Database zemm_produktiv_8 - 2026-06-06 01:30:32 Date
Analyzes per table
Key values
- observability.metrics_timeseries (2) Main table analyzed (database zemm_monitoring)
- 10 analyzes Total
Table Number of analyzes zemm_monitoring.observability.metrics_timeseries 2 zemm_produktiv_8.pg_catalog.pg_type 2 fbi_unire.pg_catalog.pg_shdepend 1 zemm_produktiv_8.pg_catalog.pg_class 1 zemm_produktiv_8.public.tasks 1 zemm_produktiv_8.pg_catalog.pg_depend 1 zemm_monitoring.observability.db_top_queries 1 zemm_produktiv_8.pg_catalog.pg_attribute 1 Total 10 Vacuums per table
Key values
- pg_toast.pg_toast_67431 (3) Main table vacuumed on database zemm_monitoring
- 10 vacuums Total
Index Buffer usage Skipped WAL usage Frozen Table Vacuums scans hits misses dirtied pins frozen records full page bytes pages tuples zemm_monitoring.pg_toast.pg_toast_67431 3 0 0 0 0 0 0 7,549 3,029 6,832,407 1,504 9,024 zemm_monitoring.pg_toast.pg_toast_181881 2 0 0 0 0 0 0 564 190 979,991 186 1,113 zemm_produktiv_8.pg_catalog.pg_attribute 1 1 0 0 0 0 0 83 31 25,758 0 0 labanimal.pg_catalog.pg_shdepend 1 1 0 0 0 0 0 69 20 41,720 0 0 zemm_produktiv_8.pg_toast.pg_toast_2619 1 1 0 0 0 0 0 207 61 330,218 16 53 zemm_produktiv_8.pg_catalog.pg_type 1 1 0 0 0 0 0 52 11 12,291 0 0 zemm_produktiv_8.public.tasks 1 1 0 0 0 0 0 48,844 31 3,548,314 0 0 Total 10 5 0 0 0 0 0 57,368 3,373 11,770,699 1,706 10,190 Vacuum throughput per table
Key values
- pg_toast.pg_toast_67431 (0.79) Max CPU elapsed for vacuum on database zemm_monitoring
- pg_toast.pg_toast_67431 (5.796 ms) Max I/O read time for vacuum on database zemm_monitoring
- pg_toast.pg_toast_67431 (0.386 ms) Max I/O write time for vacuum on database zemm_monitoring
I/O timing (ms) CPU (s) Table read write elapsed zemm_monitoring.pg_toast.pg_toast_67431 5.796 0.386 0.79 zemm_monitoring.pg_toast.pg_toast_181881 0 0 0.04 zemm_produktiv_8.pg_catalog.pg_attribute 2.821 0.075 0.02 labanimal.pg_catalog.pg_shdepend 1.772 0 0.01 zemm_produktiv_8.pg_toast.pg_toast_2619 1.496 0 0.01 zemm_produktiv_8.pg_catalog.pg_type 1.837 0 0 zemm_produktiv_8.public.tasks 0 0 0.62 Total 13.722 0.461 1.49 Tuples removed per table
Key values
- public.tasks (54891) Main table with removed tuples on database zemm_produktiv_8
- 65320 tuples Total removed
Index Tuples Pages Table Vacuums scans removed remain not yet removable removed remain zemm_produktiv_8.public.tasks 1 1 54,891 58,022 0 0 17,142 zemm_monitoring.pg_toast.pg_toast_67431 3 0 9,084 1,899,517 0 0 397,083 zemm_produktiv_8.pg_catalog.pg_attribute 1 1 710 5,895 0 0 184 labanimal.pg_catalog.pg_shdepend 1 1 312 4,705 0 0 39 zemm_produktiv_8.pg_catalog.pg_type 1 1 226 831 0 0 31 zemm_produktiv_8.pg_toast.pg_toast_2619 1 1 97 293 0 0 106 zemm_monitoring.pg_toast.pg_toast_181881 2 0 0 64,360 0 0 11,619 Total 10 5 65,320 2,033,623 0 0 426,204 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 2 0 0 0 zemm_monitoring.pg_toast.pg_toast_67431 3 0 9084 0 zemm_produktiv_8.pg_catalog.pg_attribute 1 1 710 0 labanimal.pg_catalog.pg_shdepend 1 1 312 0 zemm_produktiv_8.pg_toast.pg_toast_2619 1 1 97 0 zemm_produktiv_8.pg_catalog.pg_type 1 1 226 0 zemm_produktiv_8.public.tasks 1 1 54891 0 Total 10 5 65,320 0 Autovacuum Activity
↑ Back to the top of the Autovacuum Activity tableDay Hour VACUUMs ANALYZEs Jun 06 00 0 0 01 2 1 02 0 0 03 0 0 04 0 0 05 1 0 06 1 1 07 0 1 08 0 0 09 0 0 10 0 0 11 0 0 12 0 0 13 1 0 14 0 0 15 0 0 16 0 0 17 0 0 18 0 0 19 2 4 20 2 2 21 0 1 22 0 0 23 1 0 - 0.62 sec Highest CPU-cost vacuum
-
Locks
Locks by types
Key values
- unknown Main Lock Type
- 0 locks Total
Most frequent waiting queries (N)
Rank Count Total time Min time Max time Avg duration Query NO DATASET
Queries that waited the most
Rank Wait time Query NO DATASET
-
Queries
Queries by type
Key values
- 8 Total read queries
- 24,475 Total write queries
Queries by database
Key values
- zemm_monitoring Main database
- 24,468 Requests
- 7h41m18s (zemm_monitoring)
- Main time consuming database
Queries by user
Key values
- monitoring_admin Main user
- 614,658 Requests
User Request type Count Duration labanimal Total 2,046 44m58s copy to 8 22s808ms cte 338 7m28s select 1,675 36m40s update 25 27s85ms monitoring_admin Total 614,658 34d19h47m34s cte 1,885 4h22m12s ddl 611,911 34d15h12m56s delete 1 603ms select 853 12m16s postgres Total 134 3m copy to 134 3m Duration by user
Key values
- 34d19h47m34s (monitoring_admin) Main time consuming user
User Request type Count Duration labanimal Total 2,046 44m58s copy to 8 22s808ms cte 338 7m28s select 1,675 36m40s update 25 27s85ms monitoring_admin Total 614,658 34d19h47m34s cte 1,885 4h22m12s ddl 611,911 34d15h12m56s delete 1 603ms select 853 12m16s postgres Total 134 3m copy to 134 3m Queries by host
Key values
- unknown Main host
- 616,679 Requests
- 34d20h32m6s (unknown)
- Main time consuming host
Queries by application
Key values
- unknown Main application
- 24,468 Requests
- 7h41m18s (unknown)
- Main time consuming application
Application Request type Count Duration _desktop_index.php_zemm_produktiv_8_localhost_5432 Total 5 4s852ms select 5 4s852ms expire_tasks:zemm_produktiv_8@h2940066.stratoserver.net:5432 Total 1 1s19ms update 1 1s19ms pg_dump Total 9 10s384ms copy to 9 10s384ms unknown Total 24,468 7h41m18s cte 2 9s41ms ddl 24,463 7h41m6s select 3 3s356ms Number of cancelled queries
Key values
- 0 per second Cancelled query Peak
- 2026-06-06 16:15:57 Date
Number of cancelled queries (5 minutes period)
NO DATASET
-
Top Queries
Histogram of query times
Key values
- 12 1000-10000ms duration
Slowest individual queries
Rank Duration Query 1 6s490ms WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-04 04:20:46+02' AND collected_at <= '2026-06-06 04:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';[ Date: 2026-06-06 10:20:53 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
2 6s490ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
3 6s490ms CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
4 6s490ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
5 6s490ms CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
6 6s490ms CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
7 6s490ms CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
8 6s490ms CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
9 6s490ms CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
10 6s490ms CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
11 6s490ms CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
12 6s490ms CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
13 6s490ms CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
14 6s490ms CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
15 6s490ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
16 6s490ms ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
17 6s490ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
18 6s490ms CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);[ Date: 2026-06-06 10:21:02 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
19 2s550ms WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-03 10:21:05+02' AND collected_at <= '2026-06-05 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';[ Date: 2026-06-06 10:21:08 - Database: zemm_monitoring - User: monitoring_admin - Bind query: yes ]
20 2s550ms CREATE SCHEMA IF NOT EXISTS observability;[ Date: 2026-06-06 10:22: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 27m7s 1,439 611ms 6s490ms 1s130ms 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 Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
2 27m7s 1,439 611ms 6s490ms 1s130ms 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 #2
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
3 27m7s 1,439 611ms 6s490ms 1s130ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
4 27m7s 1,439 611ms 6s490ms 1s130ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
5 27m7s 1,439 611ms 6s490ms 1s130ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
6 27m7s 1,439 611ms 6s490ms 1s130ms create schema if not exists observability;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
7 27m7s 1,439 611ms 6s490ms 1s130ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
8 27m7s 1,439 611ms 6s490ms 1s130ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
9 27m7s 1,439 611ms 6s490ms 1s130ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
10 27m7s 1,439 611ms 6s490ms 1s130ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
11 27m7s 1,439 611ms 6s490ms 1s130ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
12 27m7s 1,439 611ms 6s490ms 1s130ms 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 Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
13 27m7s 1,439 611ms 6s490ms 1s130ms 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 #13
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
14 27m7s 1,439 611ms 6s490ms 1s130ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
15 27m7s 1,439 611ms 6s490ms 1s130ms 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 #15
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
16 27m7s 1,439 611ms 6s490ms 1s130ms 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 #16
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
17 27m7s 1,439 611ms 6s490ms 1s130ms 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 #17
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
18 9s41ms 2 2s550ms 6s490ms 4s520ms with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at >= ? and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 06 11 2 9s41ms 4s520ms [ User: monitoring_admin - Total duration: 9s41ms - Times executed: 2 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-04 04:20:46+02' AND collected_at <= '2026-06-06 04:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-06-06 10:20:53 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-03 10:21:05+02' AND collected_at <= '2026-06-05 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-06-06 10:21:08 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
19 2s523ms 1 2s523ms 2s523ms 2s523ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 06 00 1 2s523ms 2s523ms [ User: postgres - Total duration: 2s523ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s523ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-06-06 23:55:19 Duration: 2s523ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
20 2s518ms 2 766ms 1s751ms 1s259ms 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 fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 06 20 2 2s518ms 1s259ms [ User: labanimal - Total duration: 2s518ms - Times executed: 2 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s518ms - Times executed: 2 ]
-
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, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) 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 fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-06-06 19:47:38 Duration: 1s751ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
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, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) 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 fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-06-06 19:47:41 Duration: 766ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
Most frequent queries (N)
Rank Times executed Total duration Min duration Max duration Avg duration Query 1 1,439 27m7s 611ms 6s490ms 1s130ms 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 Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
2 1,439 27m7s 611ms 6s490ms 1s130ms 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 #2
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
3 1,439 27m7s 611ms 6s490ms 1s130ms create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
4 1,439 27m7s 611ms 6s490ms 1s130ms create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
5 1,439 27m7s 611ms 6s490ms 1s130ms create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #5
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
6 1,439 27m7s 611ms 6s490ms 1s130ms create schema if not exists observability;Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
7 1,439 27m7s 611ms 6s490ms 1s130ms create table if not exists observability.metrics_timeseries ( id bigserial primary key, tenant_key text not null, metric_name text not null, bucket_start timestamptz not null, bucket_width_seconds integer not null default ?, sum_value double precision not null default ?, count_value bigint not null default ?, histogram jsonb, created_at timestamptz not null default now(), updated_at timestamptz not null default now(), unique (tenant_key, metric_name, bucket_start, bucket_width_seconds) );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
8 1,439 27m7s 611ms 6s490ms 1s130ms alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
9 1,439 27m7s 611ms 6s490ms 1s130ms create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
10 1,439 27m7s 611ms 6s490ms 1s130ms alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #10
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
11 1,439 27m7s 611ms 6s490ms 1s130ms create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
12 1,439 27m7s 611ms 6s490ms 1s130ms 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 Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
13 1,439 27m7s 611ms 6s490ms 1s130ms 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 #13
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
14 1,439 27m7s 611ms 6s490ms 1s130ms create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
15 1,439 27m7s 611ms 6s490ms 1s130ms 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 #15
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
16 1,439 27m7s 611ms 6s490ms 1s130ms 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 #16
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
17 1,439 27m7s 611ms 6s490ms 1s130ms 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 #17
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
18 2 9s41ms 2s550ms 6s490ms 4s520ms with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at >= ? and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #18
Day Hour Count Duration Avg duration Jun 06 11 2 9s41ms 4s520ms [ User: monitoring_admin - Total duration: 9s41ms - Times executed: 2 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-04 04:20:46+02' AND collected_at <= '2026-06-06 04:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-06-06 10:20:53 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-03 10:21:05+02' AND collected_at <= '2026-06-05 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-06-06 10:21:08 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
19 2 2s518ms 766ms 1s751ms 1s259ms 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 fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #19
Day Hour Count Duration Avg duration Jun 06 20 2 2s518ms 1s259ms [ User: labanimal - Total duration: 2s518ms - Times executed: 2 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s518ms - Times executed: 2 ]
-
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, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) 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 fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-06-06 19:47:38 Duration: 1s751ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
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, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) 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 fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-06-06 19:47:41 Duration: 766ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
20 2 1s402ms 699ms 702ms 701ms select distinct * from ( select animals_search_mview.*, b.unbreeding_date, fates.loc as fate_name, 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, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, string_agg(l."application_id" || ? || l."title" || ? || date(lh."timestamp")::varchar, ?) as licensehistory, 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 inner join fates on fates.id = animals_search_mview.fate left join strains on strains.name = animals_search_mview.strain left join license_history lh on lh.anid = animals_search_mview.id left join licenses l on l.id = lh.licid left join breedings b on b.id = animals_search_mview.last_mating group by animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data where data.fate = ? and data.alive = ? and data.deleted = ? and (is_owner or is_editor or is_tourist) and (data.straindeleted = ? or data.straindeleted is null) order by data.cage_name, data.animal_id, data.name;Times Reported Time consuming queries #20
Day Hour Count Duration Avg duration Jun 06 20 2 1s402ms 701ms [ User: labanimal - Total duration: 1s402ms - Times executed: 2 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 1s402ms - Times executed: 2 ]
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, 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 INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-06-06 19:47:39 Duration: 702ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
SELECT DISTINCT * FROM ( SELECT animals_search_mview.*, b.unbreeding_date, fates.loc AS fate_name, user_is_tgm (animals_search_mview.owner, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) AS is_tourist, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, strains.deleted as straindeleted, STRING_AGG(l."application_id" || ':' || l."title" || ' - ' || Date(lh."timestamp")::varchar, '; ') AS licensehistory, 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 INNER JOIN fates ON fates.id = animals_search_mview.fate LEFT JOIN strains ON strains.name = animals_search_mview.strain LEFT JOIN license_history lh ON lh.anid = animals_search_mview.id LEFT JOIN licenses l ON l.id = lh.licid left join breedings b ON b.id = animals_search_mview.last_mating GROUP BY animals_search_mview.id, b.unbreeding_date, fates.loc, strains.cancel_criteria, strains.symtoms, strains.reduce_severity_by, strains.sym_immune, straindeleted) data WHERE data.fate = 5 AND data.alive = 't' AND data.deleted = 'f' AND (is_owner OR is_editor OR is_tourist) and (data.straindeleted = 'f' or data.straindeleted is null) ORDER BY data.cage_name, data.animal_id, data.name;
Date: 2026-06-06 19:47:42 Duration: 699ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
Normalized slowest queries (N)
Rank Min duration Max duration Avg duration Times executed Total duration Query 1 2s550ms 6s490ms 4s520ms 2 9s41ms with start_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at >= ? and collected_at <= ? order by tenant_key, fingerprint, collected_at desc ), fallback_start as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at asc ), end_snap as ( select distinct on (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at from observability.db_top_queries where tenant_key in (...) and collected_at between ? and ? order by tenant_key, fingerprint, collected_at desc ), deltas as ( select e.tenant_key, e.fingerprint, e.query, e.collected_at as last_seen, greatest (coalesce(e.total_time_ms, ?) - coalesce(s.total_time_ms, fs.total_time_ms, ?), ?) as total_time_ms, greatest (coalesce(e.calls, ?) - coalesce(s.calls, fs.calls, ?), ?) as calls, greatest (coalesce(e.rows_returned, ?) - coalesce(s.rows_returned, fs.rows_returned, ?), ?) as rows_returned from end_snap e left join start_snap s on s.tenant_key = e.tenant_key and s.fingerprint = e.fingerprint left join fallback_start fs on fs.tenant_key = e.tenant_key and fs.fingerprint = e.fingerprint and s.tenant_key is null ) select fingerprint, max(query) as query, max(last_seen) as last_seen, sum(total_time_ms) as total_time_ms, sum(calls) as calls, sum(rows_returned) as rows_returned, case when sum(calls) > ? then sum(total_time_ms) / sum(calls) else ? end as mean_time_ms, array_agg(distinct tenant_key order by tenant_key) as tenant_keys from deltas where total_time_ms > ? or calls > ? group by fingerprint order by total_time_ms desc, calls desc limit ? offset ?;Times Reported Time consuming queries #1
Day Hour Count Duration Avg duration Jun 06 11 2 9s41ms 4s520ms [ User: monitoring_admin - Total duration: 9s41ms - Times executed: 2 ]
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-04 04:20:46+02' AND collected_at <= '2026-06-06 04:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-06 04:20:46+02' AND '2026-06-06 10:20:46+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-06-06 10:20:53 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
WITH start_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at >= '2026-06-03 10:21:05+02' AND collected_at <= '2026-06-05 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), fallback_start AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at ASC ), end_snap AS ( SELECT DISTINCT ON (tenant_key, fingerprint) tenant_key, fingerprint, query, total_time_ms, calls, rows_returned, collected_at FROM observability.db_top_queries WHERE tenant_key IN ('prod', 'live') AND collected_at BETWEEN '2026-06-05 10:21:05+02' AND '2026-06-06 10:21:05+02' ORDER BY tenant_key, fingerprint, collected_at DESC ), deltas AS ( SELECT e.tenant_key, e.fingerprint, e.query, e.collected_at AS last_seen, GREATEST (COALESCE(e.total_time_ms, 0) - COALESCE(s.total_time_ms, fs.total_time_ms, 0), 0) AS total_time_ms, GREATEST (COALESCE(e.calls, 0) - COALESCE(s.calls, fs.calls, 0), 0) AS calls, GREATEST (COALESCE(e.rows_returned, 0) - COALESCE(s.rows_returned, fs.rows_returned, 0), 0) AS rows_returned FROM end_snap e LEFT JOIN start_snap s ON s.tenant_key = e.tenant_key AND s.fingerprint = e.fingerprint LEFT JOIN fallback_start fs ON fs.tenant_key = e.tenant_key AND fs.fingerprint = e.fingerprint AND s.tenant_key IS NULL ) SELECT fingerprint, MAX(query) AS query, MAX(last_seen) AS last_seen, SUM(total_time_ms) AS total_time_ms, SUM(calls) AS calls, SUM(rows_returned) AS rows_returned, CASE WHEN SUM(calls) > 0 THEN SUM(total_time_ms) / SUM(calls) ELSE 0 END AS mean_time_ms, array_agg(DISTINCT tenant_key ORDER BY tenant_key) AS tenant_keys FROM deltas WHERE total_time_ms > 0 OR calls > 0 GROUP BY fingerprint ORDER BY total_time_ms DESC, calls DESC LIMIT '20' OFFSET '0';
Date: 2026-06-06 10:21:08 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
2 2s523ms 2s523ms 2s523ms 1 2s523ms copy public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) to stdout;Times Reported Time consuming queries #2
Day Hour Count Duration Avg duration Jun 06 00 1 2s523ms 2s523ms [ User: postgres - Total duration: 2s523ms - Times executed: 1 ]
[ Application: pg_dump - Total duration: 2s523ms - Times executed: 1 ]
-
COPY public.diary (id, "animalID", date, "entrybyID", "cageID", weight, temperature, "fDeprivation", "wDeprivation", "sDeprivation", "feedingClass", health, comments, "breedingInfo", deleted, "inOutDate", "inOutFlag", text, sdesc, treatment, tailcut_id, tailcut_result, file_name, file_content, file_type, upload_name, old_gene_type, old_gene_info, old_gene2_type, old_gene2_info, old_gene3_info, old_gene3_type, old_gene4_info, old_gene4_type, old_gene5_info, old_gene5_type) TO stdout;
Date: 2026-06-06 23:55:19 Duration: 2s523ms Database: zemm_produktiv_8 User: postgres Remote: [local] Application: pg_dump Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
3 766ms 1s751ms 1s259ms 2 2s518ms 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 fate = ? and alive = ? and deleted = ? and (is_owner or is_editor or is_tourist);Times Reported Time consuming queries #3
Day Hour Count Duration Avg duration Jun 06 20 2 2s518ms 1s259ms [ User: labanimal - Total duration: 2s518ms - Times executed: 2 ]
[ Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 - Total duration: 2s518ms - Times executed: 2 ]
-
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, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) 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 fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-06-06 19:47:38 Duration: 1s751ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
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, 10100189) AS is_owner, user_is_tgm (animals_search_mview.editor, 10100189) AS is_editor, user_is_tgm (animals_search_mview.tourist, 10100189) 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 fate = 5 AND alive = 't' AND deleted = 'f' AND (is_owner OR is_editor OR is_tourist);
Date: 2026-06-06 19:47:41 Duration: 766ms Database: zemm_produktiv_8 User: labanimal Application: _desktop_index.php_zemm_produktiv_8_localhost_5432 Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
4 611ms 6s490ms 1s130ms 1,439 27m7s create index if not exists idx_app_events_tenant on observability.app_events (tenant_key, occurred_at desc);Times Reported Time consuming queries #4
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_tenant ON observability.app_events (tenant_key, occurred_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
5 611ms 6s490ms 1s130ms 1,439 27m7s 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 #5
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_db_top_queries_tenant ON observability.db_top_queries (tenant_key, collected_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
6 611ms 6s490ms 1s130ms 1,439 27m7s create index if not exists idx_uptime_checks_endpoint on observability.uptime_checks (endpoint, checked_at desc);Times Reported Time consuming queries #6
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_endpoint ON observability.uptime_checks (endpoint, checked_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
7 611ms 6s490ms 1s130ms 1,439 27m7s create table if not exists observability.app_events ( id bigserial primary key, tenant_key text not null, event_type text not null, severity text not null, message text not null, payload jsonb, occurred_at timestamptz not null default now(), created_at timestamptz not null default now() );Times Reported Time consuming queries #7
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.app_events ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, event_type text NOT NULL, severity text NOT NULL, message text NOT NULL, payload jsonb, occurred_at timestamptz NOT NULL DEFAULT NOW(), created_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
8 611ms 6s490ms 1s130ms 1,439 27m7s create index if not exists idx_uptime_checks_key on observability.uptime_checks (check_key, checked_at desc);Times Reported Time consuming queries #8
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_uptime_checks_key ON observability.uptime_checks (check_key, checked_at DESC);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
9 611ms 6s490ms 1s130ms 1,439 27m7s create schema if not exists observability;Times Reported Time consuming queries #9
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE SCHEMA IF NOT EXISTS observability;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
10 611ms 6s490ms 1s130ms 1,439 27m7s 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 #10
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.metrics_timeseries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, metric_name text NOT NULL, bucket_start timestamptz NOT NULL, bucket_width_seconds integer NOT NULL DEFAULT 60, sum_value double precision NOT NULL DEFAULT 0, count_value bigint NOT NULL DEFAULT 0, histogram jsonb, created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz NOT NULL DEFAULT NOW(), UNIQUE (tenant_key, metric_name, bucket_start, bucket_width_seconds) );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
11 611ms 6s490ms 1s130ms 1,439 27m7s alter table observability.uptime_checks add column if not exists label text;Times Reported Time consuming queries #11
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS label text;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
12 611ms 6s490ms 1s130ms 1,439 27m7s create index if not exists idx_metrics_timeseries_metric on observability.metrics_timeseries (metric_name);Times Reported Time consuming queries #12
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_metric ON observability.metrics_timeseries (metric_name);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
13 611ms 6s490ms 1s130ms 1,439 27m7s alter table observability.uptime_checks add column if not exists payload jsonb;Times Reported Time consuming queries #13
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
ALTER TABLE observability.uptime_checks ADD COLUMN IF NOT EXISTS payload jsonb;
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
14 611ms 6s490ms 1s130ms 1,439 27m7s create index if not exists idx_app_events_type on observability.app_events (event_type);Times Reported Time consuming queries #14
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_app_events_type ON observability.app_events (event_type);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
15 611ms 6s490ms 1s130ms 1,439 27m7s 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 #15
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.phpfpm_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
16 611ms 6s490ms 1s130ms 1,439 27m7s create table if not exists observability.nginx_counters ( id bigserial primary key, payload jsonb not null, collected_at timestamptz not null default now() );Times Reported Time consuming queries #16
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.nginx_counters ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
17 611ms 6s490ms 1s130ms 1,439 27m7s create index if not exists idx_metrics_timeseries_bucket on observability.metrics_timeseries (bucket_start);Times Reported Time consuming queries #17
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE INDEX IF NOT EXISTS idx_metrics_timeseries_bucket ON observability.metrics_timeseries (bucket_start);
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
18 611ms 6s490ms 1s130ms 1,439 27m7s 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 #18
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.system_metrics ( id bigserial PRIMARY KEY, payload jsonb NOT NULL, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
19 611ms 6s490ms 1s130ms 1,439 27m7s 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 #19
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.uptime_checks ( id bigserial PRIMARY KEY, endpoint text NOT NULL, status text NOT NULL, latency_ms double precision, checked_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_000000.csv
20 611ms 6s490ms 1s130ms 1,439 27m7s 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 #20
Day Hour Count Duration Avg duration Jun 06 01 60 0ms 0ms 02 60 29s556ms 492ms 03 60 1m1s 1s19ms 04 60 1m1s 1s19ms 05 60 1m1s 1s19ms 06 60 1m1s 1s19ms 07 60 1m1s 1s19ms 08 60 1m1s 1s19ms 09 60 1m1s 1s19ms 10 60 1m1s 1s19ms 11 59 1m56s 1s977ms 12 60 2m33s 2s550ms 13 60 2m33s 2s550ms 14 60 2m33s 2s550ms 15 60 1m28s 1s472ms 16 60 55s952ms 932ms 17 60 55s952ms 932ms 18 60 55s952ms 932ms 19 60 55s952ms 932ms 20 60 53s155ms 885ms 21 60 41s965ms 699ms 22 60 41s965ms 699ms 23 60 41s965ms 699ms 00 60 41s614ms 693ms [ User: monitoring_admin - Total duration: 27m7s - Times executed: 1341 ]
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:21:02 Duration: 6s490ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 14:19:01 Duration: 2s550ms Database: zemm_monitoring User: monitoring_admin Bind query: yes Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
-
CREATE TABLE IF NOT EXISTS observability.db_top_queries ( id bigserial PRIMARY KEY, tenant_key text NOT NULL, fingerprint text, query text, mean_time_ms double precision, total_time_ms double precision, calls bigint, rows_returned bigint, collected_at timestamptz NOT NULL DEFAULT NOW() );
Date: 2026-06-06 10:12:01 Duration: 1s19ms Database: zemm_monitoring User: monitoring_admin Log file: /var/log/postgresql/postgresql-2026-06-06_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
- 94,127 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
- 2 EVENTLOG entries
Most Frequent Errors/Events
Key values
- 1 Max number of times the same event was reported
- 2 Total events found
Rank Times reported Error 1 1 ERROR: duplicate key value violates unique constraint "..."
Times Reported Most Frequent Error / Event #1
Day Hour Count Jun 06 12 1 - ERROR: duplicate key value violates unique constraint "metrics_timeseries_tenant_key_metric_name_bucket_start_buck_key"
Detail: Key (tenant_key, metric_name, bucket_start, bucket_width_seconds)=(live, http_requests_total, 2026-06-06 11:17:00+02, 60) already exists.
Statement: INSERT INTO observability.metrics_timeseries (tenant_key, metric_name, bucket_start, bucket_width_seconds, sum_value, count_value, histogram) VALUES ($1, $2, $3, $4, $5, $6, $7)Date: 2026-06-06 11:17:00 Database: zemm_monitoring Application: User: labanimal Remote: Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv
2 1 LOG: database system was shut down at ...
Times Reported Most Frequent Error / Event #2
Day Hour Count Jun 06 11 1 - LOG: database system was shut down at 2026-06-06 10:12:22 CEST
Date: 2026-06-06 10:13:49 Log file: /var/log/postgresql/postgresql-2026-06-06_101349.csv