# Functions
AddHTTPSDConfigToPromConfig adds HTTP SD (Service Discovery) configuration to the Prometheus configuration.
AddTAConfigToPromConfig adds or updates the target_allocator configuration in the Prometheus configuration.
ConfigToPromConfig converts the incoming configuration object into the Prometheus receiver config.
GetScrapeConfigsFromPromConfig extracts the scrapeConfig array from prometheus receiver config.
UnescapeDollarSignsInPromConfig replaces "$$" with "$" in the "replacement" fields of both "relabel_configs" and "metric_relabel_configs" in a Prometheus configuration file.
ValidatePromConfig checks if the prometheus receiver config is valid given other collector-level settings.
ValidateTargetAllocatorConfig checks if the Target Allocator config is valid In order for Target Allocator to do anything useful, at least one of the following has to be true: - at least one scrape config has to be defined in Prometheus receiver configuration - PrometheusCR has to be enabled in target allocator settings.