mirror of
https://github.com/Caraxi/mare.server.git
synced 2026-01-02 21:33:40 +01:00
adjust metrics
This commit is contained in:
parent
5c9b15545c
commit
90ccfe4162
5 changed files with 39 additions and 47 deletions
|
|
@ -24,6 +24,7 @@ using System.Net.Http;
|
|||
using MareSynchronosServer.Utils;
|
||||
using MareSynchronosServer.RequirementHandlers;
|
||||
using MareSynchronosShared.Services;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace MareSynchronosServer;
|
||||
|
||||
|
|
@ -71,7 +72,7 @@ public class Startup
|
|||
RetryPolicy = null
|
||||
};
|
||||
|
||||
services.AddSingleton(new MareMetrics(new List<string>
|
||||
services.AddSingleton<MareMetrics>(m => new MareMetrics(m.GetService<ILogger<MareMetrics>>(), new List<string>
|
||||
{
|
||||
MetricsAPI.CounterInitializedConnections,
|
||||
MetricsAPI.CounterUserPushData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue