promexporter

package
v0.0.0-...-b19e04c Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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 informations.

Jump to

Keyboard shortcuts

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