[#1175] shard: Update metric mode_info
on Init
All checks were successful
DCO action / DCO (pull_request) Successful in 2m29s
Vulncheck / Vulncheck (pull_request) Successful in 3m9s
Build / Build Components (1.21) (pull_request) Successful in 4m45s
Build / Build Components (1.20) (pull_request) Successful in 4m56s
Tests and linters / gopls check (pull_request) Successful in 6m47s
Tests and linters / Staticcheck (pull_request) Successful in 7m48s
Tests and linters / Lint (pull_request) Successful in 8m9s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m13s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m41s
Tests and linters / Tests with -race (pull_request) Successful in 9m54s
All checks were successful
DCO action / DCO (pull_request) Successful in 2m29s
Vulncheck / Vulncheck (pull_request) Successful in 3m9s
Build / Build Components (1.21) (pull_request) Successful in 4m45s
Build / Build Components (1.20) (pull_request) Successful in 4m56s
Tests and linters / gopls check (pull_request) Successful in 6m47s
Tests and linters / Staticcheck (pull_request) Successful in 7m48s
Tests and linters / Lint (pull_request) Successful in 8m9s
Tests and linters / Tests (1.20) (pull_request) Successful in 9m13s
Tests and linters / Tests (1.21) (pull_request) Successful in 9m41s
Tests and linters / Tests with -race (pull_request) Successful in 9m54s
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
ba374c7907
commit
6067e644d6
1 changed files with 1 additions and 0 deletions
|
@ -469,6 +469,7 @@ func (s *Shard) updateMetrics(ctx context.Context) {
|
||||||
s.setContainerObjectsCount(contID.EncodeToString(), logical, count.Logic)
|
s.setContainerObjectsCount(contID.EncodeToString(), logical, count.Logic)
|
||||||
s.setContainerObjectsCount(contID.EncodeToString(), user, count.User)
|
s.setContainerObjectsCount(contID.EncodeToString(), user, count.User)
|
||||||
}
|
}
|
||||||
|
s.cfg.metricsWriter.SetMode(s.info.Mode)
|
||||||
}
|
}
|
||||||
|
|
||||||
// incObjectCounter increment both physical and logical object
|
// incObjectCounter increment both physical and logical object
|
||||||
|
|
Loading…
Reference in a new issue