Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 829 Bytes

metrics.md

File metadata and controls

15 lines (13 loc) · 829 Bytes

Metrics

Prometheus metrics are used to monitor components running. For development purposes both Prometheus and Grafana containers are included in docker-compose setup. When adding new metric, ensure it is exposed correctly using dev setup.

Dev containers

After running docker-compose up --build, you can access Prometheus and Grafana web interfaces:

How to add new metric

  1. Include new metric into the code (Counter, Gauge, Histogram etc.).
  2. Visualize metric in dev Grafana board (add new chart).
  3. Export new board version to json and save to monitoring/grafana/provisioning/dashboards/vulnerability-dashboard.json.
  4. When new metric is in production, use dashboard import and copy new json to production Grafana.