Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Terraformを使ってMackerelをもっと便利に
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
kidapan
October 03, 2022
Programming
1.4k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Terraformを使ってMackerelをもっと便利に
kidapan
October 03, 2022
More Decks by kidapan
See All by kidapan
[AI音楽セッション] 奇跡の1曲をあなたに。
kidapan
0
530
GitLabで快適な開発環境を! 〜GitLab Duo with Amazon Qのご紹介〜
kidapan
0
860
GitLab_Duo_with_Amazon_Q__1_.pdf
kidapan
0
420
202312_キラキラミラクルな呪文でIaCを実現 ~あなたも魔法を使い倒しませんか~
kidapan
0
1.1k
20231026_GitLabで実現_効率的な開発環境を
kidapan
0
1k
[Snyk]デベロッパーセキュリティ強化! ~シフトレフトで安全な開発を~
kidapan
0
890
202307_GitLab入門 ~特徴的な機能にふれるワークショップ~
kidapan
0
1.4k
AIと一緒に音楽を作ろう ~作曲体験セッション~
kidapan
1
970
2023/05/11_GitLabの活用
kidapan
0
2k
Other Decks in Programming
See All in Programming
Laravelのアプリケーションをどこにデプロイするか #ツナギメオフライン.9
akase244
0
130
Family mrubyの進捗
kishima
1
110
XP祭りでしか伝わらないフリップネタ #xpjug
murabayashi
0
140
AGENTS.md Is Not Enough:Build Skills, Don't Download Them
lx_t
0
110
スマート反転とウェブアクセシビリティ
camiha
0
200
変化を抱擁するドキュメントの作り方 - ビジネスルール駆動開発がもたらす、コードとの新しい関係
ioki
2
150
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
0
150
Claude Codeを組織的に動かして月400PRを実現した話
happy_ryo
0
270
選挙速報を多くのユーザーへ 届ける Live Activities 設計
hamayokokuririn
0
120
Heart of Swift Concurrency
koher
0
330
型解析で実現する Go の言語内 DSL / Conference に Go! タイムテーブルの歩き方 for Gophers
mazrean
0
140
AIを上手に使っていこうとしたら越境せざるを得なくなった話 〜実践1年で見えた境界を越えなければならない理由と進め方〜 / Crossing borders with AI
tomoyakitaura
4
1.1k
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
350
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
330
Darren the Foodie - Storyboard
khoart
PRO
3
3.9k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
450
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
720
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
Faster Mobile Websites
deanohume
310
32k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
270
Transcript
Terraformを使って Mackerelをもっと便利に きだぱん 2022.10.04
自己紹介 2 きだ まいこ /きだぱん • クラスメソッド株式会社 アライアンス統括部 エンジニアグループ •
担当:DevOps製品 • 特性:ジャニーズ大好き おまめ (生後8か月) 人間で25歳
Mackerelとは Mackerelって、なんだろう
Mackerelとは Mackerelって、なんだろう
Mackerelとは 5 Mackerelとは、 クラウド時代に最適な監視モデルと誰でも簡単に使えるUIによって、システム の運用・監視にチームで取り組む文化を育むSaaS型サーバー監視サービス です。 https://ja.mackerel.io/
Mackerelとは Mackerelで何ができるの?
Mackerelとは 監視 リソース状況を監視 障害を検知できる エージェントから メトリック取得 グラフ/アラート通知
Mackerelの魅力 • 導入が簡単!! • 一元管理可能 • コンテナ監視 • プラグイン
簡単に始められる 導入はガイドにしたがってコマンドを実行するだけ エージェントが死活監視とメトリック取得を自動で開始 https://dev.classmethod.jp/articles/mackerel-graph-2207/
Mackerelの魅力 • 導入が簡単!! • 一元管理可能 • コンテナ監視 • プラグイン
仕組み エージェントから メトリック投稿 アラート通知 URL外形監視 コンテナ 仮想マシン オンプレミス コンソール API・CLI
プラグイン https://mackerel.io/ja/docs/entry/custom-checks
実践 実際に設定していきましょう!
実際に設定していきましょう! 手作業ではやりません!!!!!!
Mackerel × Terraform https://registry.terraform.io/providers/mackerelio-labs/mackerel/0.1.0
Terraform • Terraformは、IaCを実現する ツール • オープンソース/Go言語 • Terraformではコードにより 実行可能
Terraform
何ができる • ダッシュボードの管理 • 監視ルールの管理 ◦ ホストメトリック ◦ サービスメトリック ◦
外形 ◦ 式
環境 • Terraform-clolud • Mackerel • GitHub
流れ • Terraform-cloudの設定 • Terraformの構成 • serviceを作成 • roleを作成 •
monitorを作成 • notificationを作成 今回は、割愛します
terraform構成 役割毎にtfファイルを分離 https://registry.terraform.io/providers/mackerelio-labs/mackerel/0.1.0
service 監視対象となるシステムやサービスを構成している1つ 以上のホスト群をグルーピングするための単位
ロール サービスに属する1つ以上のホスト群を さらに細かくグルーピングするための単位
service/ロール作成 • name = (Required) The name of service. •
memo = Notes related to this service. https://registry.terraform.io/providers/mackerelio-labs/mackerel/0.1.0
service/ロール作成 https://registry.terraform.io/providers/mackerelio-labs/mackerel/0.1.0
monitor CPU % Memory % Swap % Filesystem %
monitor https://registry.terraform.io/providers/mackerelio-labs/mackerel/0.1.0
monitor https://registry.terraform.io/providers/mackerelio-labs/mackerel/0.1.0
通知先
まとめ • とにかく使いやすくて簡単 •直感的でわかりやすい • 細かなカスタマイズが可能
まとめ とにかく、Mackerelが便利すぎる!! Terraform使うともっと便利!!
None