prometheus

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

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

Factory implements storage.Factory and creates storage components backed by memory store.

func NewFactory

func NewFactory() *Factory

NewFactory creates a new Factory.

func (*Factory) AddFlags

func (f *Factory) AddFlags(flagSet *flag.FlagSet)

AddFlags implements plugin.Configurable.

func (*Factory) CreateMetricsReader

func (f *Factory) CreateMetricsReader() (metricsstore.Reader, error)

CreateMetricsReader implements storage.MetricsFactory.

func (*Factory) InitFromViper

func (f *Factory) InitFromViper(v *viper.Viper, logger *zap.Logger)

InitFromViper implements plugin.Configurable.

func (*Factory) Initialize

func (f *Factory) Initialize(logger *zap.Logger) error

Initialize implements storage.MetricsFactory.

type Options

type Options struct {
	Primary namespaceConfig `mapstructure:",squash"`
}

Options stores the configuration entries for this storage.

func NewOptions

func NewOptions(primaryNamespace string) *Options

NewOptions creates a new Options struct.

func (*Options) AddFlags

func (opt *Options) AddFlags(flagSet *flag.FlagSet)

AddFlags from this storage to the CLI.

func (*Options) InitFromViper

func (opt *Options) InitFromViper(v *viper.Viper) error

InitFromViper initializes the options struct with values from Viper.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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