Section 2 · Send metrics

How Prometheus remote write sends scraped samples to Grafana Cloud Metrics

Estimated time: 1 min

Prometheus remote write

Prometheus remote_write forwards scraped samples to a remote storage endpoint. To store those samples in Grafana Cloud Metrics, add a remote_write block to your Prometheus configuration with your Grafana Cloud Metrics endpoint and credentials.

Prometheus remote write sends scraped samples to Grafana Cloud Metrics

Considerations

  • You add a remote_write block to the Prometheus configuration.
  • Grafana Cloud Metrics does not accept Prometheus’s separate push gateway. It receives samples through remote_write.
  • You get the /api/prom/push URL, username, and password from the Hosted Prometheus metrics page under Connections in your stack, which also creates the token for you. The same values are on the Prometheus card in the Cloud Portal.

Path

Configure Prometheus remote write step by step.

Learning path

Send metrics using Prometheus remote write

Welcome to the Grafana learning path that provides the best practice for configuring Prometheus remote write to send metrics to Grafana Cloud.

10 min
Beginner
Docs & blog posts

Open in Grafana Cloud

Complete this learning path directly in your Grafana Cloud stack with an interactive learning experience.