Skip to main content
Cloud / DevOpsObservability & ReliabilityDiagramIntermediate

Prometheus Metrics

KO: 프로메테우스 메트릭·EN: Prometheus Metrics·JA: Prometheusメトリクス

A cloud-native time-series monitoring model that scrapes HTTP /metrics endpoints on a pull schedule, stores labeled metrics in a TSDB, and powers PromQL dashboards, alerts, and autoscaling

Table of Contents

Structure Diagram

Prometheus Pull Scrape, TSDB Storage & Alerting Loop
TSDBExpose /metr…Pull ScrapeTSDB & PromQLAlert & Scale
2/4Pull Scrape
Scrape targets every 15s
Quick Answer

What is Prometheus Metrics?

A cloud-native time-series monitoring model that scrapes HTTP /metrics endpoints on a pull schedule, stores labeled metrics in a TSDB, and powers PromQL dashboards, alerts, and autoscaling. It is a core concept in Observability & Reliability within Cloud / DevOps.

Core Principles

Prometheus is the CNCF standard for cloud-native time-series monitoring. Rather than requiring apps to push metrics, Prometheus discovers targets dynamically (e.g., via Kubernetes) and periodically pulls (scrapes) their /metrics HTTP endpoints into a local time-series database (TSDB).

Instrumentation centers on four metric types: Counter (monotonically increasing counts like requests/errors), Gauge (point-in-time values like memory or active connections), Histogram (bucketed distributions for computing fleet-wide p95/p99 latencies), and Summary. Queries and alerts are authored in PromQL.

Practical Takeaways

  • Avoid high-cardinality labels: Never attach unbounded values like user_id, order_id, or raw URLs as metric labels. Each unique label combination creates a new time series, rapidly exhausting TSDB memory. Stick to bounded labels (method, status, route).
  • Standardize on RED and USE dashboards: Track RED (Rate, Errors, Duration) for services and USE (Utilization, Saturation, Errors) for infrastructure resources.
  • Scale long-term storage with remote write: Pair Prometheus with Thanos, Grafana Mimir, or VictoriaMetrics when you need global multi-cluster queries and multi-year retention.

Notable Examples

  • kube-prometheus-stack: Industry-standard Kubernetes observability bundle combining Prometheus, Alertmanager, and Grafana.
  • KEDA / Custom HPA Scaling: Scales pods directly from PromQL business metrics such as queue depth or active jobs.
  • Automated Canary Gates: Argo Rollouts queries PromQL error rates and p99 latency to promote or abort releases automatically.