Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monitoring Vault server #4

Closed
tamalsaha opened this issue Sep 3, 2018 · 5 comments
Closed

Monitoring Vault server #4

tamalsaha opened this issue Sep 3, 2018 · 5 comments
Assignees
Milestone

Comments

@tamalsaha
Copy link
Member Author

tamalsaha commented Sep 3, 2018

@sanjid133
Copy link

sanjid133 commented Nov 7, 2018

Local Setup

  • Prometheus setup
  • git clone git@github.com:prometheus/prometheus.git
  • Run make build
  • Create a file prom.yaml with following data:
global:
  scrape_interval:     15s # By default, scrape targets every 15 seconds.

  # Attach these labels to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    monitor: 'codelab-monitor'

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
  - job_name: 'vault'

    # Override the global default and scrape targets from this job every 5 seconds.
    scrape_interval: 5s

    static_configs:
      - targets: ['localhost:9102']

listener "tcp" {
  address = "127.0.0.1:8200"
  tls_disable = true
}

storage "inmem" {}

disable_mlock=true

ui=true

telemetry {
  statsd_address = "127.0.0.1:9125"
}
  • Run vault server -config=vault.hcl

  • Optionally you can run

 - vault operator init
 - vault operator unseal
  • Setup Exporter

  • Clone git@github.com:kubevault/vault_exporter.git

  • Run go build

  • Run ./prometheus_exporter

In browser http://localhost:9090

@tamalsaha
Copy link
Member Author

  • Update Statsd mapping file for remaining metrics.

tamalsaha pushed a commit to kubevault/prometheus-exporter that referenced this issue Dec 5, 2018
@tamalsaha
Copy link
Member Author

Grafana Dashboard:

@tamalsaha
Copy link
Member Author

Done.

tamalsaha pushed a commit to kubevault/apimachinery that referenced this issue Jan 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants