forked from TrueCloudLab/frostfs-node
[#424] metrics: Rename counter to total
Suffix total should be used for a unit-less accumulating count. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
c348ae35b0
commit
847732605c
5 changed files with 11 additions and 11 deletions
|
@ -30,7 +30,7 @@ func NewMorphClientMetrics() morphmetrics.Register {
|
|||
switchCount: metrics.NewCounter(prometheus.CounterOpts{
|
||||
Namespace: namespace,
|
||||
Subsystem: morphSubsystem,
|
||||
Name: "switch_count",
|
||||
Name: "switches_total",
|
||||
Help: "Number of endpoint switches",
|
||||
}),
|
||||
lastBlock: metrics.NewGauge(prometheus.GaugeOpts{
|
||||
|
@ -42,7 +42,7 @@ func NewMorphClientMetrics() morphmetrics.Register {
|
|||
notificationCount: metrics.NewCounterVec(prometheus.CounterOpts{
|
||||
Namespace: namespace,
|
||||
Subsystem: morphSubsystem,
|
||||
Name: "notification_count",
|
||||
Name: "notifications_total",
|
||||
Help: "Number of notifications received by notification type",
|
||||
}, []string{morphNotificationTypeLabel}),
|
||||
invokeDuration: metrics.NewHistogramVec(prometheus.HistogramOpts{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue