SlideShare a Scribd company logo
Submit Search
Upload
Login
Signup
Mackerel の standard プランを個人利用している話
Report
a know
Follow
Customer Reliability Engineer at Hatena Co., Ltd.
Jun. 14, 2016
•
0 likes
•
3,419 views
1
of
41
Mackerel の standard プランを個人利用している話
Jun. 14, 2016
•
0 likes
•
3,419 views
Download Now
Download to read offline
Report
Engineering
Mackerel User Group Meeting Vol.1 LT 資料です!
a know
Follow
Customer Reliability Engineer at Hatena Co., Ltd.
Recommended
Perl ウェブ開発の中世〜CGI と Plack の間〜
鉄次 尾形
8.7K views
•
66 slides
SpringOne Tour: Spring Recipes: A Collection of Common-Sense Solutions
VMware Tanzu
34 views
•
136 slides
Going global producthunt
Empatika
1.3K views
•
15 slides
Marketing Automation Hacks: Marketo
Uberflip
12.4K views
•
30 slides
Google analytics reporting using api
Sankar Ponnusamy
474 views
•
8 slides
#SPSTC Maximizing the SharePoint User Experience with Free 3rd Party jQuery L...
Mark Rackley
1.2K views
•
27 slides
More Related Content
Similar to Mackerel の standard プランを個人利用している話
Migrating Wine Quiz to Parse Server
davidolesch
177 views
•
12 slides
Startup Metrics for Pirates (Twiistup, Jan 2010)
Dave McClure
8.1K views
•
68 slides
Web Analytics
DianaSisto
656 views
•
30 slides
Startup Metrics 4 Pirates (May 2010)
Dave McClure
8.2K views
•
66 slides
RIPE Atlas - Cisco Workshop
Massimo Candela
252 views
•
56 slides
The Art of AngularJS in 2015 - Angular Summit 2015
Matt Raible
37.3K views
•
85 slides
Similar to Mackerel の standard プランを個人利用している話
(20)
Migrating Wine Quiz to Parse Server
davidolesch
•
177 views
Startup Metrics for Pirates (Twiistup, Jan 2010)
Dave McClure
•
8.1K views
Web Analytics
DianaSisto
•
656 views
Startup Metrics 4 Pirates (May 2010)
Dave McClure
•
8.2K views
RIPE Atlas - Cisco Workshop
Massimo Candela
•
252 views
The Art of AngularJS in 2015 - Angular Summit 2015
Matt Raible
•
37.3K views
Startup Metrics for Pirates (SF, Jan 2010)
Dave McClure
•
70.5K views
Curating Your Cukes by Eric Kessler
QA or the Highway
•
436 views
User Behavior Tracking with Google Analytics, Garb, and Vanity
Tony Pitale
•
46.7K views
Google App Engine Using NetBeans (in Thai)
Software Park Thailand
•
12.8K views
Records-Analytics_in_Course_Design__Leveraging_Canvas_Data
Ricardo A. VanEgas
•
92 views
JavaScripters Event Oct 22, 2016 · 2:00 PM: Common Mistakes made by Angular D...
JavaScripters Community
•
59 views
The Art of Angular in 2016 - vJUG24
Matt Raible
•
1.2K views
Build your winning product in two weeks
Quan Truong
•
233 views
MyDrive Solutions: Case Study: Troubleshooting Production Issues as a Developer.
DataStax Academy
•
1.1K views
Case Study: Troubleshooting Cassandra performance issues as a developer
Carlos Alonso Pérez
•
1.4K views
Demand Flexibility as a Resource
Leonardo ENERGY
•
92 views
Demand Flexibility as a Resource
Leonardo ENERGY
•
115 views
The Art of Angular in 2016 - Devoxx France 2016
Matt Raible
•
5.9K views
MWC_GA_101
Ruth Rosengren
•
195 views
More from a know
Pixela introduction document - builderscon 2019
a know
151 views
•
39 slides
"草APIサービス" Pixela を作った話
a know
1.7K views
•
49 slides
セールスエンジニアとして今後身につけていきたい技術
a know
8.3K views
•
30 slides
私の「キャリアキーノート」
a know
1.6K views
•
60 slides
「お手軽な機械学習サービス」で、ルーティンワークに立ち向かおう!
a know
3.8K views
•
66 slides
フィードフォースと AWS と私
a know
4.9K views
•
132 slides
More from a know
(10)
Pixela introduction document - builderscon 2019
a know
•
151 views
"草APIサービス" Pixela を作った話
a know
•
1.7K views
セールスエンジニアとして今後身につけていきたい技術
a know
•
8.3K views
私の「キャリアキーノート」
a know
•
1.6K views
「お手軽な機械学習サービス」で、ルーティンワークに立ち向かおう!
a know
•
3.8K views
フィードフォースと AWS と私
a know
•
4.9K views
今日から始める Go言語 と appengine
a know
•
8.6K views
サンタソン【サンタは俺らに何もくれない!だったら、俺らでアプリを作ろう】
a know
•
1.1K views
はじめよう JavaFX 2.x
a know
•
1.2K views
はじめよう JavaFX 2.x(第3回 岡山Javaユーザー会)
a know
•
2.7K views
Recently uploaded
Daher-Socata TBM 700A/B Aircraft Pilot Information Manual.pdf
TahirSadikovi
19 views
•
772 slides
AICE- UNIT-3.pptx
GunaSekaran958261
15 views
•
57 slides
Presentation of Advance Operator Course new course 2Urdu by Khalid ayaz Soomr...
KhalidAyaz3
33 views
•
108 slides
Vintage Computing Festival Midwest 18 2023-09-09 What's In A Terminal.pdf
Richard Thomson
8 views
•
46 slides
2023 - Google Cloud Study Jam for GDSC - Session 2 - Getting Started with Goo...
HarshDambhare1
40 views
•
11 slides
NFPA 291 -2019 Ingles.pdf
JOSELUISPUMASUPAARCE2
16 views
•
25 slides
Recently uploaded
(20)
Daher-Socata TBM 700A/B Aircraft Pilot Information Manual.pdf
TahirSadikovi
•
19 views
AICE- UNIT-3.pptx
GunaSekaran958261
•
15 views
Presentation of Advance Operator Course new course 2Urdu by Khalid ayaz Soomr...
KhalidAyaz3
•
33 views
Vintage Computing Festival Midwest 18 2023-09-09 What's In A Terminal.pdf
Richard Thomson
•
8 views
2023 - Google Cloud Study Jam for GDSC - Session 2 - Getting Started with Goo...
HarshDambhare1
•
40 views
NFPA 291 -2019 Ingles.pdf
JOSELUISPUMASUPAARCE2
•
16 views
AICE- UNIT-1.pptx
GunaSekaran958261
•
25 views
GDSC PU Cloud Study Jam Intro. Session 23-24.pdf
POORNIMA UNIVERSITY
•
48 views
GCSJ - GDSC NCU | Session 1
Shivam254129
•
47 views
AICE- UNIT-5.pptx
GunaSekaran958261
•
37 views
렌즈-자동화-공정-설명.pptx
ssuser1ee83c
•
148 views
SC 24でのメタバース関連標準化概要:ヘルスケア応用事例を交えて(ISO/IEC JTC 1/SC 24)
Kurata Takeshi
•
27 views
05_ Mohammad Mahdi Farshadian CV - Prospective PhD Student 2024.pdf
Educational Group Mohammad Farshadian
•
35 views
Socata TB20 Pilot Information Manual.pdf
TahirSadikovi
•
8 views
Airbus A330 Flight Crew Operating Manual PDF.pdf
TahirSadikovi
•
12 views
Airbus A318, A319, A320, A321 Aircraft Flight Crew Operating Manual.pdf
TahirSadikovi
•
14 views
A BOOK ON BASIC CONCEPT OF MODERN POWER PLANTS by khalid ayaz soomro.pdf
KhalidAyaz3
•
13 views
Daher-Socata TBM 900 Aircraft Pilot Information Manual.pdf
TahirSadikovi
•
13 views
Foamtec Profile
SusanHninn
•
39 views
Generative AI for the rest of us
Massimo Ferre'
•
15 views
Mackerel の standard プランを個人利用している話
1.
Mackerel standard @a_know Mackerel User
Group Meeting Vol.1, 2016/6/14 1
2.
Who am I
? • @a_know / id:a-know / / • a-know.me • • Rails • • Chef, serverspec / GCP / Team Building Mackerel User Group Meeting Vol.1, 2016/6/14 2
3.
Mackerel User Group
Meeting Vol.1, 2016/6/14 3
4.
Mackerel Mackerel User Group
Meeting Vol.1, 2016/6/14 4
5.
• ... • A
Mackerel • B fluent-plugin-mackerel • C • D Mackerel User Group Meeting Vol.1, 2016/6/14 5
6.
Mackerel User Group
Meeting Vol.1, 2016/6/14 6
7.
Mackerel User Group
Meeting Vol.1, 2016/6/14 7
8.
... ! Mackerel User
Group Meeting Vol.1, 2016/6/14 8
9.
a-know.me Mackerel User Group
Meeting Vol.1, 2016/6/14 9
10.
! ¥ 1,800 /
month Mackerel User Group Meeting Vol.1, 2016/6/14 10
11.
≧ Mackerel User Group
Meeting Vol.1, 2016/6/14 11
12.
Mackerel Mackerel User Group
Meeting Vol.1, 2016/6/14 12
13.
Mackerel • • fluent-plugin-mackerel • • • Mackerel User
Group Meeting Vol.1, 2016/6/14 13
14.
Mackerel User Group
Meeting Vol.1, 2016/6/14 14
15.
Mackerel Mackerel User Group
Meeting Vol.1, 2016/6/14 15
16.
Dashing • Dashing plugin
widget Mackerel User Group Meeting Vol.1, 2016/6/14 16
17.
Mackerel User Group
Meeting Vol.1, 2016/6/14 17
18.
• https://github.com/Shopify/dashing/wiki/Additional- Widgets Mackerel User
Group Meeting Vol.1, 2016/6/14 18
19.
• Dashing widget
Ruby • fitbit Widget • Google Analytics visitor count widget • 1 widget • Mackerel • Web API Mackerel User Group Meeting Vol.1, 2016/6/14 19
20.
Mackerel User Group
Meeting Vol.1, 2016/6/14 20
21.
• fitgem gem fitbit
= Fitbit.new unit_system: 'METRIC' fluent_logger('a-know-metricks') .post('activity', { todays_steps: fitbit.todays_steps }) Mackerel User Group Meeting Vol.1, 2016/6/14 21
22.
• td-agent.conf <match a-know-metricks.activity.**> type
mackerel api_key <%= @mackerel_api_key %> service <%= @mackerel_service_name %> metrics_name a-know-metricks-activity.todays_steps out_keys todays_steps </match> Mackerel User Group Meeting Vol.1, 2016/6/14 22
23.
Mackerel User Group
Meeting Vol.1, 2016/6/14 23
24.
Mackerel User Group
Meeting Vol.1, 2016/6/14 24
25.
• google-api-client gem client
= Google::APIClient.new(appinfo_hash) client.authorization = Signet::OAuth2::Client.new(credentials_hash) client.authorization.fetch_access_token! analytics = client.discovered_api('analytics','v3') # Execute the query, get the value `[["1"]]` response = client.execute(api_method: analytics.data.realtime.get, parameters: { ids: "ga:" + profile_id, metrics: "ga:activeVisitors", }).data.rows.flatten number = response.empty? ? 0 : response.first.to_i fluent_logger('blog-metricks') .post('active-visitors', { number: number }) Mackerel User Group Meeting Vol.1, 2016/6/14 25
26.
• td-agent.conf <match blog-metricks.active-visitors.**> type
mackerel api_key <%= @mackerel_api_key %> service <%= @mackerel_service_name %> metrics_name blog-metricks-active-visitors.number out_keys number </match> Mackerel User Group Meeting Vol.1, 2016/6/14 26
27.
Mackerel User Group
Meeting Vol.1, 2016/6/14 27
28.
Mackerel User Group
Meeting Vol.1, 2016/6/14 28
29.
! Mackerel User Group
Meeting Vol.1, 2016/6/14 29
30.
wkwk ... Mackerel User
Group Meeting Vol.1, 2016/6/14 30
31.
Mackerel • • fluent-plugin-mackerel • • a-know • Mackerel
User Group Meeting Vol.1, 2016/6/14 31
32.
(?) ... Mackerel User Group
Meeting Vol.1, 2016/6/14 32
33.
Mackerel User Group
Meeting Vol.1, 2016/6/14 33
34.
• API • standard
(?) • a-know.me https • Mackerel User Group Meeting Vol.1, 2016/6/14 34
35.
! Mackerel User Group
Meeting Vol.1, 2016/6/14 35
36.
API Mackerel User Group
Meeting Vol.1, 2016/6/14 36
37.
API Mackerel User Group
Meeting Vol.1, 2016/6/14 37
38.
Mackerel User Group
Meeting Vol.1, 2016/6/14 38
39.
nginx location ~ /(blog_metricks|a_know_metricks)/.+
{ allow 59.106.108.64/26; deny all; try_files $uri @unicorn; } Mackerel User Group Meeting Vol.1, 2016/6/14 39
40.
... Mackerel User Group
Meeting Vol.1, 2016/6/14 40
41.
End ✋ • http://goo.gl/fLWGhp Mackerel
User Group Meeting Vol.1, 2016/6/14 41