To send your metric data to Prometheus, you can either:
- Enable Prometheus' OTLP Receiver and use the OTLP exporter (best practice), or
- Use the Prometheus exporter, a
MetricReaderthat starts an HTTP server that collects metrics and serializes to Prometheus text format on request.
To run a Prometheus server backend and begin scraping metrics, see the Prometheus getting started guide.
To enable the OTLP Receiver, see the Prometheus guide for enabling the OTLP Receiver.