Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckTargetAddress ¶
func CheckTargetAddress(address model.LabelValue) error
CheckTargetAddress checks if target address is valid.
Types ¶
type Config ¶
type Config struct { DebugInfo *debuginfo.Config `yaml:"debug_info"` ScrapeConfigs []*ScrapeConfig `yaml:"scrape_configs,omitempty"` }
Config holds all the configuration information for Parca
func (*Config) SetDirectory ¶
SetDirectory joins any relative file paths with dir.
type PprofConfig ¶
type PprofConfig map[string]*PprofProfilingConfig
type PprofProfilingConfig ¶
type ProfilingConfig ¶
type ProfilingConfig struct {
PprofConfig PprofConfig `yaml:"pprof_config,omitempty"`
}
type ScrapeConfig ¶
type ScrapeConfig struct { // Name of the section in the config JobName string `yaml:"job_name,omitempty"` // A set of query parameters with which the target is scraped. Params url.Values `yaml:"params,omitempty"` // How frequently to scrape the targets of this scrape config. ScrapeInterval model.Duration `yaml:"scrape_interval,omitempty"` // The timeout for scraping targets of this config. ScrapeTimeout model.Duration `yaml:"scrape_timeout,omitempty"` // The URL scheme with which to fetch metrics from targets. Scheme string `yaml:"scheme,omitempty"` ProfilingConfig *ProfilingConfig `yaml:"profiling_config,omitempty"` RelabelConfigs []*relabel.Config `yaml:"relabel_configs,omitempty"` // We cannot do proper Go type embedding below as the parser will then parse // values arbitrarily into the overflow maps of further-down types. ServiceDiscoveryConfigs discovery.Configs `yaml:"-"` HTTPClientConfig commonconfig.HTTPClientConfig `yaml:",inline"` }
ScrapeConfig configures a scraping unit for conprof.
func DefaultScrapeConfig ¶
func DefaultScrapeConfig() ScrapeConfig
func (*ScrapeConfig) SetDirectory ¶
func (c *ScrapeConfig) SetDirectory(dir string)
SetDirectory joins any relative file paths with dir.
func (*ScrapeConfig) UnmarshalYAML ¶
func (c *ScrapeConfig) UnmarshalYAML(unmarshal func(interface{}) error) error
UnmarshalYAML implements the yaml.Unmarshaler interface.
type Secret ¶
type Secret string
Secret special type for storing secrets.
func (Secret) MarshalYAML ¶
MarshalYAML implements the yaml.Marshaler interface for Secrets.
func (*Secret) UnmarshalYAML ¶
UnmarshalYAML implements the yaml.Unmarshaler interface for Secrets.
type ServiceDiscoveryConfig ¶
type ServiceDiscoveryConfig struct { // List of labeled target groups for this job. StaticConfigs []*targetgroup.Group `yaml:"static_configs,omitempty"` }
ServiceDiscoveryConfig configures lists of different service discovery mechanisms.
Click to show internal directories.
Click to hide internal directories.