1
0
mirror of https://github.com/imgproxy/imgproxy.git synced 2025-11-27 22:48:53 +02:00

Additional metrics for Datadog

This commit is contained in:
DarthSim
2022-07-07 14:17:27 +06:00
parent c4165c460a
commit c4801761db
10 changed files with 140 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ import (
"github.com/imgproxy/imgproxy/v3/ierrors"
"github.com/imgproxy/imgproxy/v3/imagedata"
"github.com/imgproxy/imgproxy/v3/imagetype"
"github.com/imgproxy/imgproxy/v3/metrics/datadog"
"github.com/imgproxy/imgproxy/v3/metrics/prometheus"
)
@@ -95,6 +96,10 @@ func Init() error {
GetAllocs,
)
datadog.AddGaugeFunc("vips.memory", GetMem)
datadog.AddGaugeFunc("vips.max_memory", GetMemHighwater)
datadog.AddGaugeFunc("vips.allocs", GetAllocs)
return nil
}