agentctl

package
v0.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL