Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorTotal = promauto.NewCounterVec(prometheus.CounterOpts{ Name: consts.MetricNamePrefix + "errors_total", Help: "The total number of Tetragon errors. For internal use only.", ConstLabels: nil, }, []string{"type"}) HandlerErrors = promauto.NewCounterVec(prometheus.CounterOpts{ Name: consts.MetricNamePrefix + "handler_errors", Help: "The total number of event handler errors. For internal use only.", ConstLabels: nil, }, []string{"opcode", "error_type"}) )
Functions ¶
func GetErrorTotal ¶
func GetErrorTotal(t ErrorType) prometheus.Counter
Get a new handle on an ErrorTotal metric for an ErrorType
func GetHandlerErrors ¶ added in v0.8.3
func GetHandlerErrors(opcode int, err error) prometheus.Counter
Get a new handle on the HandlerErrors metric
func HandlerErrorsInc ¶ added in v0.8.3
Increment the HandlerErrors metric
Types ¶
type ErrorType ¶
type ErrorType string
var ( // Parent process was not found in the pid map for a process without the clone flag. NoParentNoClone ErrorType = "no_parent_no_clone" // Process not found on get() call. ProcessCacheMissOnGet ErrorType = "process_cache_miss_on_get" // Process evicted from the cache. ProcessCacheEvicted ErrorType = "process_cache_evicted" // Process not found on remove() call. ProcessCacheMissOnRemove ErrorType = "process_cache_miss_on_remove" // Missing event handler. UnhandledEvent ErrorType = "unhandled_event" // Event cache podInfo retries failed. EventCachePodInfoRetryFailed ErrorType = "event_cache_podinfo_retry_failed" // Event cache endpoint retries failed. EventCacheEndpointRetryFailed ErrorType = "event_cache_endpoint_retry_failed" // Event cache failed to set process information for an event. EventCacheProcessInfoFailed ErrorType = "event_cache_process_info_failed" // Event cache failed to set parent information for an event. EventCacheParentInfoFailed ErrorType = "event_cache_parent_info_failed" // There was an invalid entry in the pid map. PidMapInvalidEntry ErrorType = "pid_map_invalid_entry" // An entry was evicted from the pid map because the map was full. PidMapEvicted ErrorType = "pid_map_evicted" // PID not found in the pid map on remove() call. PidMapMissOnRemove ErrorType = "pid_map_miss_on_remove" // An exec event without parent info. ExecMissingParent ErrorType = "exec_missing_parent" // An event is missing process info. EventMissingProcessInfo ErrorType = "event_missing_process_info" // An error occurred in an event handler. HandlerError ErrorType = "handler_error" )
Click to show internal directories.
Click to hide internal directories.