Top Banner
ChatOps with Hubot 2016-02-05 社内勉強会 @kakakakakku
22

ChatOps with Hubot

Jan 07, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ChatOps with Hubot

ChatOps with Hubot2016-02-05 社内勉強会 @kakakakakku

Page 2: ChatOps with Hubot

Slack !!!

Page 3: ChatOps with Hubot

ChatOps !!!

Page 4: ChatOps with Hubot

Mark Zuckerberg said : My personal challenge for 2016 is to build a simple AI to run my home and help me with my work. You

can think of it kind of like Jarvis in Iron Man.

Page 5: ChatOps with Hubot

Hey, Jarvis !!!

Page 6: ChatOps with Hubot

What is Hubot ?

Page 7: ChatOps with Hubot

Hubot

• GitHub 製 Bot フレームワーク

• アダプター (Slack / HipChat …)

• ChatOps を導入するならデファクトスタンダード

• Hubot Scripts

• https://github.com/hubot-scripts

• 非公式 Plugin も多く公開されている

Page 8: ChatOps with Hubot

DEMO : Botty (個人用 Slack で稼働するボット)

Page 9: ChatOps with Hubot

• @botty ping

• @botty time

• @botty 天気 東京

• @botty ship it

• @botty pug me

Hey, Botty !

(DEMO します)

Page 10: ChatOps with Hubot

• @botty omikuji

• @botty assign

Hey, Botty !

# Description: # Script for assign member # # Commands: # hubot assign - Assign member automatically module.exports = (robot) ->

robot.respond /assign/i, (res) -> member = res.random ['@kakakakakku', '@botty', '@slackbot'] res.send member + ' !!!'

(DEMO します)

Page 11: ChatOps with Hubot

• @botty github trending

• @botty github trending go

Hey, Botty !

(DEMO します)

Page 12: ChatOps with Hubot

アイデア無限大

Page 13: ChatOps with Hubot

ChatOps 他社事例

Page 14: ChatOps with Hubot

日常の “Ops” を効率化できる• デプロイ自動化

• AWS オペレーション自動化

• リリース PR 自動生成

• レポーティング(KPI / システムパフォーマンス)

• 各種設定変更

• 内部管理画面ではなく ChatOps で

Page 15: ChatOps with Hubot

真面目に ChatOps のメリットとは• コミュニケーション活性化 (…もあるけど)

• コンテキストを共有できる

• 今って何がデプロイされてるの?

• “開始します / 終了しました” の周知も効率化

• 属人性無く情報を取得できる (KPI / グラフ)

• その情報を見て全員で議論もできる

Page 16: ChatOps with Hubot

Hubot 構成

Page 17: ChatOps with Hubot

リクエストすると

返ってくる

8-24時で稼働 (無料枠対応)

Slack Hubot App

Page 18: ChatOps with Hubot

(参考) Heroku を Mackerel で監視する

Page 19: ChatOps with Hubot

Hubot だと変化なしw

Page 20: ChatOps with Hubot

アラートを Slack に通知できる

Page 21: ChatOps with Hubot

まとめ

Page 22: ChatOps with Hubot

Let’s start ChatOps :)