fluentbit

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FluentbitConfTmpl string

Functions

This section is empty.

Types

type Fluentbit

type Fluentbit struct {
	Nomad     *nomad.Nomad
	ConfFile  string
	TagPrefix string
	Parser    string
	ReloadCmd string
}

func (*Fluentbit) AllocTaskStreamToConfig

func (f *Fluentbit) AllocTaskStreamToConfig(Alloc *api.Allocation, Task *api.Task, Stream string) string

func (*Fluentbit) AllocToConfig

func (f *Fluentbit) AllocToConfig(Alloc *api.Allocation) string

func (*Fluentbit) Run

func (f *Fluentbit) Run()

func (*Fluentbit) UpdateConf

func (f *Fluentbit) UpdateConf(Allocs []*api.Allocation)

type FluentbitConfig

type FluentbitConfig struct {
	Tag            string
	Path           string
	Parser         string
	FilterParsers  []*FluentbitFilterParser
	NomadNamespace string
	NomadJob       string
	NomadTaskGroup string
	NomadTask      string
	NomadAllocID   string
	NomadAllocName string
	NomadNodeID    string
	NomadLogStream string
}

type FluentbitFilterParser

type FluentbitFilterParser struct {
	Key    string
	Parser string
}

Jump to

Keyboard shortcuts

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