Documentation ¶
Overview ¶
Package promexporter implement an discovery of Prometheus exporter based on Docker labels / Kubernetes annotations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicScrapper ¶
type DynamicScrapper struct { DynamicJobName string Registry *registry.Registry FluentBitInputs []config.LogInput // contains filtered or unexported fields }
DynamicScrapper is a Prometheus scrapper that will update its target based on ListExporters.
func (*DynamicScrapper) GetContainersLabels ¶
func (d *DynamicScrapper) GetContainersLabels() map[string]map[string]string
GetContainersLabels returns a copy of containersLabels.
func (*DynamicScrapper) GetRegisteredLabels ¶
func (d *DynamicScrapper) GetRegisteredLabels() map[string]map[string]string
GetRegisteredLabels returns a copy of registeredLabels.
func (*DynamicScrapper) Update ¶
func (d *DynamicScrapper) Update(containers []facts.Container)
Update updates the scrappers targets using new containers information.
Click to show internal directories.
Click to hide internal directories.