Skip to content

Commit

Permalink
Remove tetragon_errors_total{type="event_missing_process_info"} metric
Browse files Browse the repository at this point in the history
It has been replaced by more intuitive metric
tetragon_events_missing_process_info_total

Signed-off-by: Anna Kapuscinska <anna@isovalent.com>
  • Loading branch information
lambdanis committed Sep 2, 2024
1 parent 0b51f95 commit 1041ffb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 2 additions & 0 deletions contrib/upgrade-notes/latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,5 @@ tetragon:
`tetragon_event_cache_fetch_failures_total{entry_type="<entry_type>"}`.
* `tetragon_event_cache_accesses_total` metric is renamed to `tetragon_event_cache_inserts_total`.
* `tetragon_event_cache_retries_total` metric is renamed to `tetragon_event_cache_fetch_retries_total`.
* `tetragon_errors_total{type="event_missing_process_info"}` metric is replaced by
`tetragon_events_missing_process_info_total`.
2 changes: 1 addition & 1 deletion docs/content/en/docs/reference/metrics.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions pkg/metrics/errormetrics/errormetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ type ErrorType int
const (
// Tid and Pid mismatch that could affect BPF and user space caching logic
ProcessPidTidMismatch ErrorType = iota
// An event is missing process info.
EventMissingProcessInfo
// An error occurred in an event handler.
HandlerError
// An event finalizer on Process failed
Expand All @@ -32,7 +30,6 @@ const (

var errorTypeLabelValues = map[ErrorType]string{
ProcessPidTidMismatch: "process_pid_tid_mismatch",
EventMissingProcessInfo: "event_missing_process_info",
HandlerError: "handler_error",
EventFinalizeProcessInfoFailed: "event_finalize_process_info_failed",
ProcessMetadataUsernameFailed: "process_metadata_username_failed",
Expand Down
2 changes: 0 additions & 2 deletions pkg/metrics/eventmetrics/eventmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/cilium/tetragon/pkg/logger"
"github.com/cilium/tetragon/pkg/metrics"
"github.com/cilium/tetragon/pkg/metrics/consts"
"github.com/cilium/tetragon/pkg/metrics/errormetrics"
"github.com/cilium/tetragon/pkg/metrics/syscallmetrics"
"github.com/cilium/tetragon/pkg/option"
"github.com/cilium/tetragon/pkg/reader/exec"
Expand Down Expand Up @@ -119,7 +118,6 @@ func GetProcessInfo(process *tetragon.Process) (binary, pod, workload, namespace
pod = process.Pod.Name
}
} else {
errormetrics.ErrorTotalInc(errormetrics.EventMissingProcessInfo)
missingProcessInfo.Inc()
}
return binary, pod, workload, namespace
Expand Down

0 comments on commit 1041ffb

Please sign in to comment.