Skip to content

Instantly share code, notes, and snippets.

@ytjohn
Forked from tam7t/vault-statsd-mapping.conf
Created May 23, 2018 18:22
Show Gist options
  • Save ytjohn/e306bce80236c5a7a8509e1638318b2b to your computer and use it in GitHub Desktop.
Save ytjohn/e306bce80236c5a7a8509e1638318b2b 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment