Kusma is evolving fast, and so its monitoring tools.
We find recently that there is an easy and confortable dotexporter python script that will be usefull for most of you.
Table of contents
Download it from here:
Place your script in a common folder: /usr/local/bin
Create system service
Create your systemd daemon:
[Unit] Description=Dot Exporter [Service] ExecStart=/usr/bin/python3 /usr/local/bin/dotexporter.py Restart=always # Restart service after 10 seconds if node service crashes RestartSec=10 # Output to syslog StandardOutput=syslog StandardError=syslog SyslogIdentifier=dotexporter [Install] WantedBy=multi-user.target
Enable and start service
Start your exporter service with:
systemctl daemon-reload && systemctl start dotexporter && systemctl enable dotexporter
After this you will have your node listening on port 8000 for your prometheus grafana/prometheus queries as we saw in previous articles.