Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigSync ¶
func ConfigSync(logger log.Logger, cli client.PrometheusClient, dir string, dryRun bool) error
ConfigSync loads YAML files from a directory and syncs them to the provided PrometheusClient API. All YAML files will be synced and must be valid.
The base name of the YAML file (i.e., without the file extension) is used as the config name.
ConfigSync will completely overwrite the set of active configs present in the provided PrometheusClient - configs present in the API but not in the directory will be deleted.
func ConfigsFromDirectory ¶
func ConfigsFromDirectory(dir string) ([]*instance.Config, error)
ConfigsFromDirectory parses all YAML files from a directory and loads each as an instance.Config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.