diff --git a/docs/content/en/docs/reference/metrics.md b/docs/content/en/docs/reference/metrics.md index fd7bddeda3d..0b45f27fd27 100644 --- a/docs/content/en/docs/reference/metrics.md +++ b/docs/content/en/docs/reference/metrics.md @@ -195,6 +195,10 @@ Policy filter metrics. For internal use only. | `op ` | `add, add-container, delete, update` | | `subsys` | `pod-handlers, rthooks` | +### `tetragon_process_cache_size` + +The size of the process cache + ### `tetragon_process_loader_stats` Process Loader event statistics. For internal use only. diff --git a/pkg/metrics/metricsconfig/initmetrics.go b/pkg/metrics/metricsconfig/initmetrics.go index 5d883c5007e..5fa8e91c2ed 100644 --- a/pkg/metrics/metricsconfig/initmetrics.go +++ b/pkg/metrics/metricsconfig/initmetrics.go @@ -20,6 +20,7 @@ import ( "github.com/cilium/tetragon/pkg/metrics/syscallmetrics" "github.com/cilium/tetragon/pkg/metrics/watchermetrics" "github.com/cilium/tetragon/pkg/observer" + "github.com/cilium/tetragon/pkg/process" "github.com/cilium/tetragon/pkg/version" grpcmetrics "github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus" "github.com/prometheus/client_golang/prometheus" @@ -35,6 +36,7 @@ func initHealthMetrics(registry *prometheus.Registry) { mapmetrics.InitMetrics(registry) opcodemetrics.InitMetrics(registry) policyfiltermetrics.InitMetrics(registry) + process.InitMetrics(registry) ringbufmetrics.InitMetrics(registry) ringbufqueuemetrics.InitMetrics(registry) watchermetrics.InitMetrics(registry)