Skip to content

Instantly share code, notes, and snippets.

@tam7t
Last active November 5, 2020 13:45
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tam7t/64291f4ebbc1c45a1fc876b6c0613221 to your computer and use it in GitHub Desktop.
Save tam7t/64291f4ebbc1c45a1fc876b6c0613221 to your computer and use it in GitHub Desktop.
Example vault statsd prometheus exporter mapping
vault.barrier.*
name="vault_barrier"
method="$1"
vault.consul.*
name="vault_consul"
method="$1"
vault.route.*.*
name="vault_route"
method="$1"
path="$2"
vault.rollback.attempt.*
name="vault_rollback_attempt"
mount="$1"
vault.*.expire.num_leases
name="vault_expire_num_leases"
host="$1"
vault.*.runtime.alloc_bytes
name="vault_runtime_alloc_bytes"
host="$1"
vault.*.runtime.free_count
name="vault_runtime_free_count"
host="$1"
vault.*.runtime.heap_objects
name="vault_runtime_heap_objects"
host="$1"
vault.*.runtime.malloc_count
name="vault_runtime_malloc_count"
host="$1"
vault.*.runtime.num_goroutines
name="vault_runtime_num_goroutines"
host="$1"
vault.*.runtime.sys_bytes
name="vault_runtime_sys_bytes"
host="$1"
vault.*.runtime.total_gc_pause_ns
name="vault_runtime_total_gc_pause_ns"
host="$1"
vault.*.runtime.total_gc_runs
name="vault_runtime_total_gc_runs"
host="$1"
vault.*.runtime.gc_pause_ns
name="vault_runtime_gc_pause_ns"
host="$1"
@biox
Copy link

biox commented Oct 28, 2017

niiiice!

@balusarakesh
Copy link

all the ones with vault.*. must be changed to vault.runtime, there's an additional *. in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment