telegraf

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (tc *Config) GenerateInputDNSQueryBytes(opts InputDNSQueryConfigOptions, domains map[string]common.Labels) ([]byte, error)

func (*Config) GenerateInputPrometheusHttpBytes

func (tc *Config) GenerateInputPrometheusHttpBytes(s *common.Service, labelsTpl string,
	opts InputPrometheusHttpConfigOptions, name string) ([]byte, error)

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 InputDNSQueryConfigOptions

type InputDNSQueryConfigOptions struct {
	Interval   string
	Servers    string
	Network    string
	Domains    string
	RecordType string
	Port       int
	Timeout    int
	Tags       []string
}

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 InputPrometheusHttpAvailability

type InputPrometheusHttpAvailability struct {
	Name     string            `toml:"name"`
	Query    string            `toml:"query"`
	UniqueBy []string          `toml:"unique_by,omitempty"`
	Tags     map[string]string `toml:"tags,omitempty"`
}

type InputPrometheusHttpConfigOptions

type InputPrometheusHttpConfigOptions 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 InputPrometheusHttpFile

type InputPrometheusHttpFile struct {
	Name string `toml:"name"`
	Path string `toml:"path"`
	Type string `toml:"type,omitempty"`
}

type InputPrometheusHttpMetric

type InputPrometheusHttpMetric struct {
	Name     string            `toml:"name"`
	Query    string            `toml:"query"`
	UniqueBy []string          `toml:"unique_by,omitempty"`
	Tags     map[string]string `toml:"tags,omitempty"`
}

type Inputs

type Inputs struct {
	PrometheusHttp []*InputPrometheusHttp `toml:"prometheus_http,omitempty"`
	DNSQuery       []*InputDNSQuery       `toml:"dns_query,omitempty"`
}

Jump to

Keyboard shortcuts

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