Documentation ¶
Overview ¶
Package victoriametrics provides facilities for working with VictoriaMetrics.
Package victoriametrics provides facilities for working with VMAlert.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VMAlert ¶
type VMAlert struct {
// contains filtered or unexported fields
}
VMAlert is responsible for interactions with victoria metrics.
func NewVMAlert ¶
func NewVMAlert(alertRules *prometheus.AlertingRules, baseURL string, params *models.VictoriaMetricsParams) (*VMAlert, error)
NewVMAlert creates new Victoria Metrics Alert service.
func (*VMAlert) RequestConfigurationUpdate ¶
func (svc *VMAlert) RequestConfigurationUpdate()
RequestConfigurationUpdate requests VMAlert configuration update.
type VictoriaMetrics ¶
type VictoriaMetrics struct {
// contains filtered or unexported fields
}
VictoriaMetrics is responsible for interactions with victoria metrics.
func NewVictoriaMetrics ¶
func NewVictoriaMetrics(scrapeConfigPath string, db *reform.DB, baseURL string, params *models.VictoriaMetricsParams) (*VictoriaMetrics, error)
NewVictoriaMetrics creates new Victoria Metrics service.
func (*VictoriaMetrics) IsReady ¶
func (svc *VictoriaMetrics) IsReady(ctx context.Context) error
IsReady verifies that VictoriaMetrics works.
func (*VictoriaMetrics) RequestConfigurationUpdate ¶
func (svc *VictoriaMetrics) RequestConfigurationUpdate()
RequestConfigurationUpdate requests VictoriaMetrics configuration update.
func (*VictoriaMetrics) Run ¶
func (svc *VictoriaMetrics) Run(ctx context.Context)
Run runs VictoriaMetrics configuration update loop until ctx is canceled.