Skip to content

Commit

Permalink
PATCH: Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavobelfort authored and agouin committed Nov 16, 2023
1 parent 1b0b55a commit cef385c
Showing 1 changed file with 40 additions and 32 deletions.
72 changes: 40 additions & 32 deletions signer/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,28 +171,32 @@ var (
"(Should not increase beyond block time; If high, may indicate raft joining issue for CoSigner) ",
})

missedPrecommits = promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "signer_missed_precommits",
Help: "Consecutive Precommit Missed",
},
missedPrecommits = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "signer_missed_precommits",
Help: "Consecutive Precommit Missed",
},
[]string{"chain_id"},
)
missedPrevotes = promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "signer_missed_prevotes",
Help: "Consecutive Prevote Missed",
},
missedPrevotes = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "signer_missed_prevotes",
Help: "Consecutive Prevote Missed",
},
[]string{"chain_id"},
)
totalMissedPrecommits = promauto.NewCounterVec(prometheus.CounterOpts{
Name: "signer_total_missed_precommits",
Help: "Total Precommit Missed",
},
totalMissedPrecommits = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "signer_total_missed_precommits",
Help: "Total Precommit Missed",
},
[]string{"chain_id"},
)
totalMissedPrevotes = promauto.NewCounterVec(prometheus.CounterOpts{
Name: "signer_total_missed_prevotes",
Help: "Total Prevote Missed",
},
totalMissedPrevotes = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "signer_total_missed_prevotes",
Help: "Total Prevote Missed",
},
[]string{"chain_id"},
)

Expand All @@ -211,29 +215,33 @@ var (
[]string{"peerid"},
)

sentryConnectTries = promauto.NewGaugeVec(prometheus.GaugeOpts{
Name: "signer_sentry_connect_tries",
Help: "Consecutive Number of times sentry TCP connect has been tried (High count may indicate validator restarts)",
},
sentryConnectTries = promauto.NewGaugeVec(
prometheus.GaugeOpts{
Name: "signer_sentry_connect_tries",
Help: "Consecutive Number of times sentry TCP connect has been tried (High count may indicate validator restarts)",
},
[]string{"node"},
)
totalSentryConnectTries = promauto.NewCounterVec(prometheus.CounterOpts{
Name: "signer_total_sentry_connect_tries",
Help: "Total Number of times sentry TCP connect has been tried (High count may indicate validator restarts)",
},
totalSentryConnectTries = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "signer_total_sentry_connect_tries",
Help: "Total Number of times sentry TCP connect has been tried (High count may indicate validator restarts)",
},
[]string{"node"},
)

beyondBlockErrors = promauto.NewCounterVec(prometheus.CounterOpts{
Name: "signer_total_beyond_block_errors",
Help: "Total Times Signing Started but duplicate height/round request arrives",
},
beyondBlockErrors = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "signer_total_beyond_block_errors",
Help: "Total Times Signing Started but duplicate height/round request arrives",
},
[]string{"chain_id"},
)
failedSignVote = promauto.NewCounterVec(prometheus.CounterOpts{
Name: "signer_total_failed_sign_vote",
Help: "Total Times Signer Failed to sign block - Unstarted and Unexepcted Height",
},
failedSignVote = promauto.NewCounterVec(
prometheus.CounterOpts{
Name: "signer_total_failed_sign_vote",
Help: "Total Times Signer Failed to sign block - Unstarted and Unexepcted Height",
},
[]string{"chain_id"},
)

Expand Down

0 comments on commit cef385c

Please sign in to comment.