Skip to content

Simple lab definitions to test Jsonnet with Grafana, Prometheus, etc

Notifications You must be signed in to change notification settings

cznewt/mon-labs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple lab definitions to test Jsonnet with Grafana, Prometheus, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published