diff --git a/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj b/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj index 0bccae70..b8da08ad 100644 --- a/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj +++ b/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj @@ -50,6 +50,10 @@ + + + + diff --git a/DysonNetwork.Sphere/Program.cs b/DysonNetwork.Sphere/Program.cs index e1d36069..9854f8f4 100644 --- a/DysonNetwork.Sphere/Program.cs +++ b/DysonNetwork.Sphere/Program.cs @@ -30,6 +30,8 @@ using Microsoft.OpenApi.Models; using NodaTime; using NodaTime.Serialization.SystemTextJson; using Prometheus; +using Prometheus.DotNetRuntime; +using Prometheus.SystemMetrics; using Quartz; using StackExchange.Redis; using tusdotnet; @@ -51,6 +53,10 @@ builder.WebHost.ConfigureKestrel(options => builder.Services.UseHttpClientMetrics(); builder.Services.AddHealthChecks(); +builder.Services.AddSystemMetrics(); +builder.Services.AddPrometheusEntityFrameworkMetrics(); +builder.Services.AddPrometheusAspNetCoreMetrics(); +builder.Services.AddPrometheusHttpClientMetrics(); // Add services to the container. diff --git a/DysonNetwork.sln.DotSettings.user b/DysonNetwork.sln.DotSettings.user index 0143c1df..b94e1663 100644 --- a/DysonNetwork.sln.DotSettings.user +++ b/DysonNetwork.sln.DotSettings.user @@ -13,6 +13,7 @@ ForceIncluded ForceIncluded ForceIncluded + ForceIncluded ForceIncluded ForceIncluded ForceIncluded