Sign inSign up

damoun/vault-exporter

By damoun

•Updated almost 7 years ago

Image
1

611

damoun/vault-exporter repository overview

⁠Vault Exporter

CircleCI Docker Pulls

Export Hashicorp Vault⁠ health to Prometheus⁠.

To run it:

make
./vault_exporter [flags]

⁠Exported Metrics

MetricMeaningLabels
vault_upWas the last query of Vault successful,
vault_initializedIs the Vault initialised (according to this node).
vault_sealedIs the Vault node sealed.
vault_standbyIs this Vault node in standby.
vault_replication_dr_primaryIs this Vault node a primary disaster recovery replica.
vault_replication_dr_secondaryIs this Vault node a secondary disaster recovery replica.
vault_replication_performance_primaryIs this Vault node a primary performance replica.
vault_replication_performance_secondaryIs this Vault node a secondary performance replica.
vault_infoVarious info about the Vault node.version, cluster_name, cluster_id
⁠Flags
./vault_exporter --help
  • vault-tls-cacert: The path to a PEM-encoded CA cert file to use to verify the Vault server SSL certificate.
  • vault-tls-client-cert: The path to the certificate for Vault communication.
  • vault-tls-client-key: The path to the private key for Vault communication.
  • insecure-ssl: Set SSL to ignore certificate validation.
  • log.format: Set the log target and format. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true
  • log.level: Logging level. info by default.
  • version: Show application version.
  • web.listen-address: Address to listen on for web interface and telemetry.
  • web.telemetry-path: Path under which to expose metrics.
⁠Environment variables

The vault_exporter supports all environment variables provided by the official vault/api package⁠, including VAULT_TOKEN to set the Auth⁠ token.

⁠Useful Queries

Is my Vault sealed?

vault_sealed != 0

Is my Vault Up?

vault_up != 0

⁠Using Docker

You can deploy this exporter using the damoun/vault-exporter⁠ Docker image.

For example:

docker pull damoun/vault-exporter

docker run -d -p 9410:9410 \
        --env VAULT_ADDR=http://127.0.0.1:8200 \
        damoun/vault-exporter

Tag summary

Content type

Image

Digest

Size

8.5 MB

Last updated

about 7 years ago

docker pull damoun/vault-exporter