KEEP TOOLS
Script for Setting up Promethus and Loki
This is a shell script which automates the installation and configuration for Prometheus (with cAdvisor and NodeExporter) and Loki
About
This is a shell script which automates the installation and configuration for Prometheus (with cAdvisor and NodeExporter) and Loki. This script performs following tasks:
  • Installs Pre-requisites, cURL and docker-compose, if required
  • Configures prometheus.ymldocker-compose.yml for Prometheus. Including Prometheus task for Metrics scraping from Keep Random Beacon or ECDSA Nodes
  • Permission setup on Prometheus folder for the prom container to start correctly
  • Loki Docker driver installation and configuration
  • Loki docker-compose.yml and local-config.yaml
This script automates the setup steps described on https://medium.com/@hr12rtk/keep-random-beacon-node-monitoring-grafana-prometheus-and-loki-4a4b669b31ea. You could still use the Medium article to get a idea of the setup and create free Grafana Cloud Account (under Create Grafana Cloud Starter Account section). Grafana will be used to create the dashboards for data collected using Prometheus and Loki setup done by configure-monitoring.sh.