tngm

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustWaitForNGMPhase

func MustWaitForNGMPhase(c versioned.Interface, tngm *v1alpha1.TidbNGMonitoring, phase v1alpha1.MemberPhase, timeout, pollInterval time.Duration)

func SetConfig

func SetConfig(addr string, req *ConfigureNGMReq) error

Types

type ConfigureNGMReq

type ConfigureNGMReq struct {
	Conprof *NGMConprofConfig `json:"continuous_profiling,omitempty"`
}

type NGMConfig

type NGMConfig struct {
	Addr          string `json:"addr"`
	AdvertiseAddr string `json:"advertise_addr"`

	Conprof *NGMConprofConfig `json:"continuous_profiling,omitempty"`
}

func GetConfig

func GetConfig(addr string) (*NGMConfig, error)

type NGMConprofConfig

type NGMConprofConfig struct {
	Enable               bool `json:"enable,omitempty"`
	ProfileSeconds       int  `json:"profile_seconds,omitempty"`
	IntervalSeconds      int  `json:"interval_seconds,omitempty"`
	TimeoutSeconds       int  `json:"timeout_seconds,omitempty"`
	DataRetentionSeconds int  `json:"data_retention_seconds,omitempty"`
}

Jump to

Keyboard shortcuts

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