vendors

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 12 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
	QueryPeriod  string
	QueryStep    string
	Metric       string
	Service      string
	Schedule     string
	BaseTemplate string
	Vars         string

	TelegrafLabels   string
	TelegrafFiles    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