Documentation for automated readers
A curated documentation index is available at: https://grafana.com/llms.txt
A complete documentation index is available at: https://grafana.com/llms-full.txt
These indexes can help with page discovery before fetching individual documents.
This page is also available in Markdown, which may be easier for automated readers and AI tools to parse than HTML. The Markdown version is available at https://grafana.com/docs/alloy/latest/scenarios/metrics.md, or by sending Accept: text/markdown to https://grafana.com/docs/alloy/latest/scenarios/metrics/. For broader documentation discovery, the curated index is available at https://grafana.com/llms.txt and the complete index is available at https://grafana.com/llms-full.txt.
Menu
Open source
Last reviewed: November 17, 2026Metrics scenarios
The metrics scenarios collect metrics and forward them to a Prometheus-compatible backend.
| Scenario | Description |
|---|---|
| Blackbox probing | Monitor endpoint availability and response times with synthetic HTTP probes. |
| Datadog receiver migration | Ingest Datadog Agent metrics and traces with otelcol.receiver.datadog and forward them to Prometheus and Tempo. |
| DNS service discovery | Discover and scrape two Prometheus targets from DNS SRV records with discovery.dns. |
| Prometheus Operator Probes | Scrape Prometheus Operator Probe resources with Alloy as the blackbox prober (/probe path). |
| Metric cardinality control | Compare original Prometheus metrics with a cardinality-controlled prometheus.relabel path that drops noisy series and volatile labels and normalizes dynamic routes. |
| OpenTelemetry SDK metrics across languages | Instrument five languages with the OpenTelemetry metrics SDK and push them through Alloy to Prometheus. |
| Prometheus client metrics across languages | Expose /metrics with native Prometheus client libraries in five languages and scrape them with Alloy. The pull-model counterpart to the OpenTelemetry SDK scenario. |
| Prometheus Pushgateway | Scrape metrics retained for short-lived batch jobs by Prometheus Pushgateway and remote-write them through Alloy. |
| OTel metrics pipeline | Forward OpenTelemetry metrics from applications through Alloy. Alloy batches and transforms samples before it sends them to Prometheus. |
| StatsD metrics | Receive legacy StatsD counter, gauge, and timer packets in Alloy and remote-write mapped Prometheus metrics. |
Refer to the alloy-scenarios repository for the full list of scenarios.
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video

How to get started with OpenTelemetry and Grafana
OpenTelemetry delivers vendor-agnostic telemetry. Grafana turns that data into outcomes — not just dashboards — using AI-assisted workflows in Grafana Assistant.
Video

Mastering OpenTelemetry instrumentation and Grafana
A practical guide to code-based OpenTelemetry instrumentation with Grafana — demonstrates advanced techniques for adding custom spans, metrics, and attributes to capture application context that zero-code instrumentation cannot always reveal.
Video

What's new in Grafana Alloy's OpenTelemetry engine
Grafana Labs engineers introduce Alloy's new OpenTelemetry Engine. Learn how to configure Alloy using standard OpenTelemetry Collector YAML and enable native OpenTelemetry pipelines integrated with Grafana.
Choose a product
Viewing: v1.22 (latest)
Find another version
Scroll for more