Alarm

Tแป•ng quan

Trong viแป‡c giรกm sรกt hแป‡ thแป‘ng, Alarm cรณ thแปƒ ฤ‘ฦฐแปฃc thiแบฟt lแบญp ฤ‘แปƒ giรกm sรกt cรกc metrics hoแบทc logs. Chรบng cรณ thแปƒ ฤ‘ฦฐแปฃc cแบฅu hรฌnh ฤ‘แปƒ kรญch hoแบกt cแบฃnh bรกo vร  bแบฏn notification cho ngฦฐแปi dรนng khi cรกc ngฦฐแปกng nhแบฅt ฤ‘แป‹nh bแป‹ vi phแบกm, chแบณng hแบกn nhฦฐ sแปญ dแปฅng CPU vฦฐแปฃt quรก 100% hoแบทc thแปi gian phแบฃn hแป“i cแปงa mแป™t hแป‡ thแป‘ng vฦฐแปฃt quรก giแป›i hแบกn ฤ‘รฃ chแป‰ ฤ‘แป‹nh. Alarm ฤ‘ฦฐแปฃc sแปญ dแปฅng ฤ‘แปƒ cแบฃnh bรกo cho cรกc nhร  ฤ‘iแปu hร nh hoแบทc quแบฃn trแป‹ viรชn vแป cรกc vแบฅn ฤ‘แป trong hแป‡ thแป‘ng. Tแปซ ฤ‘รณ hแป cรณ thแปƒ thแปฑc hiแป‡n hร nh ฤ‘แป™ng sแปญa chแปฏa trฦฐแป›c khi mแปi thแปฉ trแปŸ nรชn nghiรชm trแปng hฦกn vร  gรขy ra thiแป‡t hแบกi ฤ‘รกng kแปƒ.

Alarm ฤ‘ฦฐแปฃc khuyแบฟn khรญch sแปญ dแปฅng ฤ‘แปƒ bรกo ฤ‘แป™ng khi bแบกn muแป‘n giรกm sรกt cรกc thร nh phแบงn quan trแปng cแปงa hแป‡ thแป‘ng hoแบทc แปฉng dแปฅng cแปงa mรฌnh vร  ฤ‘แบฃm bแบฃo rแบฑng bแบกn ฤ‘ฦฐแปฃc cแบฃnh bรกo khi cรกc vแบฅn ฤ‘แป xแบฃy ra. Alarm giรบp bแบกn nhแบญn biแบฟt vร  giแบฃi quyแบฟt vแบฅn ฤ‘แป mแป™t cรกch chแปง ฤ‘แป™ng, giแบฃm thiแปƒu แบฃnh hฦฐแปŸng ฤ‘แบฟn ngฦฐแปi dรนng cuแป‘i. Viแป‡c thiแบฟt lแบญp cรกc ngฦฐแปกng bรกo ฤ‘แป™ng phรน hแปฃp lร  rแบฅt quan trแปng vรฌ nรณ cรณ thแปƒ giรบp bแบกn trรกnh khแปi bรกo ฤ‘แป™ng giแบฃ, ฤ‘iแปu nร y cรณ thแปƒ lร m xao nhรฃng vร  giแบฃm hiแป‡u quแบฃ cแปงa hแป‡ thแป‘ng giรกm sรกt.

Hiแป‡n tแบกi vMonitor Platform hแป— trแปฃ bแบกn thiแบฟt lแบญp alarm cho 2 loแบกi dแปฏ liแป‡u bao gแป“m:

  • Metric Alarm: cแบฃnh bรกo dแปฑa trรชn cรกc thรดng sแป‘ metric cแปงa bแบกn. Bแบกn sแบฝ nhแบญn ฤ‘ฦฐแปฃc cแบฃnh bรกo khi ฤ‘iแปu kiแป‡n thiแบฟt lแบญp vฦฐแปฃt ngฦฐแปกng cho phรฉp.

  • Log Alarm: cแบฃnh bรกo dแปฑa trรชn dแปฏ liแป‡u log cแปงa bแบกn. Bแบกn sแบฝ nhแบญn ฤ‘ฦฐแปฃc cแบฃnh bรกo khi ฤ‘iแปu kiแป‡n thiแบฟt lแบญp vฦฐแปฃt ngฦฐแปกng cho phรฉp.


Phแบกm vi giแป›i hแบกn Alarm

