vendors

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File added in v0.5.0

type File struct {
	Time time.Time   `json:"time"`
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type PrometheusDiscovery

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

func NewPrometheusDiscovery

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

func (*PrometheusDiscovery) Discover

func (pd *PrometheusDiscovery) Discover()

type PrometheusDiscoveryOptions

type PrometheusDiscoveryOptions struct {
	Names        string
	URL          string
	Timeout      int
	Insecure     bool
	Query        string
	QueryPeriod  string
	QueryStep    string
	Metric       string
	Service      string
	Field        string
	Disabled     []string
	Schedule     string
	BaseTemplate string
	Vars         string

	Files 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"`
}

type PubSub added in v0.5.0

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

func NewPubSubPull added in v0.5.0

func NewPubSubPull(options PubSubOptions, observability *common.Observability) *PubSub

func (*PubSub) PubSubPull added in v0.5.0

func (ps *PubSub) PubSubPull()

type PubSubOptions added in v0.5.0

type PubSubOptions struct {
	Enabled                 bool
	Credentials             string
	ProjectID               string
	TopicID                 string
	SubscriptionName        string
	SubscriptionAckDeadline int
	SubscriptionRetention   int
	CMDBDir                 string
}

Jump to

Keyboard shortcuts

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