kprobemetrics

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MergeErrors = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "generic_kprobe_merge_errors_total",
		Help:        "The total number of failed attempts to merge a kprobe and kretprobe event.",
		ConstLabels: nil,
	}, []string{"curr_fn", "curr_type", "prev_fn", "prev_type"})
	MergeOkTotal = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "generic_kprobe_merge_ok_total",
		Help:        "The total number of successful attempts to merge a kprobe and kretprobe event.",
		ConstLabels: nil,
	})
	MergePushed = prometheus.NewCounter(prometheus.CounterOpts{
		Namespace:   consts.MetricsNamespace,
		Name:        "generic_kprobe_merge_pushed_total",
		Help:        "The total number of pushed events for later merge.",
		ConstLabels: nil,
	})
)

Functions

func GetMergeErrors

func GetMergeErrors(currFn, currType, prevFn, prevType string) prometheus.Counter

Get a new handle on the mergeErrors metric for a current and previous function name and probe type

func InitMetrics added in v0.11.0

func InitMetrics(registry *prometheus.Registry)

func MergeErrorsInc

func MergeErrorsInc(currFn, currType, prevFn, prevType string)

Increment the mergeErrors metric for a current and previous function name and probe type

func MergeOkTotalInc added in v0.8.3

func MergeOkTotalInc()

func MergePushedInc added in v0.8.3

func MergePushedInc()

Types

This section is empty.

Jump to

Keyboard shortcuts

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