processexecmetrics

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MissingParentErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "exec_missing_parent_errors_total",
		Help:        "The total of times a given parent exec id could not be found in an exec event.",
		ConstLabels: nil,
	}, []string{"parent_exec_id"})
	SameExecIdErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "exec_parent_child_same_id_errors_total",
		Help:        "The total of times an error occurs due to a parent and child process have the same exec id.",
		ConstLabels: nil,
	}, []string{"exec_id"})
)

Functions

func GetMissingParent

func GetMissingParent(execId string) prometheus.Counter

Get a new handle on the missingParentErrors metric for an execId

func GetSameExecId

func GetSameExecId(execId string) prometheus.Counter

Get a new handle on the sameExecIdErrors metric for an execId

func InitMetrics added in v0.11.0

func InitMetrics(registry *prometheus.Registry)

func MissingParentInc

func MissingParentInc(execId string)

Increment the missingParentErrors metric for an execId

func SameExecIdInc

func SameExecIdInc(execId string)

Increment the sameExecIdErrors metric for an execId

Types

This section is empty.

Jump to

Keyboard shortcuts

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