Monitoring stack by using Grafana + Prometheus + Netdata

Chalut Dumrongsiri
Oct 7, 2018 · 3 min read

There are many monitoring tools from open source to a commercial level which helps you to monitor your server. this story I will pick some of tools for example. so let’s try it together!


Example architecture

In host server, I use an Ubuntu OS and Grafana + Prometheus install on docker. In target server, I install Netdata on OS.


  1. Docker : you can install by the following command

or run the following command

# bash <(curl -Ss

2. Ensure you enable firewall ports on the following ports

  • Host Server : 3000, 9090
  • Target Server : 19999


Let’s begin !!

  1. Install netdata on target server.
# basic netdata installation
bash <(curl -Ss

# or

# install required packages for all netdata plugins
bash <(curl -Ss all

after installed, you can access by the following url

http://<target server ip>:19999/

2. Install Grafana and Prometheus on host server by the following docker-compose.

or the following command

# wget docker-compose up -d

you can access by the following url

# Grafana
http://<host server ip>:3000/
username : admin
password : admin
# prometheus
http://<host server ip>:9090/graph


  1. Stop monitoring stack by docker-compose
# docker-compose stop

2. Go to ./prometheus/prometheus.yml and edit the config by the following example.

3. Login to Grafana > Configuration > Data Source
Enter the following value.

Prometheus — Data Source

Start monitoring stack by docker-compose

# docker-compose up -d


  1. Login to Grafana
# http://<host server ip>:3000/

2. Create Dashboard

3. Add Graph

4. Query what you want to see.

5. Edit graph name and click back at the right hand.

6. Save dashboard. Finish


This monitoring stack you can monitoring in real-time by Netdata and see the history by using Grafana.


For more information

Grafana :

Prometheus :

Netdata :

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade