You've already forked imgproxy
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user