diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-01-18 08:44:56 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-01-18 08:44:56 -0600 |
| commit | 514b574c1a04c85b697864a44b4f30f474f9dbe1 (patch) | |
| tree | 1bfcb64e706757b5a6023372a185a8c0f2febe02 /src/slskd | |
| parent | 5c3eaf9f2f815189e2e6a001895b7627a101d1e9 (diff) | |
| download | slskd-514b574c1a04c85b697864a44b4f30f474f9dbe1.tar.gz | |
add metrics server and http metric capture
Diffstat (limited to 'src/slskd')
| -rw-r--r-- | src/slskd/Startup.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/slskd/Startup.cs b/src/slskd/Startup.cs index 61993997..5e43a196 100644 --- a/src/slskd/Startup.cs +++ b/src/slskd/Startup.cs @@ -30,6 +30,7 @@ using Serilog; using Serilog.Events; using Microsoft.Extensions.Logging; + using Prometheus; public class Startup { @@ -197,6 +198,7 @@ app.UseSerilogRequestLogging(); app.UseRouting(); + app.UseHttpMetrics(); app.UsePathBase(BasePath); // remove any errant double forward slashes which may have been introduced @@ -227,6 +229,7 @@ app.UseEndpoints(endpoints => { endpoints.MapControllers(); + endpoints.MapMetrics(); }); if (EnableSwagger) |
