vendors

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrometheusDiscovery

type PrometheusDiscovery struct {
	// contains filtered or unexported fields
}

func NewPrometheusDiscovery

func NewPrometheusDiscovery(options PrometheusDiscoveryOptions, observability *common.Observability) *PrometheusDiscovery

func (*PrometheusDiscovery) Discover

func (pd *PrometheusDiscovery) Discover()

type PrometheusDiscoveryOptions

type PrometheusDiscoveryOptions struct {
	URL          string
	Timeout      int
	Insecure     bool
	Query        string
	Metric       string
	Service      string
	Schedule     string
	BaseTemplate string
	Vars         string

	TelegrafLabels   string
	TelegrafTemplate string
	TelegrafChecksum bool
	TelegrafOptions  common.TelegrafConfigOptions
}

type PrometheusDiscoveryResponse

type PrometheusDiscoveryResponse struct {
	Status string                           `json:"status"`
	Data   *PrometheusDiscoveryResponseData `json:"data"`
}

type PrometheusDiscoveryResponseData

type PrometheusDiscoveryResponseData struct {
	ResultType string                                   `json:"resultType"`
	Result     []*PrometheusDiscoveryResponseDataVector `json:"result"`
}

type PrometheusDiscoveryResponseDataVector

type PrometheusDiscoveryResponseDataVector struct {
	Labels map[string]string `json:"metric"`
}

Jump to

Keyboard shortcuts

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