mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
identity: record metric for last refresh (#1936)
This commit is contained in:
parent
218acc001b
commit
138df5ae24
2 changed files with 27 additions and 1 deletions
|
@ -20,6 +20,7 @@ import (
|
|||
"github.com/pomerium/pomerium/internal/identity/identity"
|
||||
"github.com/pomerium/pomerium/internal/log"
|
||||
"github.com/pomerium/pomerium/internal/scheduler"
|
||||
"github.com/pomerium/pomerium/internal/telemetry/metrics"
|
||||
"github.com/pomerium/pomerium/pkg/grpc/databroker"
|
||||
"github.com/pomerium/pomerium/pkg/grpc/session"
|
||||
"github.com/pomerium/pomerium/pkg/grpc/user"
|
||||
|
@ -213,6 +214,8 @@ func (mgr *Manager) refreshDirectoryUserGroups(ctx context.Context) {
|
|||
|
||||
mgr.mergeGroups(ctx, directoryGroups)
|
||||
mgr.mergeUsers(ctx, directoryUsers)
|
||||
|
||||
metrics.RecordIdentityManagerLastRefresh()
|
||||
}
|
||||
|
||||
func (mgr *Manager) mergeGroups(ctx context.Context, directoryGroups []*directory.Group) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue