Read logs, metrics and traces; query service behavior and reason about alerts and missing evidence.
Scope and conventions
PromQL uses classic counter/gauge/histogram series; Loki examples use LogQL log pipelines. Metric names and log fields are an explicit example schema, not automatic SDK output. Queries need data with that schema. Native language logging and HTTP recipes remain in Programming languages.
Metrics summarize measurements over dimensions and time; logs record events; traces connect operations across a request path. Correlate them without assuming that each signal contains every request.
Protocol / decision sketch
Sequence or decision sketch; not executable code.
Telemetry & queries · Choose the signal for the question
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
trend or rate → metricsindividual event → logsrequest path and nested duration → traces
A counter accumulates and can reset; a gauge can rise or fall. A histogram records a distribution, while a summary can expose client-calculated quantiles. Choose queries according to the exported type.
Protocol / decision sketch
Example instrumentation schema. *_bucket, *_sum and *_count are distinct classic histogram series.
Telemetry & queries · Distinguish counters, gauges and distributions
Follow appearance
✓GitHub Light
GitHub Dark
Rosé Pine
Catppuccin Mocha
VS Code Dark+
api_requests_total counterapi_inflight_requests gaugeapi_request_duration_seconds_* classic histogram family
Every unique metric-name/label-set combination identifies a time series. Prefer normalized routes and bounded status classes; user IDs, request IDs and raw URLs can create unbounded cardinality.