Skip to content

Simple prometheus monitoring for nodes with node-exporter. Including grafana

Notifications You must be signed in to change notification settings

rjshrjndrn/monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

What is Prometheus

Prometheus is a 21st century monitoring solution. Which architected as asynchronous server-client scrape system.

Installing Prometheus

Following instruction will setup a single node Prometheus cluster in docker-swarm, with node-exporter (to export system metrics)

  1. Clone monitoring repo
  2. cd monitoring/ansible/
  3. fill inventory/hosts
  4. Installing Docker
    1. ansible-playbook -i inventory setup-dockerswarm.yml
  5. Setup Prometheus and grafana
    1. ansible-playbook -i inventory monitoring.yml
  6. Setting up grafana Data source
    1. goto http://{prometheus-machine-ip}:3000/ use user: admin and passowrd: defined in grafana_admin_password variable inthe monitoring yml
    2. click on settings -> Data sources -> select Prometheus
    3. url -> http://{prometheus-machine-ip}:9090/prometheus -> save and test. This will configure data source
  7. first Dashboard
    1. click on '+' sign -> import
    2. put 1860 in Grafana.com Dashboard field and load
    3. select datasource and import

About

Simple prometheus monitoring for nodes with node-exporter. Including grafana

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published