Skip to content

Commit

Permalink
Merge pull request #231 from lidofinance/fix-metrics
Browse files Browse the repository at this point in the history
fix: metrics id
  • Loading branch information
Amuhar authored Jan 9, 2024
2 parents 06f8422 + e4b8831 commit cda57f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jobs/keys-update/keys-update.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export class KeysUpdateService {
const moduleInstance = this.stakingRouterService.getStakingRouterModuleImpl(module.type);

// update nonce metric
this.prometheusService.registryNonce.set({ srModuleId: module.id }, module.nonce);
this.prometheusService.registryNonce.set({ srModuleId: module.moduleId }, module.nonce);

// get operators
const operators = await moduleInstance.getOperators(module.stakingModuleAddress);
Expand All @@ -182,7 +182,7 @@ export class KeysUpdateService {
this.prometheusService.registryNumberOfKeysBySRModuleAndOperator.set(
{
operator: operator.index,
srModuleId: module.id,
srModuleId: module.moduleId,
used: 'true',
},
operator.usedSigningKeys,
Expand All @@ -191,7 +191,7 @@ export class KeysUpdateService {
this.prometheusService.registryNumberOfKeysBySRModuleAndOperator.set(
{
operator: operator.index,
srModuleId: module.id,
srModuleId: module.moduleId,
used: 'false',
},
operator.totalSigningKeys - operator.usedSigningKeys,
Expand Down

0 comments on commit cda57f4

Please sign in to comment.