今天會來介紹如何使用Prometheus來監控Vault.
telemetry {
prometheus_retention_time = "30s"
disable_hostname = false
}
- job_name: 'vault'
static_configs:
- targets: ['10.168.1.175:8200']
scheme: "http"
metrics_path: "/v1/sys/metrics"
params:
format: ['prometheus']
bearer_token: "s.74W0ZILvI9fbZRn9hxKify2r"