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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
サブエージェントと Claude Mods で作る独自 Advisor ツールの話
kenichiodo
2
160
実体験から学ぶ分析エージェントの開発と運⽤
recruitengineers
PRO
8
2.4k
その Valkey 使いこなしていますか?
onk
PRO
5
1.5k
Persisting Massive Data with Rails ~Designing for 60 billion rows, and fighting the bottlenecks~ Railsで挑む大量データ永続化 〜600億件を永続化するための設計とボトルネックとの戦い〜
occhi
0
730
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
6
4.6k
20261017福岡devIO 「AIは"良いダッシュボード"を作れるか?
jtakeda
0
140
ストレスなくAIと付き合いたい!こんなときどうしてる?
namiki64
3
490
Webの常識が通じないHTMLメールのダークモード
teamlab
PRO
0
120
しろおびから始める!ログ活用の第一歩
shumei_ito
0
950
Rustuna: Rustによる高速なOptuna実装
pfn
PRO
0
190
Getting Started with Google Antigravity
glaforge
0
300
AI × アーキテクト 第1・2章|生成AIの課題とアーキテクトの素養
daidaidai
0
170
Featured
See All Featured
Discover your Explorer Soul
emna__ayadi
2
1.3k
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
2
360
Navigating Team Friction
lara
192
16k
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
750
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
600
Building Flexible Design Systems
yeseniaperezcruz
330
41k
Un-Boring Meetings
codingconduct
0
460
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.4k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
1
440
What's in a price? How to price your products and services
michaelherold
247
13k
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 ͷΠϕϯτൃੜ݅