Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Illustration of monitoring and troubleshooting application behavior
Explainer

Record slow operations and query profiles in MongoDB

Configure MongoDB slow-operation logging and database profiling, then inspect system.profile without confusing it with the diagnostic log.

Illustration of monitoring and troubleshooting application behavior
Explainer

Log slow queries or all statements in MySQL

Enable MySQL slow-query logging, understand session thresholds, and use the general query log for bounded investigations.

Illustration of monitoring and troubleshooting application behavior
Explainer

Log slow queries or all statements in PostgreSQL

Choose PostgreSQL statement logging and duration thresholds, reload the right settings, and add enough context to investigate slow queries.

Illustration of monitoring and troubleshooting application behavior
Explainer

Inspect slow commands and live command traffic in Redis

Configure the Redis in-memory slow log in microseconds, inspect recent entries, and use MONITOR with clear limits on overhead and coverage.

Illustration of monitoring and troubleshooting application behavior
Explainer

Write JSON logs in Laravel

Configure a Laravel daily log channel with Monolog JSON formatting, preserve exception traces explicitly, and validate one event per line before collection.

Illustration of monitoring and troubleshooting application behavior
Explainer

Enable PostgreSQL query logging

Configure PostgreSQL SQL logging, distinguish reloadable settings from collector startup settings, and choose a narrower slow-query capture when appropriate.

Illustration of application modules working together
Technical guide

Populate a Laravel database with seeders

Create Laravel seeders, compose model factories, and make database initialization repeatable while keeping destructive test resets isolated.

Illustration of Linux system logging
Explainer

Find recent queries in MySQL

Inspect retained Performance Schema statement history or enable a short general-log capture, with correct ordering and logging scope.

Illustration of application modules working together
Technical guide

Laravel factories and seeders: what each one does

Use factories to define model data and seeders to organize database population, with clear boundaries for test records and production reference data.

Illustration of Linux system logging
Explainer

Fix MySQL “No space left on device” errors

Find the filesystem behind MySQL error 28, recover space without deleting database files, and address logs, temporary files, or growing tablespaces.

Illustration of Linux system logging
Explainer

Where are PostgreSQL log files stored?

Locate PostgreSQL logs using active settings and pg_current_logfile, then distinguish collector files from service-manager and container output.

Illustration of Linux system logging
Explainer

Enable the MySQL general query log

Capture client SQL in a MySQL table or file, preserve existing logging settings, and switch off a diagnostic capture when it is no longer needed.