GreenWallでWebサービスの稼動状態モニタリング
GitHub - mtojek/greenwall: Tiny service health dashboard written in Go
yamlで稼動状態を監視したいURLを入力しておくと、
定期的にアクセスして稼働状況を表示するダッシュボードを作ってくれる。
例えば以下の設定で動かすと、
--- general: healthcheckEvery: 15s httpClientTimeout: 5s refreshDashboardEvery: 10s groups: - name: よく使うサービス nodes: - name: github endpoint: https://github.com/ - name: twitter endpoint: https://twitter.com/
以下のようなダッシュボードが生成される。
使い方は簡単、
- go get github.com/mtojek/greenwall
- config.yaml を書く
- greenwall -staticDir $GOPATH/src/github.com/mtojek/greenwall/frontend
- http://localhost:9001 にブラウザでアクセス
以上。
よく使うサービスはもちろん、提供サービスやバックエンドのAPIサーバ等も監視できる。
グループ化して切り替えもできるのでサービスの稼働状況を一覧するのに使えそうだ。