ในตอนนี้ เราจะสร้างเมตริกที่กําหนดเองโดยบันทึกไว้ในบันทึกของ Google Cloud Logging และตั้งค่าแดชบอร์ดเพื่อตรวจสอบเมตริกใหม่ของเรา นอกจากนี้เรายังดูวิธีใช้ Google Cloud Monitoring เพื่อตั้งค่าการแจ้งเตือนเพื่อแจ้งเตือนเมื่อเมตริกไม่ได้อยู่ในตําแหน่งที่ต้องการ
การสร้างและการตรวจสอบเมตริกที่กำหนดเอง
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-21 UTC
[null,null,["อัปเดตล่าสุด 2025-08-21 UTC"],[[["\u003cp\u003eThis episode demonstrates creating custom metrics from Google Cloud Logging data and visualizing them on a dashboard.\u003c/p\u003e\n"],["\u003cp\u003eLearn how to configure Google Cloud Monitoring to generate alerts based on custom metric thresholds, ensuring timely responses to critical situations.\u003c/p\u003e\n"]]],[],null,["# Creating and Monitoring Custom Metrics\n\nIn this episode, we build custom metrics on top of our logs in Google Cloud Logging, and set up a dashboard to monitor our new metrics. We also see how you can use Google Cloud Monitoring to set up alerts to notify you when your metrics aren't where you want them to be.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]