Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

Commit

Permalink
Rename metrics to avoid conflict with NEAR's own metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo committed Jul 14, 2020
1 parent 3f4791c commit 3b4ccc0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cmd/near_exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,27 +96,27 @@ func NewSolanaCollector(rpcAddr string) prometheus.Collector {
client: &http.Client{Timeout: httpTimeout},
rpcAddr: rpcAddr,
totalValidatorsDesc: prometheus.NewDesc(
"near_active_validators",
"near_exporter_active_validators",
"Total number of active validators",
nil, nil),
epochStartHeight: prometheus.NewDesc(
"near_epoch_start_height",
"near_exporter_epoch_start_height",
"Current epoch's start height",
nil, nil),
validatorStake: prometheus.NewDesc(
"near_validator_stake",
"near_exporter_validator_stake",
"Validator's stake",
[]string{"account_id"}, nil),
validatorExpectedBlocks: prometheus.NewDesc(
"near_validator_expected_blocks",
"near_exporter_validator_expected_blocks",
"Validators's expected blocks",
[]string{"account_id"}, nil),
validatorProducedBlocks: prometheus.NewDesc(
"near_validator_produced_blocks",
"near_exporter_validator_produced_blocks",
"Validator's actual produced blocks",
[]string{"account_id"}, nil),
validatorIsSlashed: prometheus.NewDesc(
"near_validator_is_slashed",
"near_exporter_validator_is_slashed",
"Whether the validator is slashed",
[]string{"account_id"}, nil),
}
Expand Down

0 comments on commit 3b4ccc0

Please sign in to comment.