Documentation ¶
Index ¶
- func Context() context.Context
- func NewHealthcheckMetric(withAdditionalLabels prometheus.Labels) prometheus.Collector
- func PProfHandler() http.Handler
- func SetContext(c context.Context)
- func SetHealthState(state bool)
- func SetupMetrics(opts ...SetupMetricsOpt) error
- func StandardMetrics() []prometheus.Collector
- func WhenHaveMetricsRegistry(f func(reg *prometheus.Registry))
- type AddMetrics
- type HcHandler
- type NoStandardMetrics
- type SetupMetricsOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHealthcheckMetric ¶
func NewHealthcheckMetric(withAdditionalLabels prometheus.Labels) prometheus.Collector
NewHealthcheckMetric -
func StandardMetrics ¶
func StandardMetrics() []prometheus.Collector
StandardMetrics добавим гошные + системные коллекторы
func WhenHaveMetricsRegistry ¶
func WhenHaveMetricsRegistry(f func(reg *prometheus.Registry))
WhenHaveMetricsRegistry ...
Types ¶
type SetupMetricsOpt ¶
type SetupMetricsOpt interface {
// contains filtered or unexported methods
}
SetupMetricsOpt -
Click to show internal directories.
Click to hide internal directories.