Documentation
¶
Index ¶
- type Config
- func (tc *Config) GenerateInputDNSQueryBytes(opts InputDNSQueryOptions, domains map[string]common.Labels) ([]byte, error)
- func (tc *Config) GenerateInputHTTPResponseBytes(opts InputHTTPResponseOptions, urls map[string]common.Labels) ([]byte, error)
- func (tc *Config) GenerateInputPrometheusHttpBytes(s *common.Service, labelsTpl string, opts InputPrometheusHttpOptions, ...) ([]byte, error)
- type InputDNSQuery
- type InputDNSQueryOptions
- type InputHTTPResponse
- type InputHTTPResponseOptions
- type InputPrometheusHttp
- type InputPrometheusHttpAvailability
- type InputPrometheusHttpFile
- type InputPrometheusHttpMetric
- type InputPrometheusHttpOptions
- type Inputs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Inputs Inputs `toml:"inputs"`
Observability *common.Observability `toml:"-"`
}
func (*Config) GenerateInputDNSQueryBytes ¶
func (*Config) GenerateInputHTTPResponseBytes ¶ added in v0.5.9
func (*Config) GenerateInputPrometheusHttpBytes ¶
type InputDNSQuery ¶
type InputDNSQuery struct {
Interval string `toml:"interval,omitempty"`
Servers []string `toml:"servers"`
Network string `toml:"network,omitempty"`
Domains []string `toml:"domains"`
RecordType string `toml:"record_type,omitempty"`
Port int `toml:"port,omitempty"`
Timeout int `toml:"timeout,omitempty"`
Tags map[string]string `toml:"tags,omitempty"`
Include []string `toml:"taginclude,omitempty"`
// contains filtered or unexported fields
}
type InputDNSQueryOptions ¶ added in v0.5.9
type InputHTTPResponse ¶ added in v0.5.9
type InputHTTPResponse struct {
Interval string `toml:"interval,omitempty"`
URLs []string `toml:"urls"`
Timeout string `toml:"response_timeout,omitempty"`
Method string `toml:"method,omitempty"`
FollowRedirects bool `toml:"follow_redirects,omitempty"`
StringMatch string `toml:"response_string_match,omitempty"`
StatusCode int `toml:"response_status_code,omitempty"`
Tags map[string]string `toml:"tags,omitempty"`
Include []string `toml:"taginclude,omitempty"`
// contains filtered or unexported fields
}
type InputHTTPResponseOptions ¶ added in v0.5.9
type InputPrometheusHttp ¶
type InputPrometheusHttp struct {
Name string `toml:"name"`
URL string `toml:"url"`
Version string `toml:"version"`
Params string `toml:"params"`
Interval string `toml:"interval"`
Timeout string `toml:"timeout"`
Duration string `toml:"duration"`
Prefix string `toml:"prefix"`
File []*InputPrometheusHttpFile `toml:"file"`
Metric []*InputPrometheusHttpMetric `toml:"metric"`
Availability []*InputPrometheusHttpAvailability `toml:"metric"`
Tags map[string]string `toml:"tags,omitempty"`
Include []string `toml:"taginclude,omitempty"`
SkipEmptyTags bool `toml:"skip_empty_tags"`
// contains filtered or unexported fields
}
type InputPrometheusHttpFile ¶
type InputPrometheusHttpOptions ¶ added in v0.5.9
type InputPrometheusHttpOptions struct {
Interval string
URL string
Version string
Params string
Timeout string
Duration string
Prefix string
QualityName string
QualityRange string
QualityEvery string
QualityPoints int
QualityQuery string
AvailabilityName string
MetricName string
DefaultTags []string
VarFormat string
}
type Inputs ¶
type Inputs struct {
PrometheusHttp []*InputPrometheusHttp `toml:"prometheus_http,omitempty"`
DNSQuery []*InputDNSQuery `toml:"dns_query,omitempty"`
HTTPResponse []*InputHTTPResponse `toml:"http_response,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.