0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AWS Canaryを使って外形監視する

Posted at

Canary

  • カナリア
  • 内部的にはLambdaとCloudwatchAlermが連携してくれている
  • 外形監視、API監視、セレニウムでのGUI操作などができる
  • SNSに連携できるので、メール、Slack、Teamsなどに飛ばすことができる
  • Terraformはなかった

CloudWatchコンソールを開く

  • Canariers - 設計図 - ハートビートのモニタリングを選ぶ
    image.png

監視したいURLを入力

image.png

スクリプトを設定

好みのランタイムを選ぶ

image.png

変更する場所

  • const URL = "https://vamdemicsystem.black";
    • 監視対象のURL
  • if (response.status() < 200 || response.status() > 299) {
    • 正常とみなすステータスコードが302とかであれば、変える

ログを保管するS3を選ぶ

image.png

しきい値と連携するSNSを選ぶ

  • しきい値は1でなかったら(200-299のレスポンスコードでなかったら)、異常と判定する
    image.png

作成ボタンをクリック

  • 作成中に作業中のブラウザで別の画面などにいくとリセットされてしまう
    image.png

動作確認

  • Webサーバを落としたりしてテストする

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?