Guance Learn

Observability questions

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

Illustration of Git branches and version history
Technical guide

Abort a Git merge after conflicts

Stop an unfinished merge, understand the limits of restoring earlier local changes, and choose a separate recovery path for an already committed merge.

Read environment variables in Python illustration
Explainer

Read environment variables in Python

Read required and optional environment variables, convert configuration values, and load a .env file during local development.

Get the index and value in a Python for loop illustration
Explainer

Get the index and value in a Python for loop

Use enumerate to iterate with a counter, set the starting number, and combine it with zip or dictionary items.

Illustration of an event loop and asynchronous tasks
Technical guide

Read POST form fields in Express

Parse URL-encoded forms or JSON before the route, validate req.body, and use separate middleware for multipart uploads.

Illustration of monitoring and troubleshooting application behavior
Explainer

Find and read Redis server logs

Locate the Redis server log from its active configuration, follow file or container output, and distinguish server logs from the in-memory slow log.

Monitoring and troubleshooting illustration
Explainer

Add a numeric range filter to a Kibana dashboard

Filter dashboard data with KQL, the filter editor, or a Query DSL range clause, and verify that the field has a numeric mapping.

Illustration of metrics, monitoring, and technical investigation
Explainer

Add custom HTTP headers to Prometheus scrapes

Configure scrape authentication or custom headers, check version support, and keep credentials out of source-controlled configuration.

Illustration of Git branches and version history
Technical guide

Add an empty directory to a Git repository

Keep a directory in a Git checkout with a placeholder file, or create it during setup. Use ignore rules that allow the placeholder to remain tracked.

Illustration of metrics, monitoring, and technical investigation
Explainer

Scrape an HTTPS target with Prometheus

Set scheme and TLS trust separately from the target address, then diagnose hostname, certificate, and protocol failures.

Add keys to a Python dictionary illustration
Explainer

Add keys to a Python dictionary

Insert or replace dictionary entries with assignment, merge values with update, and set a default only when a key is missing.

Illustration of log monitoring and analysis
Explainer

Add the input filename to a Logstash event

Extract a filename from the file input path, account for ECS field names, and route events with a validated index prefix.

Illustration of files, modules, and dependencies
Technical guide

Append data to a file in Node.js

Append with callback, promise, synchronous, or stream APIs, and preserve write ordering and backpressure when records matter.