Documentation ¶
Index ¶
- Variables
- func ErrorTotalInc(er ErrorType)
- func GetErrorTotal(er ErrorType) prometheus.Counter
- func GetHandlerErrors(opcode ops.OpCode, er EventHandlerError) prometheus.Counter
- func HandlerErrorsInc(opcode ops.OpCode, er EventHandlerError)
- func InitMetrics()
- func RegisterMetrics(group metrics.Group)
- type ErrorType
- type EventHandlerError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorTotal = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: consts.MetricsNamespace, Name: "errors_total", Help: "The total number of Tetragon errors. For internal use only.", ConstLabels: nil, }, []string{"type"}) HandlerErrors = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: consts.MetricsNamespace, Name: "handler_errors_total", Help: "The total number of event handler errors. For internal use only.", ConstLabels: nil, }, []string{"opcode", "error_type"}) )
Functions ¶
func GetErrorTotal ¶
func GetErrorTotal(er ErrorType) prometheus.Counter
Get a new handle on an ErrorTotal metric for an ErrorType
func GetHandlerErrors ¶
func GetHandlerErrors(opcode ops.OpCode, er EventHandlerError) prometheus.Counter
Get a new handle on the HandlerErrors metric
func HandlerErrorsInc ¶
func HandlerErrorsInc(opcode ops.OpCode, er EventHandlerError)
Increment the HandlerErrors metric
func InitMetrics ¶ added in v1.3.2
func InitMetrics()
func RegisterMetrics ¶ added in v1.3.2
Types ¶
type ErrorType ¶
type ErrorType int
const ( // Tid and Pid mismatch that could affect BPF and user space caching logic ProcessPidTidMismatch ErrorType = iota // An event finalizer on Process failed EventFinalizeProcessInfoFailed // Failed to resolve Process uid to username ProcessMetadataUsernameFailed // The username resolution was skipped since the process is not in host // namespaces. ProcessMetadataUsernameIgnoredNotInHost )
type EventHandlerError ¶ added in v1.3.2
type EventHandlerError int
const ( HandlePerfUnknownOp EventHandlerError = iota HandlePerfHandlerError )
TODO: Recognize different errors returned by individual handlers
func (EventHandlerError) String ¶ added in v1.3.2
func (e EventHandlerError) String() string
Click to show internal directories.
Click to hide internal directories.