ฤแปƒ cรณ thแปƒ thiแบฟt lแบญp mแป™t alarm, bแบกn phแบฃi ฤ‘แบฃm bแบฃo ฤ‘รฃ thiแบฟt lแบญp thร nh cรดng Metric Agent hoแบทc Log Agent trรชn Server, ฤ‘แบฃm bแบฃo dแปฏ liแป‡u metrics hoแบทc logs ฤ‘รฃ ฤ‘ฦฐแปฃc ฤ‘แบฉy vแป hแป‡ thแป‘ng vMonitor Platform.

Quy tแบฏc ฤ‘แบทt tรชn Alarm

Cรกc quy tแบฏc sau รกp dแปฅng cho viแป‡c ฤ‘แบทt tรชn Alarm trong vMonitor Platform:

  • Tรชn Alarm phแบฃi dร i tแปซ 5 (tแป‘i thiแปƒu) ฤ‘แบฟn 50 (tแป‘i ฤ‘a) kรฝ tแปฑ.

  • Tรชn Alarm chแป‰ cรณ thแปƒ bao gแป“m cรกc chแปฏ cรกi viแบฟt hoa, viแบฟt thฦฐแป

  • ng (a-z, A-Z), sแป‘ (0-9), dแบฅu chแบฅm (.), dแบฅu gแบกch dฦฐแป›i (_), dแบฅu gแบกch ngang (-) vร  kรฝ tแปฑ @.

  • Tรชn Alarm phแบฃi bแบฏt ฤ‘แบงu bแบฑng mแป™t chแปฏ cรกi viแบฟt hoa, viแบฟt thฦฐแปng (a-z, A-Z) vร  kแบฟt thรบc bแปŸi mแป™t chแปฏ cรกi viแบฟt hoa, viแบฟt thฦฐแปng (a-z, A-Z) hoแบทc mแป™t chแปฏ sแป‘.

  • Tรชn Alarm khรดng nรชn chแปฉa cรกc thรดng tin nhแบกy cแบฃm (vรญ dแปฅ ฤ‘แป‹a chแป‰ IP, tรชn tร i khoแบฃn, mแบญt khแบฉu ฤ‘ฤƒng nhแบญp,...).

  • Tรชn Alarm phแบฃi lร  duy nhแบฅt trong mแป™t tร i khoแบฃn VNG Cloud cho ฤ‘แบฟn khi Alarm ฤ‘รณ bแป‹ xรณa.

Vรญ dแปฅ minh hแปa

  • Cรกc tรชn Alarm vรญ dแปฅ sau ฤ‘รขy hแปฃp lแป‡ vร  tuรขn theo cรกc nguyรชn tแบฏc ฤ‘แบทt tรชn ฤ‘ฦฐแปฃc ฤ‘แป xuแบฅt:

    • Alarm_email_group1

    • Alarm_80@sms

    • ...

  • Cรกc tรชn Alarm vรญ dแปฅ sau ฤ‘รขy hแปฃp lแป‡ nhฦฐng chรบng tรดi khรดng khuyแบฟn khรญch bแบกn sแปญ dแปฅng:

  • Cรกc tรชn Alarm vรญ dแปฅ sau khรดng hแปฃp lแป‡:

    • Report_usage_80_% (chแปฉa kรฝ tแปฑ %)

    • Alarm&Report (chแปฉa kรฝ tแปฑ &)

    • ...


KhแปŸi tแบกo Alarm

Mแป—i Alarm chแป‰ cรณ thแปƒ chแปฉa mแป™t loแบกi cแบฃnh bรกo ฤ‘ฦฐแปฃc thiแบฟt lแบญp trรชn dแปฏ liแป‡u metrics hoแบทc dแปฏ liแป‡u logs. ฤแปƒ tแบกo Alarm, hรฃy lร m theo hฦฐแป›ng dแบซn bรชn dฦฐแป›i:

  1. ฤฤƒng nhแบญp vร o https://hcm-3.console.vngcloud.vn/vmonitor. Nแบฟu bแบกn chฦฐa cรณ tร i khoแบฃn, ฤ‘ฤƒng kรฝ miแป…n phรญ tแบกi tแบกi ฤ‘รขy.

  2. Chแปn thฦฐ mแปฅc Alarm.

  3. Chแปn Create an Alarm.

  4. Trong mแปฅc Select an alarm type, chแปn Metric nแบฟu bแบกn muแป‘n thiแบฟt lแบญp cแบฃnh bรกo dแปฑa trรชn dแปฏ liแป‡u metric hoแบทc chแปn Log nแบฟu bแบกn muแป‘n thiแบฟt lแบญp cแบฃnh bรกo dแปฑa trรชn dแปฏ liแป‡u log.

