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/grafana-cloud/send-data/metrics/metrics-prometheus/prometheus-config-examples.md, or by sending Accept: text/markdown to https://grafana.com/docs/grafana-cloud/send-data/metrics/metrics-prometheus/prometheus-config-examples/. 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.
Prometheus metrics configuration examples
Many open source projects provide Prometheus exporters so that you can scrape metrics from your application at any given point in time. Typically, the Prometheus metrics collector configuration file specifies how frequently to collect your metrics, known as the scrape_config, plus the remote endpoint and authentication parameters for reliably storing the metrics, available under remote_write. The Prometheus configuration file is customarily named prometheus.yml.
To get scalable Prometheus metrics storage, push scraped samples to compatible remote storage endpoints. Popular methods for pushing metrics to Grafana Cloud include: agentless Metrics Endpoint scrape Jobs, Grafana Alloy scrape Jobs, or Prometheus remote write.
Integration methods
For detailed instructions on setting up metrics collection, refer to the integration guide.
Get started
- Choose your project category from the list.
- Find your project within the category.
- Review the integration methods in the integration guide.
- Set up your Grafana Cloud account if you don’t have one.
Need a Grafana Cloud account? Create an account for free.
Was this page helpful?
Related resources from Grafana Labs


