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"`
}
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"`
}
Click to show internal directories.
Click to hide internal directories.