aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-11-17 16:17:07 -0600
committerJP Dillingham <jp@dillingham.me>2024-11-17 16:17:07 -0600
commitf769362146496925aaa8cf4f99d603a3a86a7b96 (patch)
treeeaa9a0056190f823310295a11745e6d473bfd30a /src
parent921082b882fdb2007098f1887b61ba0cc7f4a381 (diff)
downloadslskd-f769362146496925aaa8cf4f99d603a3a86a7b96.tar.gz
add note about metrics
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Program.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 6fe907ea..b302cc8c 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -949,6 +949,10 @@ namespace slskd
endpoints.MapGet(url, async context =>
{
+ // at the time of writing, the prometheus library doesn't include a way to add authentication
+ // to the UseMetricServer() middleware. this is most likely a consequence of me mixing
+ // and matching minimal API stuff with controllers. if i ever straighten that out,
+ // this should be revisited.
if (!options.Authentication.Disabled)
{
var auth = context.Request.Headers["Authorization"].FirstOrDefault();