Skip to content

nk-designz/distributed_prometheus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distributed Prometheus

Spin up prometheus backed by m3 using ansible.

Documentation

The documentation is written in german due to external requirements.

Getting started

Prerequesites

  • make
  • terraform optional
  • ansible
  • pdflatex optional
  • chromium-browser optional

With Terraform

  1. Export your DO API Token:
    export DO_PAT="<token>"
  2. Run the make plan:
    make apply-all

Without Terraform

  1. Start the make plan:
    make apply
  2. Add the ansible-inventory:
    [nodes]
    165.xxx.87.xxx
    161.xxx.213.xxx
    165.xxx.172.xxx
    
  3. Commit with :wq

Clean Up with Terraform

  1. Export your DO API Token:
    export DO_PAT="<token>"
  2. Run the make plan:
    make destroy

Node-Setup

Node Diagram

Checklist

  • infrastructure automation
  • common sofware
  • node exporter role
  • etcd cluster role
  • m3db cluster role
  • consul cluster role
  • prometheus role
  • load balancer
  • grafana role
  • documentation
  • presentation

Draft

curl -X PUT localhost:8500/v1/catalog/register -d '{ "Node": "m3db-node-0", "Address": "207.154.219.36", "Service": { "ID": "node-0", "Service": "m3", "Address": "207.154.219.36", "Port": 7503 }}'