feat: replace App.Metrics with prometheus-net
This commit is contained in:
parent
df8af75dd4
commit
be01fb1d53
8 changed files with 113 additions and 137 deletions
|
|
@ -13,6 +13,9 @@ public class Config
|
|||
{
|
||||
public LogEventLevel LogEventLevel { get; init; } = LogEventLevel.Debug;
|
||||
public bool LogQueries { get; init; } = false;
|
||||
|
||||
public int MetricsPort { get; init; } = 5001;
|
||||
public bool EnableMetrics { get; init; } = true;
|
||||
}
|
||||
|
||||
public class DatabaseConfig
|
||||
|
|
@ -37,9 +40,7 @@ public class Config
|
|||
{
|
||||
public string Host { get; init; } = "localhost";
|
||||
public int Port { get; init; } = 5000;
|
||||
public int? MetricsPort { get; init; }
|
||||
public string BaseUrl { get; init; } = null!;
|
||||
public string Address => $"http://{Host}:{Port}";
|
||||
public string MetricsAddress => $"http://{Host}:{MetricsPort ?? Port}";
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue