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
ソフトウェアDNAとクラウドエージェントのススメ
cloudace
0
120
10Xに技術的負債をもたらした「2つの境界の歪み」その構造と解消への営み
10xinc
0
2.2k
AIエージェントの自己改善をどう設計するか / How to Design Self-Improvement for AI Agents
22mi
25
16k
Oracle Cloud Network Path Analyzerを試してみた/I Tried Out Oracle Cloud Network Path Analyzer
masakiokuda
1
110
AIは推し活である。
kurazuuuuuu
1
910
Goodbye ShellScript, Hello File-based App
shunsock
0
510
あけおめLINE 傾向とその対策
nasa9084
0
180
Vibe Coding で作ったプロダクトをどう安全に動かすか / How to Safely Run Products Built with Vibe Coding
glidenote
0
400
AIエージェントの権限管理 3: Agentic RAG の Fine grained access control 編
ren8k
0
180
現場で役立つ技術負債の効果的な返済方法
masuda220
PRO
9
4.8k
ADKで始める業務改善 - AIエージェント開発時の考えと設計
harappa80
2
250
C#コードの結合を可視化する Roslyn解析による設計改善と リファクタリング判断
dora56
0
260
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
510
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Raft: Consensus for Rubyists
vanstee
142
7.7k
For a Future-Friendly Web
brad_frost
183
10k
A better future with KSS
kneath
240
18k
Accessibility Awareness
sabderemane
1
210
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Mobile First: as difficult as doing things right
swwweet
225
10k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Bash Introduction
62gerente
615
220k
How to train your dragon (web standard)
notwaldorf
97
6.8k
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 ͷΠϕϯτൃੜ݅