nagflux

package
v0.0.0-...-609edd2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenDumpfileName

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

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

Printable converts from nagfluxfile format to X

func (Printable) PrintForElasticsearch

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

PrintForElasticsearch prints in the elasticsearch json format

func (Printable) PrintForInfluxDB

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