outputs

package
v0.0.0-...-12c1823 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileOutput

type FileOutput struct {
	// contains filtered or unexported fields
}

FileOutput stores values needed by the File output

func (*FileOutput) WriteOutput

func (o *FileOutput) WriteOutput(ctx context.Context, scrapeConfigs []*types.ScrapeConfig) (err error)

WriteOutput writes Prometheus configuration to files

type K8sSecretOutput

type K8sSecretOutput struct {
	// contains filtered or unexported fields
}

K8sSecretOutput stores data needed to fill a Kubernetes Secret

func (*K8sSecretOutput) WriteOutput

func (o *K8sSecretOutput) WriteOutput(ctx context.Context, scrapeConfigs []*types.ScrapeConfig) (err error)

WriteOutput writes Prometheus configuration to a Kubernetes Secret

type Output

type Output interface {
	WriteOutput(ctx context.Context, scrapeConfigs []*types.ScrapeConfig) (err error)
}

Output is an abstraction to the different output types

func Setup

func Setup(cfg *config.OutputConfig) (Output, error)

Setup returns an output type

type StdoutOutput

type StdoutOutput struct {
	// contains filtered or unexported fields
}

StdoutOutput stores values needed to print output to stdout

func (*StdoutOutput) WriteOutput

func (o *StdoutOutput) WriteOutput(ctx context.Context, scrapeConfigs []*types.ScrapeConfig) (err error)

WriteOutput writes Prometheus configuration to stdout

Jump to

Keyboard shortcuts

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