feat: add actual metrics using prometheus-net

This commit is contained in:
sam 2024-09-03 17:00:14 +02:00
parent 4a6b5f3b85
commit 54ec469cd9
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
9 changed files with 134 additions and 56 deletions

View file

@ -20,7 +20,11 @@ SentryTracing = true
SentryTracesSampleRate = 1.0
; Whether to log SQL queries. Note that this is very verbose. Defaults to false.
LogQueries = false
; The port the /metrics endpoint will listen on. If not set, metrics will be disabled.
; Whether metrics are enabled. If this is set to true, Foxnouns.NET will rely on Prometheus scraping metrics to update stats.
; If set to false, a background service will be used instead. Does not actually disable the /metrics endpoint.
; Defaults to false.
EnableMetrics = true
; The port the /metrics endpoint will listen on. Defaults to 5001.
MetricsPort = 5001
[Database]