nagflux

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: GPL-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDumpfileName added in v0.2.0

func GenDumpfileName(filename string, ending data.Target) string

GenDumpfileName returns the name of an dumpfile

Types

type DumpfileCollector

type DumpfileCollector struct {
	IsRunning bool
	// contains filtered or unexported fields
}

DumpfileCollector collects queries from old runs, which could not been completed.

func NewDumpfileCollector

func NewDumpfileCollector(jobs chan collector.Printable, dumpFile string, target data.Target, fileBufferSize int) *DumpfileCollector

NewDumpfileCollector constructor, which also starts the collector

func (*DumpfileCollector) Stop

func (dump *DumpfileCollector) Stop()

Stop stops the Collector.

type FileCollector

type FileCollector struct {
	// contains filtered or unexported fields
}

FileCollector provides a interface to nagflux, in which you could insert influxdb queries.

func NewNagfluxFileCollector

func NewNagfluxFileCollector(results collector.ResultQueues, folder string, fieldSeparator rune) *FileCollector

NewNagfluxFileCollector constructor, which also starts the collector.

func (*FileCollector) Stop

func (nfc *FileCollector) Stop()

Stop stops the Collector.

type Printable added in v0.2.0

type Printable struct {
	collector.Filterable
	Table     string
	Timestamp string
	// contains filtered or unexported fields
}

Printable converts from nagfluxfile format to X

func (Printable) PrintForElasticsearch added in v0.2.0

func (p Printable) PrintForElasticsearch(version, index string) string

PrintForElasticsearch prints in the elasticsearch json format

func (Printable) PrintForInfluxDB added in v0.2.0

func (p Printable) PrintForInfluxDB(version string) string

PrintForInfluxDB prints the data in influxdb lineformat

Jump to

Keyboard shortcuts

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