Prometheus: Fix "GET /api/v1/metrics" API endpoint #213 #3730 #3943

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2024-01-29 14:18:17 +01:00
parent affff063cb
commit 2243f92fd6

View file

@ -29,7 +29,7 @@ func GetMetrics(router *gin.RouterGroup) {
} }
conf := get.Config() conf := get.Config()
counts := conf.ClientPublic().Count counts := conf.ClientUser(false).Count
c.Stream(func(w io.Writer) bool { c.Stream(func(w io.Writer) bool {
reg := prometheus.NewRegistry() reg := prometheus.NewRegistry()