Skip to content

Commit

Permalink
eventmetrics: Rename tetragon_missed_events_total
Browse files Browse the repository at this point in the history
There are a few places where events be "missed", so let's make it clear in the
metric name that's it's counting kernel misses.

Signed-off-by: Anna Kapuscinska <[email protected]>
  • Loading branch information
lambdanis committed Aug 27, 2024
1 parent fb06a51 commit 17c5346
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions contrib/upgrade-notes/latest.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ tetragon:

* `tetragon_policyfilter_metrics_total` metric is renamed to `tetragon_policyfilter_operations_total`, and its `op`
label is renamed to `operation`.
* `tetragon_missed_events_total` metric is renamed to `tetragon_bpf_missed_events_total`.
18 changes: 9 additions & 9 deletions docs/content/en/docs/reference/metrics.md

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

File renamed without changes.
4 changes: 2 additions & 2 deletions pkg/metrics/eventmetrics/eventmetrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ var (
ConstLabels: nil,
}, []string{"type"})
MissedEvents = metrics.MustNewCustomCounter(metrics.NewOpts(
consts.MetricsNamespace, "", "missed_events_total",
"The total number of Tetragon events per type that are failed to sent from the kernel.",
consts.MetricsNamespace, "bpf", "missed_events_total",
"Number of Tetragon perf events that are failed to be sent from the kernel.",
nil, []metrics.ConstrainedLabel{metrics.OpCodeLabel, perfEventErrorLabel}, nil,
))
FlagCount = prometheus.NewCounterVec(prometheus.CounterOpts{
Expand Down

0 comments on commit 17c5346

Please sign in to comment.