diff --git a/website/content/docs/platform/k8s/injector/index.mdx b/website/content/docs/platform/k8s/injector/index.mdx index ea5088126907..f0b095aa466a 100644 --- a/website/content/docs/platform/k8s/injector/index.mdx +++ b/website/content/docs/platform/k8s/injector/index.mdx @@ -191,24 +191,30 @@ An example of mounting a Vault Agent configmap [can be found here](/vault/docs/p ### Injector telemetry -Vault Agent Injector collects the following Prometheus metrics (along with the -default set of golang metrics): + -- `vault_agent_injector_request_queue_length` - A gauge of webhook requests in - the injector's queue. +Set [`injector.metrics.enabled`](/vault/docs/platform/k8s/helm/configuration#metrics) +to `true` in the Helm chart to start collecting injector metrics. + + +Vault Agent injector collects the following Prometheus metrics in addition to +the default set of `golang` metrics: + +- `vault_agent_injector_request_queue_length` - The number of pending webhook requests for the injector. - `vault_agent_injector_request_processing_duration_ms` - A histogram of webhook request processing times in milliseconds. - `vault_agent_injector_injections_by_namespace_total` - The total count of - Agent container injections by Kubernetes `namespace` and `injection_type`, - where `injection_type` is `init_only`, `sidecar_only`, or `init_and_sidecar`. + Agent container injections, grouped by Kubernetes `namespace` and `injection_type`. + Vault Agent counts the following injection types: + - `init_only` + - `sidecar_only` + - `init_and_sidecar`. - `vault_agent_injector_failed_injections_by_namespace_total` - The total count - of failed Agent Sidecar injections by Kubernetes `namespace`. + of failed Agent Sidecar injections, grouped by Kubernetes `namespace`. -Enable metrics collection in the injector by setting [`injector.metrics.enabled: -true`](/vault/docs/platform/k8s/helm/configuration#metrics) in the Helm chart. ## Tutorial