Application map

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

Ebadur Osib

Senior Cloud Consulting Engineer

เมื่อการแก้ปัญหาเริ่มซับซ้อน

tangledservices.jpg

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

แนะนำ Application map

cleandiagram.jpg

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

Application map คืออะไร?

  • ฟีเจอร์ในตัวของ Application Insights
  • แสดงแผนผังสถาปัตยกรรมแอปพลิเคชันแบบเรียลไทม์
  • ค้นพบคอมโพเนนต์และ dependency ภายนอกโดยอัตโนมัติ ได้แก่:
    • Web app
    • API
    • ฐานข้อมูล
    • External dependency
  • ใช้ distributed tracing และ runtime telemetry
  • ไม่ต้องกำหนดค่าเอง ช่วยให้แก้ปัญหาได้เร็วขึ้น
การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

Application map ถูกสร้างขึ้นอย่างไร

  appmapflow.jpg

  • สร้างจาก distributed tracing
  • Telemetry ติดตามแต่ละ request ขณะเคลื่อนผ่านระบบ
  • Trace ถูกรวมเข้าด้วยกันโดยอัตโนมัติเป็น dependency graph
การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

การอ่านแผนผัง

app-insights-overview.png

1 https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-map
การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

ตัวชี้วัดสำคัญ

intelligent-view-insights.png

 

  • แสดงตัวชี้วัดสำคัญ ได้แก่:
    • Latency
    • จำนวน request
    • อัตราความล้มเหลว
  • ไม่ต้องเขียน query
1 https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-map
การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

สุขภาพของ dependency

  mapredhealthlines.png

1 https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-map
การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

Application map ใน microservices

 

  • ทำความเข้าใจสถาปัตยกรรมที่ซับซ้อน
  • แสดงการไหลของ request
  • ระบุความล้มเหลวที่ลุกลาม
  • เห็นขอบเขตผลกระทบของปัญหาได้ชัดเจน
  • รองรับการวิเคราะห์หาสาเหตุที่รวดเร็วขึ้น

microservices.jpg

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

คอขวดที่ซ่อนอยู่

sloworders.jpg

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

ความท้าทายเมื่อไม่มี Application map

hiddencause.jpg

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

ผลลัพธ์เมื่อใช้ Application map

applicationmapoutcome.jpg

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

สรุป

  • แสดงคอมโพเนนต์และ dependency ของแอปพลิเคชัน
  • สร้างบน distributed tracing และ telemetry
  • เน้น latency และอัตราความล้มเหลว
  • ช่วยแก้ปัญหาในระบบ distributed ได้ง่ายขึ้น
  • จำเป็นสำหรับ microservices และแอปแบบ cloud-native

  untangledweb.jpg

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

มาฝึกกันเถอะ!

การมอนิเตอร์และแก้ไขปัญหา Azure Solutions

Preparing Video For Download...