File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
src/OpenTelemetry.Exporter.Prometheus Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
## Unreleased
4
4
5
+ * Update default ` httpListenerPrefixes ` for PrometheusExporter to be ` http://localhost:9464/ ` .
6
+ ([ 2783] ( https://github.com/open-telemetry/opentelemetry-dotnet/pull/2783 ) )
7
+
5
8
## 1.2.0-rc1
6
9
7
10
Released 2021-Nov-29
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public class PrometheusExporterOptions
29
29
internal Func < DateTimeOffset > GetUtcNowDateTimeOffset = ( ) => DateTimeOffset . UtcNow ;
30
30
31
31
private int scrapeResponseCacheDurationMilliseconds = 10 * 1000 ;
32
- private IReadOnlyCollection < string > httpListenerPrefixes = new string [ ] { "http://*:80 /" } ;
32
+ private IReadOnlyCollection < string > httpListenerPrefixes = new string [ ] { "http://localhost:9464 /" } ;
33
33
34
34
#if NETCOREAPP3_1_OR_GREATER
35
35
/// <summary>
@@ -47,7 +47,7 @@ public class PrometheusExporterOptions
47
47
48
48
/// <summary>
49
49
/// Gets or sets the prefixes to use for the http listener. Default
50
- /// value: http://*:80 /.
50
+ /// value: http://localhost:9464 /.
51
51
/// </summary>
52
52
public IReadOnlyCollection < string > HttpListenerPrefixes
53
53
{
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ properties:
83
83
84
84
* `HttpListenerPrefixes `: Defines the prefixes which will be used by the
85
85
listener when `StartHttpListener ` is `true `. The default value is
86
- `["http :// *:80 /"]`. You may specify multiple endpoints.
86
+ `["http :// localhost:9464 /"]`. You may specify multiple endpoints.
87
87
88
88
For details see :
89
89
[HttpListenerPrefixCollection .Add (String )](https :// docs.microsoft.com/dotnet/api/system.net.httplistenerprefixcollection.add)
You can’t perform that action at this time.
0 commit comments