metrics

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectChan

func CollectChan(statFunc func() ChanStats)

func CollectPipes

func CollectPipes(statFunc func() map[string]struct {
	State int
	Lines int
})

func ObserveCoreSummary

func ObserveCoreSummary(plugin, name, pipeline string, status EventStatus, t time.Duration)

func ObserveFilterSummary

func ObserveFilterSummary(plugin, name, pipeline string, status EventStatus, t time.Duration)

func ObserveInputSummary

func ObserveInputSummary(plugin, name, pipeline string, status EventStatus, t time.Duration)

func ObserveMock

func ObserveMock(plugin, name, pipeline string, status EventStatus, t time.Duration)

func ObserveOutputSummary

func ObserveOutputSummary(plugin, name, pipeline string, status EventStatus, t time.Duration)

func ObserveParserSummary

func ObserveParserSummary(plugin, name, pipeline string, status EventStatus, t time.Duration)

func ObserveProcessorSummary

func ObserveProcessorSummary(plugin, name, pipeline string, status EventStatus, t time.Duration)

func ObserveSerializerSummary

func ObserveSerializerSummary(plugin, name, pipeline string, status EventStatus, t time.Duration)

Types

type ChanStats

type ChanStats struct {
	Capacity int
	Length   int
}

type EventStatus

type EventStatus string
const (
	EventAccepted EventStatus = "accepted"
	EventRejected EventStatus = "rejected"
	EventFailed   EventStatus = "failed"
)

type ObserveFunc

type ObserveFunc func(plugin, name, pipeline string, status EventStatus, t time.Duration)

Jump to

Keyboard shortcuts

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