setup

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package setup contains common logic for setting up the export package across binaries.

Index

Constants

View Source
const (
	HABackendNone       = "none"
	HABackendKubernetes = "kube"
)

Supported HA backend modes.

Variables

This section is empty.

Functions

func FromFlags

func FromFlags(a *kingpin.Application, userAgent string) func(log.Logger, prometheus.Registerer) (*export.Exporter, error)

FromFlags returns a constructor for a new exporter that is configured through flags that are registered with the given application. The constructor must be called after the flags have been parsed.

func Global

func Global() *export.Exporter

Global returns the global instance of the GCM exporter.

func SetGlobal

func SetGlobal(exporter *export.Exporter) (err error)

SetGlobal sets the global instance of the GCM exporter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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