promtail

package
v0.0.0-...-858ae3d Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Promtail

type Promtail struct {
	Nomad       *nomad.Nomad
	TargetsFile string
}

func (*Promtail) AllocTaskStreamToScrapeConfig

func (p *Promtail) AllocTaskStreamToScrapeConfig(Alloc *api.Allocation, Task *api.Task, Stream string) *ScrapeConfig

func (*Promtail) AllocToScrapeConfigs

func (p *Promtail) AllocToScrapeConfigs(Alloc *api.Allocation) []*ScrapeConfig

func (*Promtail) Run

func (p *Promtail) Run()

func (*Promtail) UpdatePromtailTargets

func (p *Promtail) UpdatePromtailTargets(Allocs []*api.Allocation)

type ScrapeConfig

type ScrapeConfig struct {
	Targets []string          `yaml:"targets"`
	Labels  map[string]string `yaml:"labels"`
}

Jump to

Keyboard shortcuts

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