Skip to content

theztd/monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic cluster monitoring

Working prometheus gathering information from nomad cluster and sending them to grafana cloud.

Before start

Prometheus and Consul

Prometheus in this example uses base auth and that means, that plain text password have to be defined in prometheus.yml. To prevent password leak this deploy uses consul key/val storage and keep the password in path monitoring/node_exporter. So before deployment you should set this value.

Node exporter

At the node exporter the configuration should looks like (more anout it is in the official documentation):

# /etc/node_exporter/web_config.yml
basic_auth_users:
  agent: $2a$12$c8KpEEEEEXxxxxAAAAAmPPPPPlllllEEEEEEEEEEEEEE0bYXG6O
/usr/local/bin/node_exporter \
    --collector.textfile \
    --collector.textfile.directory=/tmp/metrics \
    --web.config=/etc/node_exporter/config.yaml \
    --web.listen-address=0.0.0.0:9100 \
    --web.telemetry-path=/metrics   

Prometheus enpoint deffinition

Prometheus alertmanager deffinition

Prometheus templates

Releases

No releases published

Packages

No packages published