Skip to content

Latest commit

 

History

History
127 lines (88 loc) · 4.44 KB

grafana_manual.md

File metadata and controls

127 lines (88 loc) · 4.44 KB

Welcome To Grafana install manual

Get VPS

To get started, you need to purchase a VPS.

NOTE: If you are on a Linux system (for example, Debian or Ubuntu), you might need to add sudo before the command or add your user to the docker group.

Connect to server via ssh and login as a root user:

sudo -i

Firewall setup

To access grafana in web browser, you need to open port 3000:

sudo ufw allow 3000

Install Docker

Copy the commands below and paste them into CLI.

  1. Install packages to allow apt to use a repository over HTTPS:

    sudo apt-get update
    sudo apt install -y \
         apt-transport-https \
         ca-certificates \
         curl \
         gnupg-agent \
         software-properties-common
  2. Add Docker’s official GPG key:

    sudo install -m 0755 -d /etc/apt/keyrings
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    sudo chmod a+r /etc/apt/keyrings/docker.gpg
    echo \
      "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
      "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
      sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  3. Update the apt package index:

    sudo apt-get update
  4. Install the latest version of Docker CE and containerd:

    sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin

Start Grafana in Docker

To run the latest stable version of Grafana, run the following command:

docker run -d --restart always -p 3000:3000 --name=grafana  grafana/grafana:main-ubuntu

Setup monitoring

Go to your browser and type your-ip-address:3000 in the address bar, \

login - admin \
password - admin

If you want, you can set your own password after this step
grafana_main

Next step: Add your first data source, select 'Prometheus' add_dash add datasource Type in the field "URL" address of your server with Prometheus and set the Name. datasource_edit \

Then click Save & test. If everything is configured correctly, a green check mark will be displayed

save_test

Now you will need to find out your data source uid. It is located in your browser address bar find_uid

Next step: import CyberNode dashboard to your text editor. Then select the entire text with the ctrl + A command, turn on the search function with the ctrl + F command, find the string <PUT_YOUR_UID>, select it and replace it with your value from the previous step

edit_board Repeat the previous step only this time search for the string <PUT_YOUR_HOST_NAME> and replace it with your hostname
pic After that, import your JSON file and click Load button

upload_board
Set the Name and click Import edit_board and you can notice how the graphs have come to life: board

Setting alerts

If you want to set up alerts to always be aware of your cybernode's work, then select the schedule that interests you and click the edit button: alert_find

You will see the advanced settings of a specific schedule:

  • Select an alert
  • Edit all the fields that interest you
  • Save before exiting

alert_setup

You may use variable options to receive alerts, including email, Telegram or even calls.