telegraf

package
v0.14.8 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) CreateIfCheckSumIsDifferent added in v0.5.10

func (tc *Config) CreateIfCheckSumIsDifferent(name, conf string, checksum bool, bs []byte, logger sreCommon.Logger)

func (*Config) CreateWithTemplateIfCheckSumIsDifferent added in v0.5.10

func (tc *Config) CreateWithTemplateIfCheckSumIsDifferent(name, template, conf string, checksum bool, bs []byte, logger sreCommon.Logger)

func (*Config) GenerateInputDNSQueryBytes

func (tc *Config) GenerateInputDNSQueryBytes(opts InputDNSQueryOptions, domains map[string]common.Labels) ([]byte, error)

func (*Config) GenerateInputHTTPResponseBytes added in v0.5.9

func (tc *Config) GenerateInputHTTPResponseBytes(opts InputHTTPResponseOptions, urls map[string]common.Labels) ([]byte, error)

func (*Config) GenerateInputNETResponseBytes added in v0.6.0

func (tc *Config) GenerateInputNETResponseBytes(opts InputNetResponseOptions, addresses map[string]common.Labels, protocol string) ([]byte, error)

func (*Config) GenerateInputPrometheusHttpBytes

func (tc *Config) GenerateInputPrometheusHttpBytes(s *common.Object, labelsTpl string,
	opts InputPrometheusHttpOptions, name string, persistMetrics bool) ([]byte, error)

func (*Config) GenerateInputX509CertBytes added in v0.5.17

func (tc *Config) GenerateInputX509CertBytes(opts InputX509CertOptions, addresses map[string]common.Labels) ([]byte, error)

type InputDNSQuery

type InputDNSQuery struct {
	Interval         string            `toml:"interval,omitempty"`
	CollectionOffset string            `toml:"collection_offset"`
	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 InputDNSQueryOptions struct {
	Interval         string
	CollectionOffset string
	Servers          string
	Network          string
	Domains          string
	RecordType       string
	Port             int
	Timeout          int
	Tags             []string
}

type InputHTTPResponse added in v0.5.9

type InputHTTPResponse struct {
	Interval           string            `toml:"interval,omitempty"`
	CollectionOffset   string            `toml:"collection_offset"`
	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"`
	InsecureSkipVerify bool              `toml:"insecure_skip_verify,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 InputHTTPResponseOptions struct {
	Interval         string
	CollectionOffset string
	URLs             string
	Method           string
	FollowRedirects  bool
	StringMatch      string
	StatusCode       int
	Timeout          string
	Tags             []string
}

type InputNetResponse added in v0.5.10

type InputNetResponse struct {
	Interval         string            `toml:"interval,omitempty"`
	CollectionOffset string            `toml:"collection_offset"`
	Address          string            `toml:"address"`
	Protocol         string            `toml:"protocol"`
	Timeout          string            `toml:"timeout,omitempty"`
	ReadTimeout      string            `toml:"read_timeout,omitempty"`
	Send             string            `toml:"send,omitempty"`
	Expect           string            `toml:"expect,omitempty"`
	Tags             map[string]string `toml:"tags,omitempty"`
	Include          []string          `toml:"taginclude,omitempty"`
	// contains filtered or unexported fields
}

type InputNetResponseOptions added in v0.5.10

type InputNetResponseOptions struct {
	Interval         string
	CollectionOffset string
	Address          string
	Protocol         string
	Timeout          string
	ReadTimeout      string
	Send             string
	Expect           string
	Tags             []string
}

type InputPrometheusHttp

type InputPrometheusHttp struct {
	Name             string                             `toml:"name"`
	URL              string                             `toml:"url"`
	User             string                             `toml:"user,omitempty"`
	Password         string                             `toml:"password,omitempty"` // #nosec G117
	Version          string                             `toml:"version"`
	Params           string                             `toml:"params,omitempty"`
	CollectionOffset string                             `toml:"collection_offset"`
	Interval         string                             `toml:"interval"`
	Timeout          string                             `toml:"timeout"`
	Duration         string                             `toml:"duration,omitempty"`
	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"`
	Round    *int              `toml:"round,omitempty"`
	Query    string            `toml:"query"`
	UniqueBy []string          `toml:"unique_by,omitempty"`
	Tags     map[string]string `toml:"tags,omitempty"`
}

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"`
	Round    *int              `toml:"round,omitempty"`
	Query    string            `toml:"query"`
	UniqueBy []string          `toml:"unique_by,omitempty"`
	Tags     map[string]string `toml:"tags,omitempty"`
}

type InputPrometheusHttpOptions added in v0.5.9

type InputPrometheusHttpOptions struct {
	CollectionOffset string
	Interval         string
	URL              string
	User             string
	Password         string // #nosec G117
	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 InputX509Cert added in v0.5.17

type InputX509Cert struct {
	Interval         string            `toml:"interval,omitempty"`
	CollectionOffset string            `toml:"collection_offset"`
	Sources          []string          `toml:"sources"`
	Timeout          string            `toml:"timeout,omitempty"`
	ServerName       string            `toml:"server_name,omitempty"`
	ExcludeRootCerts bool              `toml:"exclude_root_certs,omitempty"`
	TLSCA            string            `toml:"tls_ca,omitempty"`
	TLSCert          string            `toml:"tls_cert,omitempty"`
	TLSKey           string            `toml:"tls_key,omitempty"`
	TLSServerName    string            `toml:"tls_server_name,omitempty"`
	UseProxy         bool              `toml:"use_proxy,omitempty"`
	ProxyURL         string            `toml:"proxy_url,omitempty"`
	Tags             map[string]string `toml:"tags,omitempty"`
	Include          []string          `toml:"taginclude,omitempty"`
	// contains filtered or unexported fields
}

type InputX509CertOptions added in v0.5.17

type InputX509CertOptions struct {
	Interval         string
	CollectionOffset string
	Sources          string
	Timeout          string
	ServerName       string
	ExcludeRootCerts bool
	TLSCA            string
	TLSCert          string
	TLSKey           string
	TLSServerName    string
	UseProxy         bool
	ProxyURL         string
	Tags             []string
}

type Inputs

type Inputs struct {
	PrometheusHttp []*InputPrometheusHttp `toml:"prometheus_http,omitempty"`
	DNSQuery       []*InputDNSQuery       `toml:"dns_query,omitempty"`
	HTTPResponse   []*InputHTTPResponse   `toml:"http_response,omitempty"`
	NetResponse    []*InputNetResponse    `toml:"net_response,omitempty"`
	X509Cert       []*InputX509Cert       `toml:"x509_cert,omitempty"`
}

Jump to

Keyboard shortcuts

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