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
最近 Mackrel でやったこと
Search
Hidekazu Tanaka
April 27, 2017
Technology
3.5k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
最近 Mackrel でやったこと
Hidekazu Tanaka
April 27, 2017
More Decks by Hidekazu Tanaka
See All by Hidekazu Tanaka
mackerel-plugin-aws-waf をつくった
holidayworking
0
1.4k
Other Decks in Technology
See All in Technology
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
0
110
事業課題から技術的負債に向き合う
sansantech
PRO
2
2k
Claude in Chrome 入門 / Introduction to Claude in Chrome
cielo1985
0
860
HRC_Frontend_Conference_Fukuoka_2026.pdf
ts020
0
750
SREの視点で考えるSIEM活用術 〜AWS環境でのセキュリティ強化〜
cscengineer
PRO
0
110
Minecraft JavaのMODをSwiftで作る
1mash0
0
180
アプリをもっと"iOSアプリっぽく"する小さな工夫 / Small Touches That Make Your App Feel More Like an iOS App
matsuji
2
950
その Lambda、8分で 管理者権限まで奪われます
k1nakayama
6
3k
AIエージェントの自己改善をどう設計するか / How to Design Self-Improvement for AI Agents
22mi
25
16k
Slack上でインフラをトラブルシュートする! Agentic Platform Engineeringの第一歩
teru0x1
5
1.8k
作って終わりじゃないサーバーレス 〜9年運用する大規模EC物流API基盤の設計・運用のリアル〜
zozotech
PRO
0
160
.NET WebAssemblyで実現するクライアントサイドAI推論:NuGetからViteまで、2つのエコシステムを繋ぐビルド戦略
yamachu
0
130
Featured
See All Featured
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Agile Actions for Facilitating Distributed Teams - ADO2019
mkilby
0
280
Building Flexible Design Systems
yeseniaperezcruz
330
41k
It's Worth the Effort
3n
188
29k
RailsConf 2023
tenderlove
30
1.5k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
530
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.5k
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
830
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.6k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Imperfection Machines: The Place of Print at Facebook
scottboms
270
14k
Transcript
࠷ۙ Mackerel Ͱ ͬͨ͜ͱ 2017.04.27 Mackerel Meetup #10 Hidekazu Tanaka
ࣗݾհ • ాதल • φϏϓϥεגࣜձࣾαʔϏε౷ׅ෦ • ԼهαʔϏεͷ։ൃɾӡ༻ɾอक୲ • NaviPlus Ϩίϝϯυ
• NaviPlus ϨϏϡʔ
ࣗݾհ • ࡞ͨ͠ Mackerel ϓϥάΠϯ • mackerel-plugin-aws-waf • mackerel-plugin-aws-rekognition •
mackerel-plugin-aws-kinesis-firehose
Mackerel ͱ͍͑
៉ྷͳάϥϑ
៉ྷͳάϥϑͰ
͍Ζ͍ΖͳͷΛՄࢹԽʂ
ՄࢹԽͨ͠ͷ • υϧԁͷϨʔτ • iPhone ͷϔϧεέΞσʔλ
υϧԁͷϨʔτ
खॱ 1. Yahoo Finance ͔ΒυϧԁͷϨʔτΛऔಘ 2. Mackerel ʹαʔϏεϝτϦοΫͱͯ͠ߘ
ίʔυ #!/usr/bin/env ruby require 'mackerel' require 'yahoo-finance' MACKEREL_API_KEY = '<API
Key>' MACKEREL_SERVICE_NAME = '<service name>' yahoo_client = YahooFinance::Client.new data = yahoo_client.quote('USDJPY=X', [:ask, :bid, :last_trade_date, :last_trade_time]) time = Time.strptime("#{data.last_trade_date} #{data.last_trade_time} +01:00", '%m/%d/ %Y %H:%M%P %:z') mackerel_client = Mackerel::Client.new(mackerel_api_key: MACKEREL_API_KEY) mackerel_client.post_service_metrics(MACKEREL_SERVICE_NAME, [ { name: 'finance.usdjpy.ask', time: time.to_i, value: data.ask.to_f }, { name: 'finance.usdjpy.bid', time: time.to_i, value: data.bid.to_f } ])
ੜ͞Εͨάϥϑ
iPhone ͷϔϧεέΞσʔλ
खॱ 1. ʮHealth ExportʯͰาσʔλΛ CSV Խ 2. CSV Λ iCloud
Drive Ͱ macOS ʹసૹ 3. macOS Ͱ CSV Λϩʔυ 4. Mackerel ʹαʔϏεϝτϦοΫͱͯ͠ߘ
ίʔυ #!/usr/bin/env ruby require 'csv' require 'mackerel' MACKEREL_API_KEY = '<API
Key>' MACKEREL_SERVICE_NAME = '<service name>' metrics = [] CSV.foreach('./iphone_steps_date.csv', headers: true) do |row| metrics << { name: 'iphone.healthcare.steps', time: Time.strptime(row['time'], '%Y/%m/%d %H:%M').to_i, value: row['steps'].to_f } end Mackerel::Client.new(mackerel_api_key: MACKEREL_API_KEY).post_service_metrics(MACKEREL_SERVICE_NAME, metrics)
ੜ͞Εͨάϥϑ
·ͱΊ
ՄࢹԽͨ͠ͷ • υϧԁͷϨʔτ • iPhone ͷϔϧεέΞσʔλ
ՄࢹԽ͍ͨ͠ͷ • Sentry ͷΠϕϯτൃੜ݅