Skip to content

Commit

Permalink
Link to .NET docs about different ports
Browse files Browse the repository at this point in the history
Document the solution described in #3608 with a link to .NET documentation how to do this, because it seems a best practice to expose the Prometheus scraping endpoint on a different port.

Signed-off-by: Aristotelos <arisvd@gmail.com>
  • Loading branch information
aristotelos committed Oct 17, 2022
1 parent 7fd3783 commit 1869869
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/OpenTelemetry.Exporter.Prometheus.AspNetCore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ dotnet add package --prerelease OpenTelemetry.Exporter.Prometheus.AspNetCore
&& context.Connection.LocalPort == 5067);
```

This can be used in combination with
[configuring multiple ports on the ASP.NET application](https://learn.microsoft.com/aspnet/core/fundamentals/servers/kestrel/endpoints)
to expose the scraping endpoint on a different port.

## Configuration

The `PrometheusExporter` can be configured using the `PrometheusExporterOptions`
Expand Down

0 comments on commit 1869869

Please sign in to comment.