victoriametrics

package
v2.11.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: AGPL-3.0 Imports: 19 Imported by: 1

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) IsReady

func (svc *VMAlert) IsReady(ctx context.Context) error

IsReady verifies that VMAlert works.

func (*VMAlert) RequestConfigurationUpdate

func (svc *VMAlert) RequestConfigurationUpdate()

RequestConfigurationUpdate requests VMAlert configuration update.

func (*VMAlert) Run

func (svc *VMAlert) Run(ctx context.Context)

Run runs VMAlert configuration update loop until ctx is canceled.

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.

Jump to

Keyboard shortcuts

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