Run node_exporter prometheus with supervisor as daemon

Run node_exporter prometheus with supervisor 1. Install supervisor apt-get install supervisor -y 2. Configure service node_exporter with supervisor 2.1 Get node_exporter cd /opt/ wget https://github.com/prometheus/node_exporter/releases/download/v0.15.2/node_exporter-0.15.2.linux-amd64.tar.gz tar -xvf node_exporter-0.15.2.linux-amd64.tar.gz 2.2 Create supervisor config mkdir -p /etc/supervisor/conf.d/ nano /etc/supervisor/conf.d/node_exporter.conf 2.3 Past text in file [supervisord] nodaemon=true environment=HOME=”/usr/bin/” [program:node_exporter] command=/opt/node_exporter-0.15.2.linux-amd64/node_exporter –web.listen-address=:9100 autostart=true autorestart=true startretries=3 stderr_logfile=/var/log/node_exporter.err.log stdout_logfile=/var/log/node_exporter.out.log user=root 2.4 […]

Читать дальше… from Run node_exporter prometheus with supervisor as daemon

Mount nfs with write/read permissions for user

Mount nfs with write/read permissions for user On nfs server. Make write perm for user with uid 0 – root nano /etc/exports /MOUNT 192.168.1.1(rw,sync,all_squash,anonuid=0,anongid=0) Change owner on folder chown -R nobody /MOUNT) Restart nfs /etc/init.d/nfs-kernel-server restart On client 192.168.1.1:/MOUNT /mount nfs rsize=8192,wsize=8192,timeo=14,intr […]

Читать дальше… from Mount nfs with write/read permissions for user

Alermanager prometheus send notify to slack chat

Alermanager prometheus send notify to slack chat Slack Setup Create new channel Go to the Incoming Webhooks page in the App Directory, selecr our new channel and click “Add Incoming WebHooks” Then copy Webhook URL https://hooks.slack.com/services/ Alertmanager setup Slack Configure alertmanager global: #templates: #- ‘/prometheus-data/alertmanager/template/*.tmpl’ route: group_by: [‘alertname’, ‘cluster’, ‘service’] group_wait: 30s group_interval: 30s repeat_interval: 8h […]

Читать дальше… from Alermanager prometheus send notify to slack chat