discovery

package
v0.10.0-rc5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TlsAssetMountPath = "/etc/otel/prometheus/certs"
)

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(
	logger *zap.SugaredLogger,
	client client.Client,
	namespace string,
	discovery monitoringv1beta1.PrometheusDiscovery,
) PrometheusDiscovery

func (*PrometheusDiscovery) YieldScrapeConfigs

func (p *PrometheusDiscovery) YieldScrapeConfigs() (
	scrapeCfgs []yaml.MapSlice,
	secrets []SecretResolutionConfig,
	retErr error,
)

type ScrapeConfigRetriever

type ScrapeConfigRetriever interface {
	Yield() (*promCRDOperatorConfig, error)
	Name() string
}

func NewPodMonitorScrapeConfigRetriever

func NewPodMonitorScrapeConfigRetriever(
	logger *zap.SugaredLogger,
	client client.Client,
	namespace string,
	discovery monitoringv1beta1.PrometheusDiscovery,
) ScrapeConfigRetriever

func NewServiceMonitorScrapeConfigRetriever

func NewServiceMonitorScrapeConfigRetriever(
	logger *zap.SugaredLogger,
	client client.Client,
	namespace string,
	discovery monitoringv1beta1.PrometheusDiscovery,
) ScrapeConfigRetriever

type SecretResolutionConfig added in v0.10.0

type SecretResolutionConfig struct {
	TargetKey string
	*corev1.Secret
	*corev1.ConfigMap
	// contains filtered or unexported fields
}

How to resolve a required secret or config map for scraping Secret and ConfigMap are mutually exclusive

func (*SecretResolutionConfig) GetData added in v0.10.0

func (s *SecretResolutionConfig) GetData() []byte

func (*SecretResolutionConfig) Key added in v0.10.0

func (s *SecretResolutionConfig) Key() string

func (*SecretResolutionConfig) Path added in v0.10.0

func (s *SecretResolutionConfig) Path() string

Jump to

Keyboard shortcuts

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