5. Trong mแปฅc Set alarm conditions, lร m theo hฦฐแป›ng dแบซn bรชn dฦฐแป›i nแบฟu bแบกn muแป‘n thiแบฟt lแบญp Alarm cho metric hay log:

6. Chแปn Next.

7. Trong mแปฅc Actions, bแบกn cแบงn thiแบฟt lแบญp ฤ‘iแปu kiแป‡n hแป‡ thแป‘ng sแบฝ thรดng bรกo ฤ‘แบฟn ฤ‘รขu (Notification). Kแบฟt quแบฃ Alarm khi chแบกy sแบฝ bao gแป“m 3 trแบกng thรกi:

  • In-alarm: gแปญi cแบฃnh bรกo tแป›i nhรณm ngฦฐแปi nhแบญn khi kแบฟt quแบฃ alarm nแบฑm ngoร i ngฦฐแปกng ฤ‘รฃ xรกc ฤ‘แป‹nh.

  • OK: gแปญi cแบฃnh bรกo tแป›i nhรณm ngฦฐแปi nhแบญn khi kแบฟt quแบฃ alarm nแบฑm trong ngฦฐแปกng ฤ‘รฃ xรกc ฤ‘แป‹nh.

  • Undetermined: gแปญi cแบฃnh bรกo tแป›i nhรณm ngฦฐแปi nhแบญn khi alarm vแปซa bแบฏt ฤ‘แบงu hoแบทc khรดng cรณ ฤ‘แปง dแปฏ liแป‡u ฤ‘แปƒ xรกc ฤ‘แป‹nh.

แปž mแป—i trแบกng thรกi cแปงa alarm (In-alarm, OK, Undetermined), bแบกn cรณ thแปƒ chแปn mแป™t hoแบทc nhiแปu notification ฤ‘รฃ thiแบฟt lแบญp tแบกi Notification. Mแป™t ngฦฐแปi nhแบญn thรดng bรกo cลฉng cรณ thแปƒ nhแบญn cแบฃnh bรกo cho alarm แปŸ tแบฅt cแบฃ cรกc trแบกng thรกi. Chรบng tรดi khรดng giแป›i hแบกn sแป‘ lฦฐแปฃng ngฦฐแปi nhแบญn mร  bแบกn cรณ thแปƒ tแบกo tแบกi notification cลฉng nhฦฐ sแป‘ lฦฐแปฃng ngฦฐแปi nhแบญn mร  bแบกn thiแบฟt lแบญp trรชn alarm nhฦฐng sแป‘ lฦฐแปฃng thรดng bรกo gแปญi ฤ‘i qua cรกc kรชnh sแบฝ phแปฅ thuแป™c vร o cแบฅu hรฌnh gรณi metric quota, log project hay SMS notification quota, Email notification quota.

8. Chแปn Next.

9. Nhแบญp Alarm name. Hรฃy nhแบญp tรชn tuรขn thแปง theo quy ฤ‘แป‹nh cแปงa chรบng tรดi cho Alarm cแปงa bแบกn. Sau khi tแบกo Alarm, bแบกn cรณ thแปƒ thay ฤ‘แป•i tรชn cho Alarm cแปงa bแบกn.

10. Nhแบญp Alarm Description nแบฟu cรณ. Mรด tแบฃ alarm cรณ thแปƒ dร i tแปซ 0 (tแป‘i thiแปƒu) ฤ‘แบฟn 255 (tแป‘i ฤ‘a) kรฝ tแปฑ. Mรด tแบฃ Alarm cรณ thแปƒ bao gแป“m cรกc chแปฏ cรกi viแบฟt hoa, viแบฟt thฦฐแปng (a-z, A-Z), sแป‘ (0-9), dแบฅu chแบฅm (.), dแบฅu gแบกch dฦฐแป›i (_), dแบฅu gแบกch ngang (-) vร  kรฝ tแปฑ @.

11. Chแปn Severity cแปงa Alarm. Cรณ 3 mแปฉc ฤ‘แป™ nghiรชm trแปng ฤ‘ฦฐแปฃc chรบng tรดi ฤ‘แป‹nh nghฤฉa bao gแป“m: Thแบฅp, Trung Bรฌnh, Cao. Bแบกn hรฃy chแปn 1 mแปฉc ฤ‘แป™ theo ฤ‘รกnh giรก cรก nhรขn cแปงa bแบกn vแป›i cแบฃnh bรกo.

