localhost:9090 and collects node-level metrics from exporters running on Kubernetes nodes.
But what exactly does Prometheus receive when it scrapes a target? What does that HTTP response look like?
Every scrape target exposes an HTTP endpoint—commonly /metrics. When Prometheus performs an HTTP GET against that path, the target returns a plain-text payload in the OpenMetrics format. This format is simple, human-readable, and intentionally not JSON or YAML.
Here is a compact OpenMetrics response example:
Prometheus parses the OpenMetrics payload on every scrape and stores the resulting time series in its TSDB.
OpenMetrics (the plain-text format shown above) is the expected format for endpoints that Prometheus scrapes. Many Kubernetes components (for example the kubelet and kube-apiserver) and many exporters expose metrics in exactly this format to be compatible with Prometheus.

scrape_configs section in prometheus.yml may look like this:
Be careful exposing
/metrics endpoints publicly. Metrics can contain sensitive metadata (hostnames, labels) and may become high-volume endpoints. Use network policies, authentication, or internal-only endpoints for production workloads.- Read the Prometheus documentation for scrape configuration and relabeling rules.
- Explore PromQL to query and aggregate the time series Prometheus stores from these OpenMetrics responses.