forked from TrueCloudLab/frostfs-node
21 lines
553 B
Go
21 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(),
|
|
}
|
|
}
|