dotnet add package OpenTelemetry.Exporter.Prometheus
You can configure the PrometheusExporter
by following the directions below:
Url
: The url to listen to. Typically it ends with/metrics
likehttp://localhost:9184/metrics/
.
See
TestPrometheusExporter.cs
for example use.