Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Grafana datasource plugin
Search
gree_tech
PRO
May 24, 2016
Technology
0
210
Grafana datasource plugin
gree_tech
PRO
May 24, 2016
Tweet
Share
More Decks by gree_tech
See All by gree_tech
コミュニケーションに鍵を見いだす、エンジニア1年目の経験談
gree_tech
PRO
0
120
REALITY株式会社における開発生産性向上の取り組み: 失敗と成功から学んだこと
gree_tech
PRO
2
1.7k
『ヘブンバーンズレッド』におけるフィールドギミックの裏側
gree_tech
PRO
2
560
セキュリティインシデント対応の体制・運用の試行錯誤 / greetechcon2024-session-a1
gree_tech
PRO
1
560
『アナザーエデン 時空を超える猫』国内海外同時運営実現への道のり ~別々で開発されたアプリを安定して同時リリースするまでの取り組み~
gree_tech
PRO
1
530
『アサルトリリィ Last Bullet』におけるクラウドストリーミング技術を用いたブラウザゲーム化の紹介
gree_tech
PRO
1
620
UnityによるPCアプリの新しい選択肢。「PC版 Google Play Games」への対応について
gree_tech
PRO
1
980
実機ビルドのエラーによる検証ブロッカーを0に!『ヘブンバーンズレッド』のスモークテスト自動化の取り組み
gree_tech
PRO
1
640
"ゲームQA業界の技術向上を目指す! 会社を超えた研究会の取り組み"
gree_tech
PRO
1
760
Other Decks in Technology
See All in Technology
WordPressから ヘッドレスCMSへ! Storyblokへの移行プロセス
nyata
0
350
Geminiとv0による高速プロトタイピング
shinya337
0
200
KubeCon + CloudNativeCon Japan 2025 Recap by CA
ponkio_o
PRO
0
260
改めてAWS WAFを振り返る~業務で使うためのポイント~
masakiokuda
1
120
LangChain Interrupt & LangChain Ambassadors meetingレポート
os1ma
2
230
Understanding_Thread_Tuning_for_Inference_Servers_of_Deep_Models.pdf
lycorptech_jp
PRO
0
150
Lambda Web Adapterについて自分なりに理解してみた
smt7174
5
140
Core Audio tapを使ったリアルタイム音声処理のお話
yuta0306
0
160
マーケットプレイス版Oracle WebCenter Content For OCI
oracle4engineer
PRO
3
940
ドメイン特化なCLIPモデルとデータセットの紹介
tattaka
2
530
登壇ネタの見つけ方 / How to find talk topics
pinkumohikan
7
600
Liquid Glass革新とSwiftUI/UIKit進化
fumiyasac0921
0
300
Featured
See All Featured
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Embracing the Ebb and Flow
colly
86
4.7k
Unsuck your backbone
ammeep
671
58k
How to Think Like a Performance Engineer
csswizardry
24
1.7k
Scaling GitHub
holman
459
140k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
31
1.3k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
2.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
657
60k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
Transcript
Grafana Datasource plugin
自己紹介 • 反田 光洋 • グリー株式会社 インフラストラクチャ部 • 2011年1月入社 •
AWSで運用しているサービスのモニタリング構築を担当
Grafana • 時系列データを可視化 • 多様なグラフ表示オプション • ダッシュボード作成 • Templatingによるグラフの動的生成 •
イベントのAnnotation表示
None
Graph panel Singlestat panel Table panel Elasticsearch plugin CloudWatch plugin
Prometheus plugin Plugin Architecture
Plugin Datasource • Graphite • OpenTSDB • InfluxDB • Elasticsearch
• Prometheus • CloudWatch Panel • Graph • Singlestat • Table • Text
Grafana 3.0 • Next release version • Plugin support! –
Datasource plugin • http://docs.grafana.org/v3.0/plugins/datasources/ – Panel plugin • http://docs.grafana.org/v3.0/plugins/panels/
Plugin Datasource • Graphite • OpenTSDB • InfluxDB • Elasticsearch
• Prometheus • CloudWatch • KairosDB • SimpleJson • TSV Panel • Graph • Singlestat • Table • Text • Pie Chart • Histogram
Datasource pluginの作成手順 • 各種クエリの実装 – query() • Datasourceからのデータ取得 – metricFindQuery()
• Templating用のデータ取得 – annotationQuery() • Annotation用のデータ取得 • クエリエディタのUI実装
Templating & Panel Repeat • 表示対象をドロップダウンで切り替え • メタデータからグラフを動的に生成 – production環境の全DBサーバのグラフ
– DCごとの負荷平均グラフ • モニタリング対象の増減に柔軟に対応 – グラフ追加/削除の設定作業が不要
CloudWatch plugin CloudWatch instance_id i-56787ef3 i-717d74d4 i-f8f2a95d Create graph panels
(Panel Repeat) ec2_instance_attribute(ap-northeast-1, InstanceId, {"tag:Environment": ["production"]})
Annotation • グラフ上にイベント発生の時系列を表示 – アラート発生時点のメトリクス確認 – デプロイ前後での負荷傾向の変化を確認
time instance_id metadata 1458121100000 i-56787ef3 { … } 1458122780000 i-56787ef3
{ … } 1458122840000 i-56787ef3 { … } Prometheus plugin load_one_minutes > bool 0.5 Show annotations
まとめ • Datasource plugin対応で、より汎用的な可 視化ツールとして使える • Templatingにより動的な環境にも対応 • Annotationによりグラフ内でより詳細な分 析が可能