Documentation
¶
Index ¶
- Constants
- Variables
- func NewRecordingRulesValue(p *RecordingRules) *recordingRulesArrayValue
- func NewRegexValue(p *[]*regexp.Regexp, val []*regexp.Regexp) *regexArrayValue
- func NewTimeValue(p *time.Time, val time.Time) *timeValue
- type BackfillConfig
- type CompactConfig
- type GenerateConfig
- type MetricConfig
- type MigrateConfig
- type RecordingRule
- type RecordingRules
- type Scheme
Constants ¶
View Source
const ( DefaultSampleInterval = time.Second * 15 DefaultHost = "localhost" DefaultPort = 9089 DefaultScheme = Http DefaultDataDirectory = "data/" )
View Source
const (
DefaultMetricConfigFile = ""
)
Variables ¶
View Source
var ( DefaultMatcher []string DefaultRuleGroupFilters = []*regexp.Regexp{regexp.MustCompile(".+")} DefaultRuleNameFilters = []*regexp.Regexp{regexp.MustCompile(".+")} YamlFileExtensions = []string{"yml", "yaml"} )
View Source
var (
Now = time.Now().UTC()
)
Functions ¶
func NewRecordingRulesValue ¶
func NewRecordingRulesValue(p *RecordingRules) *recordingRulesArrayValue
Types ¶
type BackfillConfig ¶
type BackfillConfig struct {
Start time.Time
End time.Time
SampleInterval time.Duration
RuleConfig RecordingRules
RuleGroupFilters []*regexp.Regexp
RuleNameFilters []*regexp.Regexp
OutputDirectory string
Parallelism uint8
}
BackfillConfig represents the configuration of the backfill command.
type CompactConfig ¶
type CompactConfig struct {
Directory string
}
CompactConfig represents the configuration of the compact command.
type GenerateConfig ¶
type GenerateConfig struct {
Start time.Time
End time.Time
OutputDirectory string
SampleInterval time.Duration
MetricConfigFile string
MetricConfig *MetricConfig
RuleConfig RecordingRules
Parallelism uint8
}
GenerateConfig represents the configuration of the generate command.
type MetricConfig ¶
type MigrateConfig ¶
type MigrateConfig struct {
Scheme Scheme
Host string
Port uint16
Start time.Time
End time.Time
SampleInterval time.Duration
MatcherSetExpressions []string
OutputDirectory string
Parallelism uint8
}
MigrateConfig represents the configuration of the migrate command.
type RecordingRule ¶
func (RecordingRule) String ¶
func (r RecordingRule) String() string
type RecordingRules ¶
type RecordingRules []*RecordingRule
Click to show internal directories.
Click to hide internal directories.