Skip to content
tezvyn:

All bites

The whole library, newest first. Filter by what you are here for, or pick a topic if you already know.

8664 bites

Page 26

Monitoring & SRE1 min read

Writing SLIs in PromQL

Availability is good requests over total using rate and non-5xx counters; latency uses histogram_quantile over rate of buckets summed by le.

Monitoring & SRE1 min read

Scaling Prometheus for HA and volume

Shard scraping, add long-term object storage and global query via Thanos/Cortex/VictoriaMetrics, run redundant replicas for HA, with dedupe.

Monitoring & SRE1 min read

Designing a cache health dashboard

Hit ratio, latency, memory and evictions, connections and saturation, with stat panels for current state and time-series for trends.

Monitoring & SRE1 min read

Correlating logs, metrics, and traces

Propagate a trace and span ID through context, stamp it on logs and metric exemplars, then pivot metric to trace to logs.

Monitoring & SRE1 min read

Prometheus histogram versus summary

Histograms expose bucket counts and let you compute aggregatable quantiles at query time; summaries compute fixed quantiles per instance that cannot be combined.

Monitoring & SRE1 min read

High cardinality in time-series databases

Each combination is a separate series consuming memory and index; manage by avoiding unbounded labels and bucketing values.

Monitoring & SRE1 min read

Core components of Prometheus

Server scrapes targets found via service discovery, stores samples in a local time-series database, with Alertmanager and exporters as helpers.

Monitoring & SRE1 min read

Histograms versus summaries for latency

Histograms store bucket counts and stay aggregatable with query-time approximate quantiles; summaries precompute quantiles per instance that cannot be averaged.

Monitoring & SRE1 min read

When to add custom OpenTelemetry instrumentation

Wrap domain logic in custom spans, attach business attributes like tenant or plan, answer revenue and per-customer questions.

Monitoring & SRE2 min read

Redesigning a high-cardinality request metric

Cardinality is unique label combinations; user_id and raw path are unbounded; redesign by dropping user_id and templating the path.

Monitoring & SRE2 min read

Trace context and propagation across services

Trace context bundles trace ID, span ID, and flags; propagated via headers like W3C traceparent so each service extracts and continues the trace.

Monitoring & SRE2 min read

OpenTelemetry API, SDK, and Collector

API defines vendor-neutral instrumentation, SDK implements and exports it, Collector receives, processes, and routes telemetry to backends.

Monitoring & SRE2 min read

Essential tags for a request latency metric

Add method, route template, status code, and maybe service or region; they enable slicing while staying low-cardinality.

Monitoring & SRE1 min read

Structured vs unstructured logging

Unstructured logs are free-text lines; structured logs are machine-readable key-value or JSON, enabling reliable parsing, filtering, and aggregation.

Monitoring & SRE2 min read

The three pillars of observability

Metrics show what and when via cheap aggregates, logs give detailed per-event context, traces show where across services.

Monitoring & SRE2 min read

Fixing watermelon SLOs that hide unhappy users

Green-outside, red-inside SLOs come from server-side measurement, coarse aggregation, wrong events, and lax thresholds; fix by measuring at the client and using meaningful SLIs.

Monitoring & SRE2 min read

Launching a risky feature with no error budget left

Bring burn history, what consumed the budget, blast radius, and rollback safety; offer mitigations like flags and canaries.

Monitoring & SRE2 min read

Setting SLOs across a dependency chain

Serial dependencies multiply, so each backend needs a tighter SLO than the target; mitigate with redundancy, caching, and graceful degradation.

Monitoring & SRE2 min read

Handling planned maintenance in SLOs and error budgets

Either charge maintenance to the error budget or formally exclude it via a maintenance window; each trades honesty against fairness.

Monitoring & SRE2 min read

Defining SLOs for a new critical service

Start from user journeys, pick SLIs, involve product, engineering, and business stakeholders, set realistic targets iteratively.