Code Monkey home page Code Monkey logo

agoricmonitoring's Introduction

Agoric monitoring

This is a very simple node monitoring solution. Composition: telegraph influxdb grafana and python script

Dashboard Dashboard

Installation

  1. Install telegraf
sudo su

cat <<EOF | sudo tee /etc/apt/sources.list.d/influxdata.list
deb https://repos.influxdata.com/ubuntu bionic stable
EOF

sudo curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -

sudo apt-get update
sudo apt-get -y install telegraf jq bc

sudo systemctl enable --now telegraf
sudo systemctl is-enabled telegraf
systemctl status telegraf

# make the telegraf user
sudo adduser telegraf sudo
sudo adduser telegraf adm
sudo -- bash -c 'echo "telegraf ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers'

  1. Install influxdb
sudo su

# now install InfluxDB
apt-get install influxdb -y

# start InfluxDB and enable at start
systemctl enable --now influxdb
systemctl start influxdb

# Configure InfluxDB

# don't forget to change your password
influx
> create database telegraf
> use telegraf
> create user telegraf with password youpassword
> grant all on telegraf to telegraf

  1. Install Grafana
sudo su

wget -q -O - https://packages.grafana.com/gpg.key | apt-key add -

add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"

apt-get update -y
apt-get install grafana -y

systemctl daemon-reload

systemctl enable --now grafana-server
systemctl start grafana-server

systemctl status grafana-server



  1. Configure telegraf
sudo su

cd ~
git clone https://github.com/airocket/agoricmonitoring/
cd agoricmonitoring
chmod +x monitor.sh
sed -i -e 's/\r$//' monitor.sh
sudo rm -rf /etc/telegraf/telegraf.conf

# if you changed the password for Influxdb then change it in the config file telegraf.conf
cp telegraf.conf /etc/telegraf/telegraf.conf
systemctl restart telegraf

Configure Grafana

# Don't forget to change your password
grafana-cli admin reset-admin-password youpassword

Open firewall 3000 port

go http://youip:3000

login: admin pass: youpassword

Data

Then we press the button "Add data source" then choose Influxdb

Data

fill in the values Name: telegraf URL: http://localhost:8086 Database: telegraf User: telegraf Password: youpassword (the one that you installed for influxdb)

Then we press the button "Save & Test"

Data

Then select import

Import

Then we press the button "Upload JSON file"

Import

Download the file "Agoric Validator Dashboard.json" from the repository and indicate the path to it, then confirm the import, and now you have your own monitoring board!

Finish

agoricmonitoring's People

Contributors

airocket 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.