Workshop: สร้าง Complete Monitoring Stack (Prometheus + Loki + Jaeger + Grafana)

Workshop: สร้าง Complete Monitoring Stack (Prometheus + Loki + Jaeger + Grafana)

ในระบบ production ยุคปัจจุบัน การมีแค่ metrics ไม่เพียงพอต่อการแก้ปัญหาซับซ้อน ทีม DevOps และ SRE จึงต้องรวม 3 เสาหลักของ observability เข้าด้วยกัน นั่นคือ metrics, logs และ traces เพื่อให้มองเห็นระบบแบบ 360 องศา เมื่อเกิดปัญหาก็สามารถไล่หาสาเหตุได้ตั้งแต่ตัวเลขภาพรวม ลงไปถึง log บรรทัดที่ error และ

LogQL: Query Language สำหรับค้นหา Logs ใน Loki

LogQL: Query Language สำหรับค้นหา Logs ใน Loki

เมื่อรวบรวม Logs จากหลาย ๆ service เข้าสู่ Loki แล้ว ขั้นตอนต่อไปคือการค้นหาและวิเคราะห์ Logs เหล่านั้นเพื่อ debug ปัญหา, ตรวจจับ error หรือทำ alerting ซึ่งจำเป็นต้องใช้ภาษา query ที่ออกแบบมาโดยเฉพาะสำหรับ log data — LogQL คือคำตอบ LogQL (Loki Query Language) คือภาษาค้นหา logs ของ Grafana Loki ที่ได

Promtail: Log Collection Agent สำหรับ Loki

Promtail: Log Collection Agent สำหรับ Loki

Promtail เป็น log collection agent ที่ Grafana Labs พัฒนาเพื่อเก็บ log จาก server หรือ container แล้วส่งต่อไปยัง Loki สำหรับจัดเก็บและค้นหา ด้วยโครงสร้างที่เน้น label discovery คล้าย Prometheus แต่ทำงานกับไฟล์ log แทน metric บทความนี้ครอบคลุมวิธีติดตั้ง, การกำหนด scrape target, pipeline แปลง log, re

Loki Architecture: เข้าใจการออกแบบระบบ Log Aggregation

Loki Architecture: เข้าใจการออกแบบระบบ Log Aggregation

Loki เป็น log aggregation system ที่ Grafana Labs ออกแบบมาให้ประหยัดต้นทุนและ scale แบบ horizontal ได้ดีกว่าเดิมมาก ต่างจากระบบเก็บ log แบบเก่าที่ index ทุกฟิลด์ Loki เลือก index เฉพาะ label ทำให้ storage footprint เล็กกว่าและ operate ง่ายขึ้น บทความนี้อธิบาย architecture ของระบบ — component ย่อยแต่

ELK Stack (Elasticsearch Logstash Kibana) vs Loki+Grafana: เลือก Log Solution

ELK Stack (Elasticsearch Logstash Kibana) vs Loki+Grafana: เลือก Log Solution

การเลือกระบบเก็บและค้น log กลางเป็นหนึ่งในการตัดสินใจที่ส่งผลระยะยาวมากที่สุดในทีม DevOps — ทั้งเรื่อง cost, performance และ learning curve ของทีม ตัวเลือกหลักในตลาดปัจจุบันมีสองค่ายใหญ่: ELK Stack (Elasticsearch + Logstash + Kibana) ที่ครองตลาด centralized logging มานานกว่า 10 ปี และ Loki + Grafana

Log Management: รวม Log จากทุก Service ด้วย Loki + Grafana บน Cloud VPS

Log Management: รวม Log จากทุก Service ด้วย Loki + Grafana บน Cloud VPS

การจัดการ Log (Log Management) เป็นหัวใจสำคัญของระบบ IT ที่มีเสถียรภาพและสามารถติดตามปัญหาได้อย่างมีประสิทธิภาพ เมื่อมี Service และ Application หลายตัวทำงานพร้อมกันบน Cloud VPS จำนวน Log ที่เกิดขึ้นจะมีปริมาณมากมาย ทำให้การค้นหาและวิเคราะห์เป็นเรื่องยุ่งยาก Loki (โปรแกรมจัดการ Log ที่พัฒนาโดย Grafan

LINE CHAT