Skip to content

Commit

Permalink
chainId
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisbaccour committed Apr 13, 2023
1 parent c0c5223 commit b571750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ if (import.meta.main) {
const balancesGauge = new promclient.Gauge({
name: "balances",
help: "Account balances in NOIS",
labelNames: ["account", "rpcEndpoint"] as const,
labelNames: ["account", "rpcEndpoint", "chainId"] as const,
});

// Updates all gauges with the current balances
const gaugify = () => {
for (const [key, val] of balances.entries()) {
balancesGauge.set({ account: key, rpcEndpoint }, parseInt(val, 10) / 1_000_000);
balancesGauge.set({ account: key, rpcEndpoint, chainId }, parseInt(val, 10) / 1_000_000);
}
};

Expand Down

0 comments on commit b571750

Please sign in to comment.