Documentation ¶
Index ¶
- Variables
- func GetMergeErrors(currFn, prevFn string, currType, prevType MergeErrorType) prometheus.Counter
- func InitMetricsForDocs()
- func MergeErrorsInc(currFn, prevFn string, currType, prevType MergeErrorType)
- func MergeOkTotalInc()
- func MergePushedInc()
- func NewBPFCollector() prometheus.Collector
- func RegisterMetrics(group metrics.Group)
- type MergeErrorType
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, }) )
View Source
var ( MissedLink = metrics.MustNewCustomCounter(metrics.NewOpts( consts.MetricsNamespace, "", "missed_link_probes_total", "The total number of Tetragon probe missed by link.", nil, nil, []metrics.UnconstrainedLabel{ metrics.UnconstrainedLabel{Name: "policy", ExampleValue: "monitor_panic"}, metrics.UnconstrainedLabel{Name: "attach", ExampleValue: "sys_panic"}, }, )) MissedProg = metrics.MustNewCustomCounter(metrics.NewOpts( consts.MetricsNamespace, "", "missed_prog_probes_total", "The total number of Tetragon probe missed by program.", nil, nil, []metrics.UnconstrainedLabel{ metrics.UnconstrainedLabel{Name: "policy", ExampleValue: "monitor_panic"}, metrics.UnconstrainedLabel{Name: "attach", ExampleValue: "sys_panic"}, }, )) )
Functions ¶
func GetMergeErrors ¶
func GetMergeErrors(currFn, prevFn string, currType, prevType MergeErrorType) prometheus.Counter
Get a new handle on the mergeErrors metric for a current and previous function name and probe type
func InitMetricsForDocs ¶ added in v1.1.0
func InitMetricsForDocs()
func MergeErrorsInc ¶
func MergeErrorsInc(currFn, prevFn string, currType, prevType MergeErrorType)
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()
func NewBPFCollector ¶ added in v1.2.0
func NewBPFCollector() prometheus.Collector
func RegisterMetrics ¶ added in v1.2.0
Types ¶
type MergeErrorType ¶ added in v1.1.0
type MergeErrorType int
const ( MergeErrorTypeEnter MergeErrorType = iota MergeErrorTypeExit )
func (MergeErrorType) String ¶ added in v1.1.0
func (t MergeErrorType) String() string
Click to show internal directories.
Click to hide internal directories.