ops

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 10 Imported by: 0

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.

Directories

Path Synopsis
sentry module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL