mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
Add storage metrics (#554)
* Add cache storage metrics - autocache client metrics - autocache server metrics - boltdb metrics - redis client metrics - refactor metrics registry to be general purpose
This commit is contained in:
parent
acfc880421
commit
cc504362e4
8 changed files with 400 additions and 108 deletions
|
@ -9,7 +9,9 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/go-redis/redis/v7"
|
||||
|
||||
"github.com/pomerium/pomerium/internal/kv"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/metrics"
|
||||
)
|
||||
|
||||
var _ kv.Store = &Store{}
|
||||
|
@ -56,6 +58,7 @@ func New(o *Options) (*Store, error) {
|
|||
return nil, fmt.Errorf("kv/redis: error connecting to redis: %w", err)
|
||||
}
|
||||
|
||||
metrics.AddRedisMetrics(db.PoolStats)
|
||||
return &Store{db: db}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue