Download - Monitoringcasual007
Ikachan for HipChat
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 1
who? Satoshi SUZUKI
4 Twitter: @studio3104
4 GitHub: studio3104
4 Work: LINE Corporation
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 2
notification© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 3
notification of alerts4 閾値を超えたら通知を出したい4 メール?4 IM?4 チャット?
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 4
notification of alerts例えば IRC に直接通知するスクリプトを書く
4 各 script がそれぞれ IRC サーバに直接繋ぐの?4 うざい
4 IRC サーバの IP とか port とか変わったら?4 変更祭だるい!!
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 5
Ikachan http://blog.yappo.jp/yappo/archives/000760.html
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 6
ikachan4 IRC server につながりっぱなしなサーバ4 HTTP POST にて指定した channel に message 投稿4 実装言語がなんであろうと使える
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 7
notification of alertsikachan なら
4 各 script がそれぞれ IRC サーバに直接繋ぐの?4 ikachan server だけが繋がってれば良い
4 IRC サーバの IP とか port とか変わったら?4 ikachan server の設定だけ変えればいい
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 8
one day...© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 9
「IRC から HipChat に移行します」
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 10
\(^o^)/© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 11
ikachan に代わる者が必要だ...
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 12
Ikachan for HipChat
Ikasan https://github.com/studio3104/ikasan
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 13
Ikasan4 Ikachan と互換性のある API
4 /notice, /privmsg で通知が出来る4 /join, /leave はない4 color とか、HipChat ならではのパラメタもサポート
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 14
Ikasan4 エイリアスの機能がある4 channel: "#monitoring" な投稿を、HipChat の
MonitoringCasual ルームに投稿させる、みたいなルールを定義しておける
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 15
Ikachan -> Ikasan
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 16
Ikachan -> IkasanIkachan がこんな感じで動いていたとします<VirtualHost *:80> ServerName ikachan.server ProxyPass / http://localhost:5000/ ProxyPassReverse / http://localhost:5000/</VirtualHost>
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 17
Ikachan -> IkasanIkasan を 3000 とかで動かして設定を変えて graceful
<VirtualHost *:80> ServerName ikachan.server ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/</VirtualHost>
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 18
Ikachan -> Ikasan4 これで各 script をいじることなく通知を IRC から
HipChat に移行できた!4 通知先のHipChat のルーム名が IRC のチャンネル名とまったく一緒ならこれで完了4 違う場合は前述のエイリアスを定義してあげればいい
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 19
Afterword© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 20
afterword4 ikachan みたいな感じに役割をしっかり分けてる感じの結合強度サイコーです
4 daioikachan って名前で Slack とかにも通知出来るようにしてと言われた4 だるいからやってない4 自分で使わないし
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 21
By the way...© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 22
We lost them...© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 23
We are hiring!!
http://linecorp.com/ja/career/position/317
© Satoshi SUZUKI, @studio3104. monitoring casual talks #7 at SmartNews, Inc. Jan 30, 2015. 24