Skip to content

Commit

Permalink
Helium prefix on metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Dec 12, 2023
1 parent efc6813 commit b4bf4bb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/distributor-oracle/src/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import client from "prom-client";

export const register = new client.Registry();
export const totalRewardsGauge = new client.Gauge({
name: "total_rewards",
name: "helium_total_rewards",
help: "Total number of rewards",
labelNames: ["dnt_mint"],
});
Expand Down
12 changes: 6 additions & 6 deletions packages/monitor-service/src/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,42 @@ export const circuitBreakerLevel = new client.Gauge({
register.registerMetric(circuitBreakerLevel);

export const totalRewardsGauge = new client.Gauge({
name: 'recipient_total_rewards',
name: 'helium_recipient_total_rewards',
help: 'The total rewards claimed in all recipients',
labelNames: ['dnt_mint']
})
register.registerMetric(totalRewardsGauge);

export const realVeTokensGauge = new client.Gauge({
name: "real_delegated_ve_tokens",
name: "helium_real_delegated_ve_tokens",
help: "The total ve tokens for this mint in sql",
labelNames: ["dnt_mint"],
});
register.registerMetric(realVeTokensGauge);

export const approxVeTokensGauge = new client.Gauge({
name: "approx_delegated_ve_tokens",
name: "helium_approx_delegated_ve_tokens",
help: "The total ve tokens for this mint on-chain",
labelNames: ["dnt_mint"],
});
register.registerMetric(approxVeTokensGauge);

export const realFallRateGauge = new client.Gauge({
name: "real_delegated_fall_rate",
name: "helium_real_delegated_fall_rate",
help: "The total ve tokens fall rate for this mint in sql",
labelNames: ["dnt_mint"],
});
register.registerMetric(realFallRateGauge);

export const approxFallRateGauge = new client.Gauge({
name: "approx_delegated_fall_rate",
name: "helium_approx_delegated_fall_rate",
help: "The total ve tokens fall rate for this mint on-chain",
labelNames: ["dnt_mint"],
});
register.registerMetric(approxFallRateGauge);

export const delegationsGauge = new client.Gauge({
name: "delegations",
name: "helium_delegations",
help: "The total number of delegations",
labelNames: ["dnt_mint"],
});
Expand Down

0 comments on commit b4bf4bb

Please sign in to comment.