agent

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 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, geths []string, services map[string]bool) []byte

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

It removes the serviceX targets if not enabled.
It replaces the halo targets with provided.
It replaces the geth 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