AWS CloudWatch

Mart — Tanathip Viriya
1 min readJun 11, 2020

--

เป็น service ที่ไว้ใช้ในการ monitor service ต่างๆๆของ AWS ซึ่งจริงๆแล้วแทบทุก services เราใช้ CloudWatch ในการ Monitor ได้เลย

CloudWatch กับ EC2

มันใช้ monitor พวก Physical hardware เป็นหลัก

  • CPU
  • Network
  • Disk
  • Status Check

แต่ถ้าเป็นพวก Virtualization แบบ RAM ที่เป็นการทํางานของ RAM CloudWatch ไม่สามารถจะใช้ Default metric ในการวัดได้ มันต้องเป็น Customize Metric หรือหมายความง่ายๆคือ เราต้อง push เข้าไปใน CloudWatch นั้นเอง

ระยะเวลาเก็บ Log ของ CloudWatch

ตามหลักแล้วจริงๆคือนานเท่าไหนก็ได้ ยิ่งถ้าเป็น EC2 หรือ ELB instance ที่ถูก terminate ไปแล้ว เราก็ยังสามารถไปดู log ได้เช่นกัน

Metric Granularity

โดยปกติแล้ว default metric จะถูกส่งไปจาก service ที่เรา Monitor อยู่ประมาณ 1,3,5 นาทีแล้วแต่ service ที่เราเลือก

แต่ถ้าเป็น custom metric ตํ่าสุดจะอยู่ที่ 1 นาที

CloudWatch Alarm

เราสามารนํา CloudWatch มาตั้ง Alarm เพื่อป้องการใช้ Usage เกิน หรือ ตั้งไว้สําหรับ AWS bill ว่าถ้าเราใช้เงินเกินเท่านี้ ให้เตือนก็ได้เช่นกัน

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response