12. Chแปn Create.

13. Sau khi bแบกn thiแบฟt lแบญp xong mแป™t alarm, ban ฤ‘แบงu alarm sแบฝ แปŸ trแบกng thรกi: Undertermine. Tแป›i lแบงn ฤ‘รกnh giรก tiแบฟp theo Alarm sแบฝ chuyแปƒn trแบกng thรกi tฦฐฦกng แปฉng lร  OK hoแบทc In-alarm. Tแปซ ฤ‘รณ gแปญi cแบฃnh bรกo theo ฤ‘iแปu kiแป‡n ฤ‘ฦฐแปฃc thiแบฟt lแบญp tฦฐฦกng แปฉng.

14. Cแบฃnh bรกo ฤ‘ฦฐแปฃc gแปญi vร  bแบกn cรณ thแปƒ xem chi tiแบฟt Alarm bแบฑng cรกch nhแบฅn vรด tรชn cแปงa Alarm tฦฐฦกng แปฉng.


Chแป‰nh sแปญa Alarm

ฤแปƒ chแป‰nh sแปญa Alarm, hรฃy lร m theo hฦฐแป›ng dแบซn bรชn dฦฐแป›i:

  1. ฤฤƒng nhแบญp vร o https://hcm-3.console.vngcloud.vn/vmonitor. Nแบฟu bแบกn chฦฐa cรณ tร i khoแบฃn, ฤ‘ฤƒng kรฝ miแป…n phรญ tแบกi tแบกi ฤ‘รขy.

  2. Chแปn thฦฐ mแปฅc Alarm.

  3. Tแบกi Alarm mร  bแบกn muแป‘n chแป‰nh sแปญa, chแปn Edit.

  4. Chแป‰nh sแปญa cรกc thรดng sแป‘ cho Alarm mร  bแบกn mong muแป‘n. Bแบกn khรดng thแปƒ thay ฤ‘แป•i thรดng tin trong mแปฅc Select an alarm type mร  chแป‰ cรณ thแปƒ chแป‰nh sแปญa cรกc thรดng sแป‘ alarm trong cรกc mแปฅc: Set alarm conditions, Configure actions, Add alarm description. Viแป‡c chแป‰nh sแปญa nร y tฦฐฦกng tแปฑ nhฦฐ khi bแบกn thแปฑc hiแป‡n tแบกo mแป›i mแป™t Alarm theo hฦฐแป›ng dแบซn bรชn trรชn.

  5. Chแปn Save.


Xรณa Alarm

Khi bแบกn khรดng cรณ nhu cแบงu sแปญ dแปฅng mแป™t alarm nแปฏa, bแบกn cรณ thแปƒ thแปฑc hiแป‡n xรณa alarm khแปi hแป‡ thแป‘ng theo hฦฐแป›ng dแบซn bรชn dฦฐแป›i:

  1. ฤฤƒng nhแบญp vร o https://hcm-3.console.vngcloud.vn/vmonitor. Nแบฟu bแบกn chฦฐa cรณ tร i khoแบฃn, ฤ‘ฤƒng kรฝ miแป…n phรญ tแบกi tแบกi ฤ‘รขy.

  2. Chแปn thฦฐ mแปฅc alarm.

  3. Tแบกi alarm mร  bแบกn muแป‘n xรณa, chแปn Checkbox Chแปn. Bแบกn cรณ thแปƒ chแปn mแป™t hoแบทc nhiแปu alarm ฤ‘แปƒ thแปฑc hiแป‡n xรณa แปŸ bฦฐแป›c nร y.

  4. Chแปn Delete.

  5. Tแบกi mร n hรฌnh xรกc nhแบญn xรณa alarm, chแปn Delete.

Sau khi bแบกn thแปฑc hiแป‡n xรณa thร nh cรดng thรฌ alarm cแปงa bแบกn sแบฝ bแป‹ xรณa hoร n toร n khแปi hแป‡ thแป‘ng cแปงa chรบng tรดi. Bแบกn khรดng thแปƒ khรดi phแปฅc lแบกi alarm ฤ‘รฃ xรณa nรชn hรฃy lฦฐu รฝ cแบฉn thแบญn khi sแปญ dแปฅng tรญnh nฤƒng nร y.

Last updated