diff --git a/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj b/DysonNetwork.Sphere/DysonNetwork.Sphere.csproj index 0bccae7..b8da08a 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 e1d3606..9854f8f 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 0143c1d..b94e166 100644 --- a/DysonNetwork.sln.DotSettings.user +++ b/DysonNetwork.sln.DotSettings.user @@ -13,6 +13,7 @@ ForceIncluded ForceIncluded ForceIncluded + ForceIncluded ForceIncluded ForceIncluded ForceIncluded