Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 2.18 KB

README.md

File metadata and controls

57 lines (41 loc) · 2.18 KB

Monitoring Labs

Simple monitoring infrastructure.

Grafana/Prometheus

Monitoring Mixins

Basic overview at https://github.com/monitoring-mixins/docs.

Installing Lab

Tested to work on Ubuntu 18.04.

  • Install docker ./init_docker.sh
  • Install JSONNET compiler./init_jsonnet.sh
  • Install JSONNET bundler ./init_jsonnet_bundler.sh
  • Install monitoring mixins ./init/init_mixins.sh
  • Build monitoring mixins ./init/build_mixins.sh
  • Run the docker-compose environment cd ./grafana-prometheus/; make apply

Use JSONNET Utils

  • Install utils ./init_jsonnet_utils.sh
  • Source environment with source jsonnet-utils/venv/bin/activate
  • Check Prometheus rules make prometheus_metrics
  • Check Grafana metrics make grafana_metrics

Generate new mixin with Cookiecutter

  • Install utils ./init_jsonnet_utils.sh.
  • Source environment with source jsonnet-utils/venv/bin/activate.
  • Run cookiecutter mixin-template
  • Change to newly created mixin dir and type make init and make build.

Use metrics for data analytics

  • Install client ./init_libmetric.sh
  • Create Pandas DataFrame from Prometheus instant data make query_prometheus_instant
  • Create Pandas DataFrame from Prometheus range data make query_prometheus_range