forked from TrueCloudLab/frostfs-node
[#2241] metrics: Fix request count metrics names
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
2272c55c4d
commit
6fd88a036f
2 changed files with 3 additions and 2 deletions
|
@ -33,6 +33,7 @@ Changelog for FrostFS Node
|
||||||
- Expired objects could be returned if not marked with GC yet (#2213)
|
- Expired objects could be returned if not marked with GC yet (#2213)
|
||||||
- `neofs-adm morph dump-hashes` now properly iterates over custom domain (#2224)
|
- `neofs-adm morph dump-hashes` now properly iterates over custom domain (#2224)
|
||||||
- Possible deadlock in write-cache (#2239)
|
- Possible deadlock in write-cache (#2239)
|
||||||
|
- Fix `*_req_count` and `*_req_count_success` metric values (#2241)
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
### Updated
|
### Updated
|
||||||
|
|
|
@ -51,13 +51,13 @@ func newMethodCallCounter(name string) methodCount {
|
||||||
success: prometheus.NewCounter(prometheus.CounterOpts{
|
success: prometheus.NewCounter(prometheus.CounterOpts{
|
||||||
Namespace: namespace,
|
Namespace: namespace,
|
||||||
Subsystem: objectSubsystem,
|
Subsystem: objectSubsystem,
|
||||||
Name: fmt.Sprintf("%s_req_count", name),
|
Name: fmt.Sprintf("%s_req_count_success", name),
|
||||||
Help: fmt.Sprintf("The number of successful %s requests processed", name),
|
Help: fmt.Sprintf("The number of successful %s requests processed", name),
|
||||||
}),
|
}),
|
||||||
total: prometheus.NewCounter(prometheus.CounterOpts{
|
total: prometheus.NewCounter(prometheus.CounterOpts{
|
||||||
Namespace: namespace,
|
Namespace: namespace,
|
||||||
Subsystem: objectSubsystem,
|
Subsystem: objectSubsystem,
|
||||||
Name: fmt.Sprintf("%s_req_count_success", name),
|
Name: fmt.Sprintf("%s_req_count", name),
|
||||||
Help: fmt.Sprintf("Total number of %s requests processed", name),
|
Help: fmt.Sprintf("Total number of %s requests processed", name),
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue