๐Ÿงฉ5. AWS - CloudWatch

yoonseulesยท2021๋…„ 5์›” 9์ผ
1

CloudClub์†Œํ•™ํšŒ_AWS

๋ชฉ๋ก ๋ณด๊ธฐ
11/14
post-thumbnail

CloudWatch

  • AWS ๋ฆฌ์†Œ์Šค ์‚ฌ์šฉ์˜ ์‹ค์‹œ๊ฐ„ ๋ชจ๋‹ˆํ„ฐ๋ง ๊ธฐ๋Šฅ ์ง€์›
  • ๋‹ค์–‘ํ•œ ์ด๋ฒคํŠธ๋“ค์„ ์ˆ˜์ง‘ํ•˜์—ฌ ๋กœ๊ทธํŒŒ์ผ๋กœ ์ €์žฅ
  • ์ด๋ฒคํŠธ&์•Œ๋žŒ ์„ค์ •์„ ํ†ตํ•ด SNS, AWS Lambda๋กœ ์ „์†ก rk๋Šฅ
  • [CloudWatch ์‚ฌ์šฉ ๊ฐ€๋Šฅ ์„œ๋น„์Šค๋“ค] : EC2, RDS, S3, ELB, ๋“ฑ๋“ฑ
    • S3๋ฒ„์ผ“ ํŒŒ์ผ ์—…๋กœ๋“œ&์‚ญ์ œ
    • S3 ๋ฒ„์ผ“ ์ ‘๊ทผ ์‹œ ์ ‘๊ทผ๊ฑฐ๋ถ€ ๋ฐœ์ƒ
    • RDS ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์— ์ ‘์† ์‹œ๋„

๐Ÿ”Ž CloudWatch ๋ชจ๋‹ˆํ„ฐ๋ง ์ข…๋ฅ˜

  1. Basic Monitoring
  • ๋ฌด๋ฃŒ
  • 5๋ถ„ ๊ฐ„๊ฒฉ์œผ๋กœ ์ตœ์†Œ์˜ Metrics ์ œ๊ณต
  1. Detailed Monitoring
  • ์œ ๋ฃŒ
  • 1๋ถ„ ๊ฐ„๊ฒฉ์œผ๋กœ ์ž์„ธํ•œ Metrics ์ œ๊ณต

๐Ÿ”Ž CloudWatch ์‚ฌ์šฉ ์šฉ๋ก€ - 1

  • Use Case : ๋งค์ผ ์–ผ๋งˆ๋‚˜ ๋งŽ์€ ์‚ฌ์šฉ์ž๋“ค์ด ๋ชจ๋ฐ”์ผ ์•ฑ์„ ์‚ฌ์šฉํ•˜๋Š”์ง€ ์•Œ๊ณ  ์‹ถ์Œ
  • Potential Issue : ํŠน์ •๋‚ ์— ์ˆ˜๋งŽ์€ traffic์ด ๋ชฐ๋ฆด ์ˆ˜ ์žˆ์–ด ๋ณ‘๋ชฉํ˜„์ƒ์ด ์ƒ๊ธธ ์ˆ˜ ์žˆ์Œ
  • Solution : ๋งค์ผ traffic rate๊ณผ ํŠน์ • ๋ฒ„ํŠผ์˜ ์œ ์ € ํด๋ฆญ ํšŸ์ˆ˜๋ฅผ ๋ถ„์„ํ•˜์—ฌ ๋” ํšจ์œจ์ ์ธ ์•ฑ๊ฐœ๋ฐœ์„ ํ•  ์ˆ˜ ์žˆ๋Š” ํ†ต์ฐฐ๋ ฅ ์–ป์„ ์ˆ˜ ์žˆ์Œ

๐Ÿ”Ž CloudWatch ์‚ฌ์šฉ ์šฉ๋ก€ - 2

  • Use Case : ํŠน์ • ์‹œ๊ฐ„๋Œ€์— ์›น์„œ๋ฒ„ ์ƒํƒœ๋ฅผ ์ ๊ฒ€ํ•˜์—ฌ ๋น„์šฉ ์ ˆ๊ฐ ๋ชฉํ‘œ
  • Potential Issue : ๋˜‘๊ฐ™์€ ๋น„์šฉ์„ ๋‚ด๋ฉฐ AWS ๋ฆฌ์†Œ์Šค๋“ค์„ ์‚ฌ์šฉํ•˜์ง€๋งŒ ๋‚ฎ์‹œ๊ฐ„๋Œ€์™€ ๋ฐค์‹œ๊ฐ„๋Œ€์— ํ•„์š”ํ•œ ์„œ๋ฒ„์˜ ์„ฑ๋Šฅ์€ ๋‹ฌ๋ผ์งˆ ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๊ธˆ์ „์  ์†์‹ค์ด ์ƒ๊ธธ ์ˆ˜ ์žˆ์Œ (์ฃผ๋กœ ๋ฐค์‹œ๊ฐ„๋Œ€๊ฐ€ ๋‚ฎ์‹œ๊ฐ„๋Œ€๋ณด๋‹ค ์„œ๋ฒ„๊ฐ€ ์˜ค๋žซ๋™์•ˆ idle)
  • Solution : ์•Œ๋žŒ ์„ค์ •์„ ํ†ตํ•˜์—ฌ ํŠน์ • threshold์— ๋„๋‹ฌํ–ˆ์„๋•Œ ๊ฐœ๋ฐœ์ž์—๊ฒŒ ์ƒํ™ฉ์„ ๋ณด๊ณ ํ•ด์คŒ์œผ๋กœ์„œ ์„œ๋ฒ„ management๋ฅผ ํ•  ์ˆ˜ ์žˆ์Œ

CloudWatch - Alarm

๐Ÿ”Ž Alarm(์‚ฌ์šฉ์šฉ๋ก€1)

  • ์ž„์˜๋กœ ์ •ํ•ด๋†“์€ ๊ฐ’์— ๋„๋‹ฌํ•  ์‹œ Alarm์„ ์šธ๋ฆผ
  • Alarm์ด ์šธ๋ฆด ์‹œ ํŠน์ • ์ด๋ฒคํŠธ๋“ค์„ ์ž‘๋™์‹œํ‚ฌ ์ˆ˜ ์žˆ์Œ
  • Soution: ์•Œ๋žŒ ์„ค์ •์„ ํ†ตํ•˜์—ฌ ํŠน์ • throshold์— ๋„๋‹ฌํ–ˆ์„๋•Œ ๊ฐœ๋ฐœ์ž์—๊ฒŒ ์ƒํ™ฉ์„ ๋ณด๊ณ ํ•ด์คŒ์œผ๋กœ์„œ ์„œ๋ฒ„ management๋ฅผ ํ•  ์ˆ˜ ์žˆ์Œ.

๐Ÿ”Ž Alarm State

  • Alarm
  • Insufficient
  • OK

๐Ÿ”Ž Billing Alarm

  • ์šฐ๋ฆฌ๋“ค์ด ์ •ํ•ด๋†“์€ ์ง€์ถœ ์ž„๊ณ„๊ฐ’์„ ์ดˆ๊ณผํ•  ๊ฒฝ์šฐ SNS๋ฅผ ํ†ตํ•˜์—ฌ ๊ฒฝ๊ณ ๋ฅผ ํ•จ
  • ํ˜„์žฌ N.Virginia(us-east-1)์ง€์—ญ์—์„œ๋งŒ ์ด ๊ธฐ๋Šฅ์ด ์ง€์›๋จ
profile
๊ณต๋Œ€์ƒ ๊ฐœ๋… ์ •๋ฆฌ์šฉ

0๊ฐœ์˜ ๋Œ“๊ธ€