Skip to content

Commit

Permalink
Merge pull request #5 from noislabs/add-chainId-label
Browse files Browse the repository at this point in the history
chainId
  • Loading branch information
kaisbaccour authored Apr 13, 2023
2 parents e8373b2 + b571750 commit 7f0f722
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 7f0f722

Please sign in to comment.