Prometheus监控django:
https://www.cnblogs.com/liuhuan086/p/14716561.html
使用 prometheus_client 和 Flask 实现站点监控 Exporter:
https://www.jianshu.com/p/a64ad351ebb2
systemctl启动python 值得借鉴:
# ls /data/site-monitor-exporter/
config.yml site-monitor-exporter.py
# vim /etc/systemd/system/site-monitor-exporter.service
[Unit]
Description=site-monitor-exporter
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/python /data/site-monitor-exporter/site-monitor-exporter.py
Restart=on-failure
[Install]
WantedBy=multi-user.target
# systemctl start site-monitor-exporter
# systemctl status site-monitor-exporter