22 lines
553 B
Go
22 lines
553 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"git.frostfs.info/TrueCloudLab/frostfs-node/pkg/metrics"
|
||
|
)
|
||
|
|
||
|
const (
|
||
|
prometheusEnabledKey = "prometheus.enabled"
|
||
|
prometheusAddressKey = "prometheus.address"
|
||
|
prometheusShutdownTimeoutKey = "prometheus.shutdown_timeout"
|
||
|
)
|
||
|
|
||
|
func newMetricsComponent() *httpComponent {
|
||
|
return &httpComponent{
|
||
|
name: "prometheus",
|
||
|
enabledKey: prometheusEnabledKey,
|
||
|
addressKey: prometheusAddressKey,
|
||
|
shutdownTimeoutKey: prometheusShutdownTimeoutKey,
|
||
|
handler: metrics.Handler(),
|
||
|
}
|
||
|
}
|