Coder Social home page Coder Social logo

osmosis-monitor's Introduction

Osmosis Dashboard

OsmosisDashboard1

A monitoring solution for Osmosis full nodes with Prometheus, Grafana, cAdvisor, NodeExporter and alerting with AlertManager.

Guide

Prerequisites

  1. Install Docker Engine >= 1.13
sudo apt-get remove docker docker-engine docker.io
sudo apt-get update
sudo apt install docker.io -y
  1. Install Docker Compose >= 1.11
sudo apt install docker-compose -y
  1. Run an Osmosis full node. See https://get.osmosis.zone or https://docs.osmosis.zone/developing/cli/install.html to install the Osmosis binary

  2. Enable the Prometheus metrics

  • Set prometheus = true under instrumentation in the config.toml
  • Set enable = true and prometheus-retention-time = 1 under telemetry in the app.toml
  1. Ensure the following ports are not in use
  • 3000
  • 9100
  • 9092
  • 8001

Run

  1. Export your public IP to an environment variable
export HOST_IP=$(dig +short txt ch whoami.cloudflare @1.0.0.1)
  1. Clone this repository on your host
git clone https://github.com/osmosis-labs/osmosis-monitor.git
cd osmosis-monitor
  1. (optional) Define additional alerting rules. Edit the prometheus/alert.rules to configure additional rules. See Prometheus documentation for more details.

  2. (optional) Configure a receiver for the alerting notifications. Edit the alertmanager/config.yaml to configure additional rules. See Alertmanager documentation for more details.

  3. Run the containers via docker-compose:

docker-compose up -d

The command will create the following containers:

  • Grafana (visualize metrics) http://<host-ip>:3000
  • Prometheus (metrics database) http://<host-ip>:9092
  • Prometheus-Pushgateway (push acceptor for ephemeral and batch jobs) http://<host-ip>:9091
  • NodeExporter (host metrics collector)
  • cAdvisor (containers metrics collector)

Usage

Once you have run docker-compose (and Osmosis has caught up to the head of the chain):

  1. Go to http://<host-ip>:3000

  2. Login with admin and admin as the username and password and set your new password

  3. Go to the dashboards tab (the icon that looks like four squares). Select browse and then select the Osmosis Dashboard.

The dashboard can also be reached directly at http://<host-ip>:3000/d/UJyurCTWz/osmosis-dashboard

Shutdown

To shut down all of the above docker containers but retain the data

docker-compose down

To shut down and delete all metrics collected

docker-compose down --volumes

Osmosis Dashboard

The Osmosis Dashboard shows key metrics for monitoring the chain state as well as machine resource usage:

OsmosisDashboard1

OsmosisDashboard2

OsmosisDashboard3

osmosis-monitor's People

Contributors

czarcas7ic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.