ops

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New return list with ops services

Types

type Config

type Config struct {
	Enabled bool   `default:"false" usage:"allows to enable ops server"`
	Network string `default:"tcp" usage:"allows to set ops listen network: tcp/udp"`

	// Tracing
	TracingEnabled bool `default:"false" usage:"allows to enable tracing"`

	// Metrics
	Metrics MetricsConfig

	// Health checker
	Healthy HealthCheckerConfig

	// Profiler
	Profiler ProfilerConfig
}

Config provides configuration for ops server.

type HealthCheckerConfig added in v0.2.0

type HealthCheckerConfig struct {
	Enabled bool   `default:"true" usage:"allows to enable health checker"`
	Path    string `default:"/healthy" usage:"allows to set custom healthy path"`
	Port    string `default:"10000" usage:"allows to set custom healthy port"`
	// contains filtered or unexported fields
}

func (*HealthCheckerConfig) AddServicesList added in v0.2.0

func (s *HealthCheckerConfig) AddServicesList(list []service.HealthChecker)

type MetricsConfig added in v0.2.0

type MetricsConfig struct {
	Enabled bool   `default:"true" usage:"allows to enable metrics"`
	Path    string `default:"/metrics" usage:"allows to set custom metrics path"`
	Port    string `default:"10000" usage:"allows to set custom metrics port"`
}

type ProfilerConfig added in v0.2.0

type ProfilerConfig struct {
	Enabled bool   `default:"false" usage:"allows to enable profiler"`
	Path    string `default:"/debug/pprof" usage:"allows to set custom profiler path"`
	Port    string `default:"10000" usage:"allows to set custom profiler port"`
}

Directories

Path Synopsis
sentry module

Jump to

Keyboard shortcuts

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