agent

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigForHost

func ConfigForHost(bz []byte, newHost string, halos []string, relayer bool) []byte

ConfigForHost returns a new prometheus agent config with the given host and halo targets.

It removes the relayer targets if not enabled.
It replaces the halo targets with provided.
It replaces the host label.

func WriteConfig

func WriteConfig(ctx context.Context, testnet types.Testnet, secrets Secrets) error

Types

type Secrets

type Secrets struct {
	URL  string
	User string
	Pass string
}

Jump to

Keyboard shortcuts

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