commands

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterChunkCommands

func RegisterChunkCommands(app *kingpin.Application)

RegisterChunkCommands registers the ChunkCommand flags with the kingpin applicattion

Types

type AlertCommand

type AlertCommand struct {
	ClientConfig           client.Config
	AlertmanagerConfigFile string
	TemplateFiles          []string
	// contains filtered or unexported fields
}

AlertCommand configures and executes rule related cortex api operations

func (*AlertCommand) Register

func (a *AlertCommand) Register(app *kingpin.Application)

Register rule related commands and flags with the kingpin application

type LoggerConfig

type LoggerConfig struct {
	Level string
}

func (*LoggerConfig) Register

func (l *LoggerConfig) Register(app *kingpin.Application)

Register configures log related flags

type PushGatewayConfig

type PushGatewayConfig struct {
	Endpoint *url.URL
	JobName  string
	Interval time.Duration
	// contains filtered or unexported fields
}

PushGatewayConfig configures the pushgateway

func (*PushGatewayConfig) Register

func (l *PushGatewayConfig) Register(app *kingpin.Application)

Register configures log related flags

func (*PushGatewayConfig) Stop

func (l *PushGatewayConfig) Stop()

Stop shutsdown the pushgateway

type RuleCommand

type RuleCommand struct {
	ClientConfig client.Config

	// Get Rule Groups Configs
	Namespace string
	RuleGroup string

	// Load Rules Configs
	RuleFiles []string
	// contains filtered or unexported fields
}

RuleCommand configures and executes rule related cortex api operations

func (*RuleCommand) Register

func (r *RuleCommand) Register(app *kingpin.Application)

Register rule related commands and flags with the kingpin application

type SchemaConfig

type SchemaConfig struct {
	Configs  []*chunk.PeriodConfig `yaml:"configs"`
	FileName string
}

SchemaConfig contains the config for our chunk index schemas

func (*SchemaConfig) Load

func (cfg *SchemaConfig) Load() error

Load the yaml file, or build the config from legacy command-line flags

Jump to

Keyboard shortcuts

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