collector

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateReports

GenerateReports is responsible for querying prometheus and writing to report files

Types

type PromCollector

type PromCollector struct {
	PromConn       prometheusConnection
	PromCfg        *PrometheusConfig
	TimeSeries     *promv1.Range
	ContextTimeout *int64
	Log            logr.Logger
	InCluster      bool
}

func (*PromCollector) GetPromConn

GetPromConn returns the prometheus connection

type PrometheusConfig

type PrometheusConfig struct {
	// Address is the URL to reach Prometheus.
	Address string
	// BearerToken is the user auth token
	BearerToken config.Secret
	// CAFile is the ca file
	CAFile string
	// SkipTLS skips cert verification
	SkipTLS bool
}

PrometheusConfig provides the configuration options to set up a Prometheus connections from a URL.

Jump to

Keyboard shortcuts

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