Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(log logger.ExtendedLogger, cfg Config, hcServicesList ...service.HealthChecker) []service.IService
New creates new OPS server and OPS HealthChecker's worker.
Types ¶
type Config ¶
type Config struct {
Enabled bool `default:"false" usage:"allows to enable ops server"`
Addr string `default:":10000" usage:"allows to set set ops address:port"`
Network string `default:"tcp" usage:"allows to set ops listen network: tcp/udp"`
NoTrace bool `default:"true" usage:"allows to disable tracing"`
MetricsPath string `default:"/metrics" usage:"allows to set custom metrics path"`
HealthyPath string `default:"/healthy" usage:"allows to set custom healthy path"`
ProfilePath string `default:"/debug/pprof" usage:"allows to set custom profiler path"`
}
Config provides configuration for ops server.
Click to show internal directories.
Click to hide internal directories.