vault icon indicating copy to clipboard operation
vault copied to clipboard

Add Connection Status Metric

Open ltcarbonell opened this issue 1 year ago • 3 comments

This adds a new telemetry metric that tracks the connection status of the follower nodes.

Example output:

$ curl -sk -H "X-Vault-Request: true" -H "X-Vault-Token: token" http://127.0.0.1:8200/v1/sys/metrics | jq | grep -A 3 -B 1 'connection_status'
    {
      "Name": "vault.raft_storage.follower.connection_status",
      "Value": 1,
      "Labels": {
        "peer_id": "vault-1"
--
    {
      "Name": "vault.raft_storage.follower.connection_status",
      "Value": 1,
      "Labels": {
        "peer_id": "vault-2"
$ docker stop vault-1
vault-1
$ curl -sk -H "X-Vault-Request: true" -H "X-Vault-Token: token" http://127.0.0.1:8200/v1/sys/metrics | jq | grep -A 3 -B 1 'connection_status'
    {
      "Name": "vault.raft_storage.follower.connection_status",
      "Value": 0,
      "Labels": {
        "peer_id": "vault-1"
--
    {
      "Name": "vault.raft_storage.follower.connection_status",
      "Value": 1,
      "Labels": {
        "peer_id": "vault-2"

ltcarbonell avatar Dec 14 '23 17:12 ltcarbonell

CI Results: All Go tests succeeded! :white_check_mark:

github-actions[bot] avatar Dec 14 '23 18:12 github-actions[bot]

Build Results: All builds succeeded! :white_check_mark:

github-actions[bot] avatar Dec 14 '23 18:12 github-actions[bot]

Changed the milestone on this to 1.16.1 since it's still a draft and today is code freeze

digivava avatar Mar 22 '24 18:03 digivava