Skip to content

Commit 3fa1da3

Browse files
committed
fix url
1 parent c0ce903 commit 3fa1da3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Prometheus.Client.MetricServer/Consts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
internal static class Consts
44
{
55
public const string DefaultHost = "*";
6-
public const string DefaultUrl = "/metrics";
6+
public const string DefaultUrl = "metrics";
77
}
88
}

src/Prometheus.Client.MetricServer/MetricServer.Kestrel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public MetricServer(string host, int port, string url, IEnumerable<IOnDemandColl
7575
_certificate = certificate;
7676
_port = port;
7777
_hostName = host;
78-
_url = url;
78+
_url = "/" + url;
7979
}
8080

8181
/// <inheritdoc />

0 commit comments

Comments
 (0)