--- title: Prometheus tags: 狀態監測 --- ## [Prometheus Official](https://prometheus.io/) ## Dependencies * [AlertManagerDiscord](https://github.com/benjojo/alertmanager-discord) * [Ping Exporter](https://github.com/czerwonk/ping_exporter) * [Nginx Exporter](https://github.com/nginxinc/nginx-prometheus-exporter) * [Mosquitto Exporter](https://github.com/sapcc/mosquitto-exporter) * [Systemd Exporter](https://github.com/prometheus-community/systemd_exporter) ## Install ### [AlertManagerDiscord](https://qiita.com/tingtt/items/3562927428e61d34ffc0) * Prometheus-alertmanager 新版本使用 9093, 9094 port,Prometheus-alertmanager-discord 需改為 9095 ## Service config ``` [Unit] Description={} Documentation={} After=network-online.target [Service] ExecStart=/usr/local/bin/{} -{} ExecStop=/bin/kill -TERM ${MAINPID} ExecReload=/bin/kill -HUP ${MAINPID} Restart=on-failure [Install] WantedBy=multi-user.target ``` ## Stress-ng * [安裝 & 使用](https://officeguide.cc/linux-stress-ng-cpu-memory-hard-drive-full-load-tutorial-examples/) * CPU 測試 `stress-ng --cpu 2 --timeout 3m` * Memory 測試 `stress-ng --vm 10 --vm-bytes 1024M -t 3m`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up