Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

biox commented Oct 28, 2017

niiiice!

@balusarakesh

This comment has been minimized.

Copy link

balusarakesh commented Nov 20, 2019

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
You can’t perform that action at this time.