frostfs-node/cmd/frostfs-ir/metrics.go
Evgenii Stratonikov f989bc52be [#39] ir: Do not store config keys in httpComponent
Pprof will have specific options, it seems wrong to have them in a
generic struct.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2023-05-12 17:49:46 +03:00

12 lines
212 B
Go

package main
import (
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/metrics"
)
func newMetricsComponent() *httpComponent {
return &httpComponent{
name: "prometheus",
handler: metrics.Handler(),
}
}