You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-11-29 23:07:40 +02:00
Add CloudWatch metrics
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/cloudwatch"
|
||||
"github.com/imgproxy/imgproxy/v3/metrics/datadog"
|
||||
"github.com/imgproxy/imgproxy/v3/metrics/newrelic"
|
||||
"github.com/imgproxy/imgproxy/v3/metrics/otel"
|
||||
@@ -125,6 +126,10 @@ func Init() error {
|
||||
GetAllocs,
|
||||
)
|
||||
|
||||
cloudwatch.AddGaugeFunc("VipsMemory", "Bytes", GetMem)
|
||||
cloudwatch.AddGaugeFunc("VipsMaxMemory", "Bytes", GetMemHighwater)
|
||||
cloudwatch.AddGaugeFunc("VipsAllocs", "Count", GetAllocs)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user