Skip to content

Commit

Permalink
Merge pull request #285 from w3f/prom-fix
Browse files Browse the repository at this point in the history
counter instead gauge, upgraded deps
  • Loading branch information
ironoa authored Feb 28, 2023
2 parents 03edf98 + f187ac9 commit ea7fba0
Show file tree
Hide file tree
Showing 4 changed files with 938 additions and 922 deletions.
4 changes: 2 additions & 2 deletions charts/polkadot-watcher/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Polkadot Watcher
name: polkadot-watcher
version: v4.1.5
appVersion: v4.1.5
version: v4.2.0
appVersion: v4.2.0
apiVersion: v2
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polkadot-watcher",
"version": "4.1.5",
"version": "4.2.0",
"description": "Monitor events on Polkadot networks",
"repository": "git@github.com:w3f/polkadot-watcher.git",
"author": "W3F Infrastructure Team <devops@web3.foundation>",
Expand Down
4 changes: 2 additions & 2 deletions src/prometheus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class Prometheus implements PromClient {
help: 'Whether a validator is reported as outside of the current Era validators active set',
labelNames: ['network', 'name', 'address', 'environment']
});
this.payeeChangedReports = new promClient.Gauge({
this.payeeChangedReports = new promClient.Counter({
name: 'polkadot_validator_payee_changed_reports',
help: 'Times a validator has changed the payee destination',
labelNames: ['network', 'name', 'address', 'environment']
Expand All @@ -120,7 +120,7 @@ export class Prometheus implements PromClient {
help: 'Whether a validator has an unexpected payee destination',
labelNames: ['network', 'name', 'address', 'environment']
});
this.commissionChangedReports = new promClient.Gauge({
this.commissionChangedReports = new promClient.Counter({
name: 'polkadot_validator_commission_changed_reports',
help: 'Times a validator has changed the commission rate',
labelNames: ['network', 'name', 'address', 'environment']
Expand Down
Loading

0 comments on commit ea7fba0

Please sign in to comment.