metrics

package
v0.55.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ErrorFLBPluginInit                = "FLBPluginInit"
	ErrorNewPlugin                    = "NewPlugin"
	ErrorFLBPluginFlushCtx            = "FLBPluginFlushCtx"
	ErrorDequeuer                     = "Dequeuer"
	ErrorDequeuerNotValidType         = "DequeuerNotValidType"
	ErrorDequeuerSendRecord           = "DequeuerSendRecord"
	ErrorCreateDecoder                = "CreateDecoder"
	ErrorAddFuncNotACluster           = "AddFuncNotACluster"
	ErrorUpdateFuncOldNotACluster     = "UpdateFuncOldNotACluster"
	ErrorUpdateFuncNewNotACluster     = "AddFuncNewNotACluster"
	ErrorDeleteFuncNotAcluster        = "DeleteFuncNotAcluster"
	ErrorFailedToParseURL             = "FailedToParseUrl"
	ErrorCanNotExtractShoot           = "CanNotExtractShoot"
	ErrorFailedToMakeValiClient       = "FailedToMakeValiClient"
	ErrorCanNotExtractMetadataFromTag = "CanNotExtractMetadataFromTag"
	ErrorK8sLabelsNotFound            = "K8sLabelsNotFound"
	ErrorCreateLine                   = "CreateLine"
	ErrorSendRecordToVali             = "SendRecordToVali"

	MissingMetadataType = "Kubernetes"
)

Contants which hold metric types

Variables

View Source
var (

	// Errors is a prometheus which keeps total number of the errors
	Errors = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "errors_total",
		Help:      "Total number of the errors",
	}, []string{"type"})

	// LogsWithoutMetadata is a prometheus metric which keeps the number of logs without metadata
	LogsWithoutMetadata = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "logs_without_metadata_total",
		Help:      "Total numbers of logs without metadata in the Vali Gardener",
	}, []string{"type"})

	// IncomingLogs is a prometheus metric which keeps the number of incoming logs
	IncomingLogs = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "incoming_logs_total",
		Help:      "Total number of incoming logs in the Vali Gardener",
	}, []string{"host"})

	// IncomingLogsWithEndpoint is a prometheus metric which keeps the number of incoming logs with endpoint
	IncomingLogsWithEndpoint = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "incoming_logs_with_endpoint_total",
		Help:      "Total number of incoming logs with endpoint in the Vali Gardener",
	}, []string{"host"})

	// ForwardedLogs is a prometheus metric which keeps forwarded logs to the Promtail Client
	ForwardedLogs = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "forwarded_logs_total",
		Help:      "Total number of the forwarded logs to Promtail client",
	}, []string{"host"})

	// DroppedLogs is a prometheus metric which keeps the number of dropt logs by the output plugin
	DroppedLogs = promauto.NewCounterVec(prometheus.CounterOpts{
		Namespace: namespace,
		Name:      "dropped_logs_total",
		Help:      "Total number of dropped logs by the output plugin",
	}, []string{"host"})
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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