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 ¶
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
Click to show internal directories.
Click to hide internal directories.