Skip to content

Commit

Permalink
[identitygc] Pass shared EnableMetrics into GC
Browse files Browse the repository at this point in the history
Pass through the SharedCfg EnableMetrics into the GC struct so that
`--enable-metrics` properly enables all identity GC metrics.

Signed-off-by: Jared Ledvina <jared.ledvina@datadoghq.com>
  • Loading branch information
jaredledvina authored and julianwiedmann committed May 13, 2024
1 parent 691ea3f commit a2a1e5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operator/identitygc/gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func registerGC(p params) {
identity: p.Identity,
authIdentityClient: p.AuthIdentityClient,
allocationMode: p.SharedCfg.IdentityAllocationMode,
enableMetrics: p.SharedCfg.EnableMetrics,
gcInterval: p.Cfg.Interval,
heartbeatTimeout: p.Cfg.HeartbeatTimeout,
gcRateInterval: p.Cfg.RateInterval,
Expand Down

0 comments on commit a2a1e5f

Please sign in to comment.