Documentation ¶
Index ¶
- type ConfigGenerator
- func (cg *ConfigGenerator) GeneratePodMonitorConfig(m *promopv1.PodMonitor, ep promopv1.PodMetricsEndpoint, i int) (cfg *config.ScrapeConfig, err error)
- func (cg *ConfigGenerator) GenerateProbeConfig(m *promopv1.Probe) (cfg *config.ScrapeConfig, err error)
- func (cg *ConfigGenerator) GenerateServiceMonitorConfig(m *promopv1.ServiceMonitor, ep promopv1.Endpoint, i int) (cfg *config.ScrapeConfig, err error)
- type SecretFetcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigGenerator ¶
type ConfigGenerator struct { Client *k8sConfig.ClientArguments Secrets SecretFetcher AdditionalRelabelConfigs []*flow_relabel.Config ScrapeOptions operator.ScrapeOptions }
func (*ConfigGenerator) GeneratePodMonitorConfig ¶
func (cg *ConfigGenerator) GeneratePodMonitorConfig(m *promopv1.PodMonitor, ep promopv1.PodMetricsEndpoint, i int) (cfg *config.ScrapeConfig, err error)
func (*ConfigGenerator) GenerateProbeConfig ¶ added in v0.35.0
func (cg *ConfigGenerator) GenerateProbeConfig(m *promopv1.Probe) (cfg *config.ScrapeConfig, err error)
func (*ConfigGenerator) GenerateServiceMonitorConfig ¶
func (cg *ConfigGenerator) GenerateServiceMonitorConfig(m *promopv1.ServiceMonitor, ep promopv1.Endpoint, i int) (cfg *config.ScrapeConfig, err error)
type SecretFetcher ¶
type SecretFetcher interface { GetSecretValue(namespace string, sec corev1.SecretKeySelector) (string, error) GetConfigMapValue(namespace string, cm corev1.ConfigMapKeySelector) (string, error) SecretOrConfigMapValue(namespace string, socm promopv1.SecretOrConfigMap) (string, error) }
func NewSecretManager ¶
func NewSecretManager(client *kubernetes.Clientset) SecretFetcher
Click to show internal directories.
Click to hide internal directories.