ai
Uptime Kuma Monitoring กับ High Availability HA

Uptime Kuma Monitoring

Uptime Kuma Open Source Monitoring ตรวจสอบ Uptime เว็บไซต์ Services HTTP TCP Ping DNS Docker gRPC Dashboard แจ้งเตือน Telegram Discord Slack Email Self-hosted
เนื้อหาเกี่ยวข้อง — ทำความเข้าใจ แนะนำ notebook สำหรับ programmer 2017
High Availability HA Monitoring ทำงานตลอด 24/7 Instance ล่ม Instance อื่นแทน ตรวจสอบต่อเนื่อง แจ้งเตือนไม่ขาด Production Environment
เนื้อหาเกี่ยวข้อง — ทำความเข้าใจ doo prime thailand — วิธีตั้งค่าและใช้งานจริงพร้อมตัวอย่าง

Alerting Configuration
# alerting.py — Uptime Kuma Alerting
alerting_channels = {
"Telegram": {
"setup": "Bot Token + Chat ID",
"config": "Notification -> Telegram -> Bot Token, Chat ID",
"features": "ข้อความ + รูปภาพ Status",
},
"Discord": {
"setup": "Webhook URL",
"config": "Notification -> Discord -> Webhook URL",
"features": "Embed Message + Status Color",
},
"Slack": {
"setup": "Webhook URL หรือ Bot Token",
"config": "Notification -> Slack -> Webhook/Bot",
"features": "Channel Message + Blocks",
},
"Email (SMTP)": {
"setup": "SMTP Server, Port, Username, Password",
"config": "Notification -> Email -> SMTP Config",
"features": "Email Alert + HTML Template",
},
"PagerDuty": {
"setup": "Integration Key",
"config": "Notification -> PagerDuty -> Integration Key",
"features": "Incident Management + Escalation",
},
"Webhook": {
"setup": "URL + Custom Headers",
"config": "Notification -> Webhook -> URL",
"features": "Custom JSON Payload",
},
"LINE Notify": {
"setup": "Access Token",
"config": "Notification -> LINE Notify -> Token",
"features": "LINE Message (Thailand)",
},
}
print("Alerting Channels:")
for channel, info in alerting_channels.items():
print(f"\n [{channel}]")
print(f" Setup: {info['setup']}")
print(f" Features: {info['features']}")
# Alert Best Practices
alert_practices = {
"Escalation": "Telegram ก่อน -> ถ้าไม่แก้ 5 นาที -> PagerDuty",
"Deduplication": "ส่ง Alert ครั้งเดียว ไม่ซ้ำจนกว่า Recover",
"Maintenance Window": "ปิด Alert ระหว่าง Maintenance",
"Status Page": "อัปเดต Status Page อัตโนมัติเมื่อ Down",
"Runbook Link": "แนบ Runbook Link ใน Alert Message",
"Multi-channel": "แจ้ง Critical ทุกช่องทาง Info เฉพาะ Slack",
}
print(f"\n\nAlert Best Practices:")
for practice, desc in alert_practices.items():
print(f" {practice}: {desc}")
Best Practices
- Multi-Location: ตรวจจากหลาย Location ป้องกัน False Positive
- Interval: Critical Services ตรวจทุก 30 วินาที ทั่วไป 60 วินาที
- SSL Expiry: ตั้ง Monitor SSL Certificate Expiry แจ้งเตือนก่อน 30 วัน
- Reverse Proxy: ใช้ Nginx + SSL สำหรับ Dashboard
- Backup: Backup data/ folder ทุกวัน
- Meta-monitoring: มี Monitor ตรวจ Uptime Kuma เอง
Uptime Kuma คืออะไร
Open Source Monitoring ตรวจ Uptime เว็บไซต์ Services HTTP TCP Ping DNS Docker gRPC Dashboard แจ้งเตือน Telegram Discord Slack Self-hosted ทางเลือก UptimeRobot
แนะนำเพิ่มเติม — สัญญาณเทรดรายวัน XM Signal
เนื้อหาเกี่ยวข้อง — อ่านต่อ: Prometheus Federation Security Hardening





