Documentation
¶
Index ¶
- func DeleteScrapeConfig(scrapeConfig parcav1alpha1.ParcaScrapeConfig) error
- func GetConfig() ([]byte, error)
- func GetReconciliationInterval() time.Duration
- func Init() error
- func SetScrapeConfig(scrapeConfig parcav1alpha1.ParcaScrapeConfig, pods []corev1.Pod) ([]string, error)
- type ParcaConfig
- type ParcaObjectStorage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteScrapeConfig ¶
func DeleteScrapeConfig(scrapeConfig parcav1alpha1.ParcaScrapeConfig) error
DeleteScrapeConfig deletes the scrape configuration for the provided ParcaScrapeConfig.
func GetReconciliationInterval ¶
GetReconciliationInterval returns the configured reconciliation interval.
func Init ¶
func Init() error
Init is responsible to initialise the scrapeconfigs package. For that it reads all environment variables starting with "PARCA_SCRAPECONFIG_" and uses them to configure the package.
func SetScrapeConfig ¶
func SetScrapeConfig(scrapeConfig parcav1alpha1.ParcaScrapeConfig, pods []corev1.Pod) ([]string, error)
SetScrapeConfig adds or updates a scrape configuration for the provided ParcaScrapeConfig. It returns a list of PodIPs which can then be set in the status of the CR.
Types ¶
type ParcaConfig ¶
type ParcaConfig struct { ObjectStorage *ParcaObjectStorage `json:"object_storage,omitempty"` ScrapeConfigs []parcav1alpha1.ScrapeConfig `json:"scrape_configs,omitempty"` }
ParcaConfig holds all the configuration information for Parca.
type ParcaObjectStorage ¶
Click to show internal directories.
Click to hide internal directories.