Documentation
¶
Overview ¶
Package victoriametrics provides facilities for working with VictoriaMetrics.
Index ¶
Constants ¶
View Source
const ( // BasePrometheusConfigPath - basic path with prometheus config, // that user can mount to container. BasePrometheusConfigPath = "/srv/prometheus/prometheus.base.yml" )
Variables ¶
This section is empty.
Functions ¶
func AddInternalServicesToScrape ¶
func AddInternalServicesToScrape(cfg *config.Config, s models.MetricsResolutions, dbaas bool)
AddInternalServicesToScrape adds internal services metrics to scrape targets.
func AddScrapeConfigs ¶
func AddScrapeConfigs(l *logrus.Entry, cfg *config.Config, q *reform.Querier, s *models.MetricsResolutions, pmmAgentID *string, pushMetrics bool) error
AddScrapeConfigs - adds agents scrape configuration to given scrape config, pmm_agent_id and push_metrics used for filtering.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is responsible for interactions with VictoriaMetrics.
func NewVictoriaMetrics ¶
func NewVictoriaMetrics(scrapeConfigPath string, db *reform.DB, baseURL string, params *models.VictoriaMetricsParams) (*Service, error)
NewVictoriaMetrics creates new VictoriaMetrics service.
func (*Service) BuildScrapeConfigForVMAgent ¶
BuildScrapeConfigForVMAgent builds scrape configuration for given pmm-agent.
func (*Service) RequestConfigurationUpdate ¶
func (svc *Service) RequestConfigurationUpdate()
RequestConfigurationUpdate requests VictoriaMetrics configuration update.
Click to show internal directories.
Click to hide internal directories.