Skip to content

Commit

Permalink
Remove old metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Schultz <[email protected]>
  • Loading branch information
dylanschultzie committed Apr 11, 2024
1 parent 6acf33d commit 435e053
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ By default the exporter serves on `:9333` at `/metrics`.
| near_sync_state | The current sync state of node |
| near_epoch_start_height | The epoch start height |
| near_version_build{build,version} | The version build of the near node |
| near_dev_version_build{build,version} | The version build of of the public rpc node |
| near_next_validator_stake{account_id,public_key,shards} | The next stake of epoch |
| near_current_validator_stake{account_id,num_produced_blocks,num_expected_blocks,public_key,shards,slashed} | The current stake of epoch |
| near_current_proposals_stake{account_id,public_key} | The current stake proposals |
Expand Down
12 changes: 0 additions & 12 deletions collector/dev_rpc_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,6 @@ type DevNodeRpcMetrics struct {
versionBuildDesc *prometheus.Desc
}

func NewDevNodeRpcMetrics(client *nearapi.Client) *DevNodeRpcMetrics {
return &DevNodeRpcMetrics{
client: client,
versionBuildDesc: prometheus.NewDesc(
"near_dev_version_build",
"The Dev Near node version build",
[]string{"version", "build"},
nil,
),
}
}

func (collector *DevNodeRpcMetrics) Describe(ch chan<- *prometheus.Desc) {
ch <- collector.versionBuildDesc
}
Expand Down
6 changes: 0 additions & 6 deletions collector/rpc_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ func NewNodeRpcMetrics(client *nearapi.Client, accountId string) *NodeRpcMetrics
nil,
nil,
),
versionBuildDesc: prometheus.NewDesc(
"near_version_build",
"The Near node version build",
[]string{"version", "build"},
nil,
),
currentValidatorStakeDesc: prometheus.NewDesc(
"near_current_validator_stake",
"Current amount of validator stake",
Expand Down

0 comments on commit 435e053

Please sign in to comment.