Prometheus Metrics Exporter Example

This example shows how to export metrics to Prometheus.

The source files of this example are available here.

Installation

pip install opentelemetry-api
pip install opentelemetry-sdk
pip install opentelemetry-ext-prometheus

Run the Example

python prometheus.py

The metrics are available at http://localhost:8000/.