mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-20 18:21:09 +01:00
This patch adds a new /agent/v1/metrics that will return metrics on the running Vault agent. Configuration is done using the same telemetry stanza as the Vault server. For now default runtime metrics are returned with a few additional ones specific to the agent: - `vault.agent.auth.failure` and `vault.agent.auth.success` to monitor the correct behavior of the auto auth mechanism - `vault.agent.proxy.success`, `vault.agent.proxy.client_error` and `vault.agent.proxy.error` to check the connection with the Vault server - `vault.agent.cache.hit` and `vault.agent.cache.miss` to monitor the cache Closes https://github.com/hashicorp/vault/issues/8649 Co-authored-by: Theron Voran <tvoran@users.noreply.github.com>
10 lines
295 B
Go
10 lines
295 B
Go
package consts
|
|
|
|
// AgentPathCacheClear is the path that the agent will use as its cache-clear
|
|
// endpoint.
|
|
const AgentPathCacheClear = "/agent/v1/cache-clear"
|
|
|
|
// AgentPathMetrics is the path the the agent will use to expose its internal
|
|
// metrics.
|
|
const AgentPathMetrics = "/agent/v1/metrics"
|