Documentation
¶
Index ¶
- func LoadConfig(filename string, expandENV bool, cfg *cortex.Config) error
- func RegisterChunkCommands(app *kingpin.Application)
- type AccessControlCommand
- type AlertCommand
- type AlertmanagerCommand
- type AnalyseCommand
- type BucketValidationCommand
- type GrafanaAnalyseCommand
- type LoadgenCommand
- type LoggerConfig
- type OverridesExporterCommand
- type PrometheusAnalyseCommand
- type PushGatewayConfig
- type RemoteReadCommand
- type RuleCommand
- type SchemaConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶ added in v0.4.1
LoadConfig read YAML-formatted config from filename into cfg.
func RegisterChunkCommands ¶
func RegisterChunkCommands(app *kingpin.Application)
RegisterChunkCommands registers the ChunkCommand flags with the kingpin applicattion
Types ¶
type AccessControlCommand ¶ added in v0.7.1
AccessControlCommand is the kingpin command for ACLs.
func (*AccessControlCommand) Register ¶ added in v0.7.1
func (a *AccessControlCommand) Register(app *kingpin.Application)
Register is used to register the command to a parent command.
type AlertCommand ¶
type AlertCommand struct {
CortexURL string
IgnoreString string
IgnoreAlerts map[string]interface{}
SourceLabel string
NumSources int
GracePeriod int
CheckFrequency int
ClientConfig client.Config
// contains filtered or unexported fields
}
AlertCommand configures and executes rule related PromQL queries for alerts comparison.
func (*AlertCommand) Register ¶
func (a *AlertCommand) Register(app *kingpin.Application)
type AlertmanagerCommand ¶
type AlertmanagerCommand struct {
ClientConfig client.Config
AlertmanagerURL url.URL
AlertmanagerConfigFile string
TemplateFiles []string
DisableColor bool
// contains filtered or unexported fields
}
AlertmanagerCommand configures and executes rule related cortex api operations
func (*AlertmanagerCommand) Register ¶
func (a *AlertmanagerCommand) Register(app *kingpin.Application)
Register rule related commands and flags with the kingpin application
type AnalyseCommand ¶ added in v0.8.0
type AnalyseCommand struct {
}
func (*AnalyseCommand) Register ¶ added in v0.8.0
func (cmd *AnalyseCommand) Register(app *kingpin.Application)
type BucketValidationCommand ¶ added in v0.9.0
type BucketValidationCommand struct {
// contains filtered or unexported fields
}
BucketValidationCommand is the kingpin command for bucket validation.
func (*BucketValidationCommand) Register ¶ added in v0.9.0
func (b *BucketValidationCommand) Register(app *kingpin.Application)
Register is used to register the command to a parent command.
type GrafanaAnalyseCommand ¶ added in v0.8.0
type GrafanaAnalyseCommand struct {
// contains filtered or unexported fields
}
func (*GrafanaAnalyseCommand) Register ¶ added in v0.8.0
func (cmd *GrafanaAnalyseCommand) Register(app *kingpin.Application)
type LoadgenCommand ¶
type LoadgenCommand struct {
// contains filtered or unexported fields
}
func (*LoadgenCommand) Register ¶
func (c *LoadgenCommand) Register(app *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 OverridesExporterCommand ¶ added in v0.4.0
type OverridesExporterCommand struct {
// contains filtered or unexported fields
}
func NewOverridesExporterCommand ¶ added in v0.4.0
func NewOverridesExporterCommand() *OverridesExporterCommand
func (*OverridesExporterCommand) AllByUserID ¶ added in v0.9.0
func (o *OverridesExporterCommand) AllByUserID() map[string]*validation.Limits
AllByUserID implements validation.TenantLimits.
func (*OverridesExporterCommand) ByUserID ¶ added in v0.9.0
func (o *OverridesExporterCommand) ByUserID(userID string) *validation.Limits
ByUserID implements validation.TenantLimits.
func (*OverridesExporterCommand) Register ¶ added in v0.4.0
func (o *OverridesExporterCommand) Register(app *kingpin.Application)
type PrometheusAnalyseCommand ¶ added in v0.8.0
type PrometheusAnalyseCommand struct {
// contains filtered or unexported fields
}
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
type RemoteReadCommand ¶ added in v0.7.0
type RemoteReadCommand struct {
// contains filtered or unexported fields
}
func (*RemoteReadCommand) Register ¶ added in v0.7.0
func (c *RemoteReadCommand) Register(app *kingpin.Application)
type RuleCommand ¶
type RuleCommand struct {
ClientConfig client.Config
// Backend type (cortex | loki)
Backend string
// Get Rule Groups Configs
Namespace string
RuleGroup string
// Load Rules Config
RuleFilesList []string
RuleFiles string
RuleFilesPath string
// Sync/Diff Rules Config
Namespaces string
IgnoredNamespaces string
// Prepare Rules Config
InPlaceEdit bool
AggregationLabel string
AggregationLabelExcludedRuleGroups string
// Lint Rules Config
LintDryRun bool
// Rules check flags
Strict bool
// List Rules Config
Format string
DisableColor bool
// contains filtered or unexported fields
}
RuleCommand configures and executes rule related cortex 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