Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sarah Chavis <[email protected]>
  • Loading branch information
tvoran and schavis authored Jan 8, 2025
1 parent d5d1587 commit 040368b
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions website/content/docs/platform/k8s/injector/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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):
<Tip>

- `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.

</Tip>
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

Expand Down

0 comments on commit 040368b

Please sign in to comment.