$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PyTN 2019
Search
Noah Crowley
February 09, 2019
Technology
0
61
PyTN 2019
Noah Crowley
February 09, 2019
Tweet
Share
More Decks by Noah Crowley
See All by Noah Crowley
All Things Open 2018
noahcrowley
0
31
API Strat 2018
noahcrowley
0
55
Other Decks in Technology
See All in Technology
LayerX QA Night#1
koyaman2
0
210
接客歴・営業歴の方が長いエンジニアから見たre:Invent2025
yama3133
0
100
半年で、AIゼロ知識から AI中心開発組織の変革担当に至るまで
rfdnxbro
0
120
SREには開発組織全体で向き合う
koh_naga
0
410
Entity Framework Core におけるIN句クエリ最適化について
htkym
0
110
[Data & AI Summit '25 Fall] AIでデータ活用を進化させる!Google Cloudで作るデータ活用の未来
kirimaru
0
540
Oracle Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
1
740
事業の財務責任に向き合うリクルートデータプラットフォームのFinOps
recruitengineers
PRO
2
180
AI駆動開発の実践とその未来
eltociear
1
470
TED_modeki_共創ラボ_20251203.pdf
iotcomjpadmin
0
130
IAMユーザーゼロの運用は果たして可能なのか
yama3133
2
520
Agent Skillsがハーネスの垣根を超える日
gotalab555
5
3.6k
Featured
See All Featured
Amusing Abliteration
ianozsvald
0
69
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Faster Mobile Websites
deanohume
310
31k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.2k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
0
320
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
87
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.2k
The Cost Of JavaScript in 2023
addyosmani
55
9.4k
Become a Pro
speakerdeck
PRO
31
5.7k
Music & Morning Musume
bryan
46
7k
Side Projects
sachag
455
43k
Balancing Empowerment & Direction
lara
5
810
Transcript
Python & InfluxDB PyTennessee 2019
A time series is a series of data points indexed
(or listed or graphed) in time order.
None
10:15
12 10:15
12 10:15 10:17
12 16 10:15 10:17
12 16 10:15 10:17 10:19
12 16 15 10:15 10:17 10:19
12 16 15 10:15 10:17 10:19 10:21
12 16 15 20 10:15 10:17 10:19 10:21
https://en.wikipedia.org/wiki/Time_series
https://finance.yahoo.com/quote/%5EDJI?p=^DJI
https://finance.yahoo.com/quote/GOOG?p=GOOG
https://finance.yahoo.com/quote/GOOG?p=GOOG
https://darksky.net/details/40.7295,-73.9936/2018-3-7/us12/en
https://darksky.net/details/40.7295,-73.9936/2018-3-7/us12/en
http://www.imreference.com/cardiology/ekg
https://victorops.com/blog/the-future-of-monitoring-and-alerting-victorops-and-grafana
https://help.papertrailapp.com/kb/how-it-works/event-viewer/
https://developer.lightbend.com/docs/cinnamon/latest/extensions/opentracing.html
http://www.brendangregg.com/FlameGraphs/cpuflamegraphs.html
Time series data relies on measurements
https://www.riverfronttimes.com/newsblog/2010/05/17/how-to-identify-a-census-worker
https://www.hunker.com/13408232/mercury-thermometer-vs-alcohol-thermometer
https://www.hunker.com/13408232/mercury-thermometer-vs-alcohol-thermometer
http://steinn.org/post/flask-statsd/
http://werkzeug.pocoo.org/docs/0.14/middlewares/
http://steinn.org/post/flask-statsd/
http://erikboertjes.com/?page_id=670
Measurements over time model change
http://www.harnois.com/en/
https://www.medicalnewstoday.com/articles/319725.php
https://www.relumination.com/parking-lot-lighting-dont-leave-customers-dark/
https://victorops.com/blog/the-future-of-monitoring-and-alerting-victorops-and-grafana
http://theregister.co.nz/news/2015/11/graph-tracking-almost-decade-retail-sales-new-zealand
https://www.slideshare.net/g9yuayon/streaming-analytics-in-uber
Algorithms
Simple Moving Average
12 16 15 20 7:00 7:02 7:04 7:06
12 16 15 20 7:00 7:02 7:04 7:06 15.75
12 16 15 20 7:00 7:02 7:04 7:06
12 16 15 20 7:00 7:02 7:04 7:06 10 6:58
12 16 15 20 7:00 7:02 7:04 7:06 10 6:58
25 7:08
12 16 15 20 7:00 7:02 7:04 7:06 10 6:58
13.25 25 7:08
12 16 15 20 7:00 7:02 7:04 7:06 15.75 10
6:58 13.25 25 7:08
12 16 15 20 7:00 7:02 7:04 7:06 15.75 10
6:58 13.25 25 7:08 19.00
https://finance.yahoo.com/quote/^DJI/chart
Seasonality
http://shawndubravac.com/2011/11/why-dont-retail-sales-show-more-seasonality/
https://blog.algorithmia.com/introduction-to-time-series/ Multiplicative Additive
Multiplicative Time series = t (trend) * s (seasonality) *
n (noise)
https://blog.algorithmia.com/introduction-to-time-series/ Multiplicative Additive
Additive Time series = t (trend) + s (seasonality) +
n (noise)
https://blog.algorithmia.com/introduction-to-time-series/ Multiplicative Additive
Decomposition
https://blog.algorithmia.com/introduction-to-time-series/
Further Reading
Intro to Time Series Stephanie Kim https://blog.algorithmia.com/introduction-to-time-series/
• Cumulative Moving Average, Exponential Moving Average • Forecasting: Autoregressive
Integrated Moving Average • Anomaly Detection, Neural Nets in Time Series
Python Software for Time Series
Telegraf Collect InfluxDB Store Kapacitor Process Chronograf Visualize
InfluxDB • Architected for Time Series Data • Scalable &
Reliable • High Rate of Ingest • Efficient compression • Built-in functionality for working with time
Client Libraries Go, Python, Ruby, Java, C#, JavaScript
Telegraf • Plugin-Driven Architecture: Inputs, Processors, Aggregators, Outputs • Easily
extensible, high rate of adoption by community • Over 150 plugins • Generic plugins • Application-specific plugins
Telegraf: Generic Plugins • Socket Listener (TCP / UDP /
Unix Socket) • HTTP • File • exec
Chronograf & Kapacitor • Chronograf is our visualization tool and
has some administrative functions • Kapacitor is a processing engine • Stream or batch query data from database • Perform any kind of processing you’d like • Downsampling, Anomaly Detection, Alerting, Etc.
influxdb-python Library • Community Maintained • Key functions for working
with InfluxDB: • InfluxDBClient • DataFrameClient • Series Helper & ResultSet github.com/influxdata/influxdb-python
community.influxdata.com Feedback appreciated! Twitter, GitHub: @noahcrowley Email: noah@influxdata.com
Demo code available at github.com/noahcrowley/pytn-2019/