diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-11-17 16:17:07 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2024-11-17 16:17:07 -0600 |
| commit | f769362146496925aaa8cf4f99d603a3a86a7b96 (patch) | |
| tree | eaa9a0056190f823310295a11745e6d473bfd30a /src/slskd/Program.cs | |
| parent | 921082b882fdb2007098f1887b61ba0cc7f4a381 (diff) | |
| download | slskd-f769362146496925aaa8cf4f99d603a3a86a7b96.tar.gz | |
add note about metrics
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 4 |
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(); |
