SlideShare a Scribd company logo
Listen to you
infrastructure
and please sleep
Hello!
I am Gianluca Arbezzano
Software Engineer at CurrencyFair
@gianarb on Twitter and GitHub
2
3
Open Source Maintainer and Contributors
penny.gianarb.it vim-php.org
4
scaledocker.com
Some resources about Docker
“
“Try again. Fail again.
Fail better.”
cit. Samuel Beckett
5
Trust your system
To be familiar with your applications
you need to know what they are doing.
6
To predict the
future
Because
we are not
John
1
Widespread
Monitoring Tools
tail -f /var/log/app.log
9
10
11
2016/04/15 15:42:46 [warn] 2330#0: *167 using uninitialized
variable,
client: 10.0.1.1, server: localhost.dev, request: "POST /auth
HTTP/1.1",
host: "localhost"
2016/04/15 15:44:44 [error] 2330#0: *171 FastCGI sent in stderr: "
PHP message: PHP Fatal error: Uncaught exception
'RuntimeException' with message 'All broken)[500]'
in /var/www/my/project.php:237
Stack trace:
#0 /var/www/index.php:45 ObjectService->flush()
#1 [internal function] ->save()
2
Expensive to store
12
2
Difficult to index
13
Difficult not impossible
They do an amazing work. And there are other tools!!
14
They are awesome for some use cases
▪ Extract informations
▪ They can be “human readable”
▪ … and others, and others
15
Keep your life amazing
Reduce your time series
to a timestamp
and a value (int or float)
16
This is cheap and useful
We are here to speak about
Time Series
[
{
"name": "log_lines",
"columns": ["time", "line"],
"point": [1400425947368, "here's some useful log info"]
}
]
17
EASY! EASY! EASY!
{
"name": "cpu_percent_use",
"columns": ["value"],
"point": 40
}
18
“
“Any intelligent fool can make things
bigger, more complex, and more violent.
It takes a touch of genius — and a lot of
courage to move in the opposite
direction.”
Cit. Ernest F. Shumacher
19
Time is a perfect sharding key
It means that Time Series scale really well
20
We have a set of tools to use
21
22
InfluxDB
● Optimized to store time series data
● Open Source and easy to install (go binary)
● Big community and ecosystem to manage
alert and collect metrics
23
Easy
Install and start a go binary
wget https://dl.influxdata.com/influxdb/releases/influxdb_1.2.2_amd64.deb
sudo dpkg -i influxdb_1.2.2_amd64.deb
Influxd -config /usr/local/etc/influxdb.conf
24
Easy
HTTP API on port 8086
Support for UDP connections
Powerful CLI to communicate with the db
25
Easy
SELECT value
FROM cpu_load_short
WHERE region='us-west'
26
27
28
[key] [fields] [timestamp]
temperature,machine=unit internal=3,external=10 1434055562000000035
Inline Protocol thinked to be smart and slim
29
CorleyBenchmarksInfluxDBAdapterEvent
Method Name Iterations Average Time Ops/second
------------------------ ------------ -------------- -------------
sendDataUsingHttpAdapter: [1,000 ] [0.0026700308323] [374.52751]
sendDataUsingUdpAdapter : [1,000 ] [0.0000436344147] [22,917.69026]
UDP vs TCP protocol
30
CREATE CONTINUOUS QUERY minnie ON world
BEGIN SELECT min(mouse) INTO min_mouse
FROM zoo GROUP BY time(30m) END
Continuous Query
Telegraf
https://github.com/influxdata/telegraf
Collector to grab and send
data from different sources to
InfluxDB and other databases
31
Based on Input and out Plugin System
32
Telegraf Plugins
Kapacitor
https://github.com/influxdata/kapacitor
Trigger notifications and make
action in case of specific
behaviors
33
framework for processing, monitoring, and alerting on time series data
34
Kapacitor high CPU alert
stream
|from()
.measurement('cpu_usage_idle')
.groupBy('host')
|window()
.period(1m)
.every(1m)
|mean('value')
|eval(lambda: 100.0 - "mean").as('used')
|alert()
.message('{{ .Level}}: {{ .Name }}/{{ index .Tags "host" }} has high cpu: {{ index .Fields "used" }}')
.warn(lambda: "used" > 70.0)
.crit(lambda: "used" > 85.0)
// Send alert to hander of choice.
// Slack
.slack()
.channel('#alerts')
// PagerDuty
.pagerDuty()
35
When you start to work with "micro"services
understand the topology of your connections is
really important
Time series can help you
“
demo
36
37
Use a dashboard to put together
different metrics and create not
obvious relations
Badoo migrated to PHP 7
@dgryski tested for 10 mins a service in Golang
(previously it was in Perl)
Sometimes you just need
to compare
41
Why InfluxDB and not something else?
https://www.influxdata.com/influxdb-is-27x-faster-vs-mongodb-for-time-series-workloads/
27x greater write throughput
84x less disk space
42
That’s it!
A series of great tools to monitor your
applications and your infrastructure
43
A monitoring system isn’t for all
“Anybody” who?!?
44
● Think about your monitoring system as “as a
service” tools.
● different location (VPC or network)
● Proper team, contingency plan, deploy,
documentation, everything you can!
● HA
Thanks!
See you around
twitter.com/gianarb
45

More Related Content

PDF
Time Series Database and Tick Stack
PDF
Introduction to InfluxDB and TICK Stack
PDF
Beautiful Monitoring With Grafana and InfluxDB
PDF
Virtual training Intro to InfluxDB & Telegraf
PDF
Timeseries - data visualization in Grafana
PDF
Measure your app internals with InfluxDB and Symfony2
PDF
OSMC 2021 | Icinga-Installer – the easy way to your Icinga
PDF
Getting Ready to Move to InfluxDB 2.0 | Tim Hall | InfluxData
Time Series Database and Tick Stack
Introduction to InfluxDB and TICK Stack
Beautiful Monitoring With Grafana and InfluxDB
Virtual training Intro to InfluxDB & Telegraf
Timeseries - data visualization in Grafana
Measure your app internals with InfluxDB and Symfony2
OSMC 2021 | Icinga-Installer – the easy way to your Icinga
Getting Ready to Move to InfluxDB 2.0 | Tim Hall | InfluxData

What's hot (20)

PDF
Developing Ansible Dynamic Inventory Script - Nov 2017
PDF
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
PDF
Trevor McDonald - Nagios XI Under The Hood
PPTX
Monitoring in a scalable world
PDF
Janice Singh - Writing Custom Nagios Plugins
PDF
Monitoring NGINX (plus): key metrics and how-to
PPT
Nagios Conference 2014 - Janice Singh - Real World Uses for Nagios APIs
PDF
From nothing to Prometheus : one year after
PDF
The Monitoring Playground
PPTX
Nagios Conference 2014 - James Clark - Nagios Cool Tips and Tricks
PDF
Deploying MongoDB sharded clusters easily with Terraform and Ansible
PDF
InfluxDB & Kubernetes
PDF
Red Hat Forum Tokyo - OpenStack Architecture Design
PDF
Red Hat Forum Tokyo - OpenStack Architecture
PDF
Nagios Conference 2014 - Jack Chu - How to Think With Nagios to Solve Monitor...
PPTX
OSMC - Fast logs management
PDF
OSMC 2019 | Fast logs Ingestion by Nicolas Fraenkel
PPTX
Nagios Conference 2014 - Mike Merideth - The Art and Zen of Managing Nagios w...
PPTX
How to Introduce Telemetry Streaming (gNMI) in Your Network with SNMP with Te...
PDF
Scaling ingest pipelines with high performance computing principles - Rajiv K...
Developing Ansible Dynamic Inventory Script - Nov 2017
Lee Myers - What To Do When Nagios Notification Don't Meet Your Needs.
Trevor McDonald - Nagios XI Under The Hood
Monitoring in a scalable world
Janice Singh - Writing Custom Nagios Plugins
Monitoring NGINX (plus): key metrics and how-to
Nagios Conference 2014 - Janice Singh - Real World Uses for Nagios APIs
From nothing to Prometheus : one year after
The Monitoring Playground
Nagios Conference 2014 - James Clark - Nagios Cool Tips and Tricks
Deploying MongoDB sharded clusters easily with Terraform and Ansible
InfluxDB & Kubernetes
Red Hat Forum Tokyo - OpenStack Architecture Design
Red Hat Forum Tokyo - OpenStack Architecture
Nagios Conference 2014 - Jack Chu - How to Think With Nagios to Solve Monitor...
OSMC - Fast logs management
OSMC 2019 | Fast logs Ingestion by Nicolas Fraenkel
Nagios Conference 2014 - Mike Merideth - The Art and Zen of Managing Nagios w...
How to Introduce Telemetry Streaming (gNMI) in Your Network with SNMP with Te...
Scaling ingest pipelines with high performance computing principles - Rajiv K...
Ad

Similar to Tick Stack - Listen your infrastructure and please sleep (20)

PDF
Web Applications with Eclipse RT and Docker in the Cloud
PDF
Reverse engineering Swisscom's Centro Grande Modem
PPTX
Vagrant, Ansible, and OpenStack on your laptop
PDF
CentOS Linux Server Hardening
PPTX
k8s practice 2023.pptx
PPTX
Real World Experience of Running Docker in Development and Production
PDF
Hacking Highly Secured Enterprise Environments by Zoltan Balazs
PPTX
Hacker Halted 2014 - Post-Exploitation After Having Remote Access
PDF
My old security advisories on HMI/SCADA and industrial software released betw...
PDF
FPC for the Masses - CoRIIN 2018
PDF
Kubernetes laravel and kubernetes
PPTX
“Automation Testing for Embedded Systems”
PDF
Build resource server & client for OCF Cloud (2018.8.30)
PPTX
Docker Swarm secrets for creating great FIWARE platforms
PPTX
Labs_BT_20221017.pptx
PPTX
Network Automation Tools
PDF
Docker security
PDF
DPDK in Containers Hands-on Lab
PDF
IWAN Lab Guide
PPTX
Simple docker hosting in FIWARE Lab
Web Applications with Eclipse RT and Docker in the Cloud
Reverse engineering Swisscom's Centro Grande Modem
Vagrant, Ansible, and OpenStack on your laptop
CentOS Linux Server Hardening
k8s practice 2023.pptx
Real World Experience of Running Docker in Development and Production
Hacking Highly Secured Enterprise Environments by Zoltan Balazs
Hacker Halted 2014 - Post-Exploitation After Having Remote Access
My old security advisories on HMI/SCADA and industrial software released betw...
FPC for the Masses - CoRIIN 2018
Kubernetes laravel and kubernetes
“Automation Testing for Embedded Systems”
Build resource server & client for OCF Cloud (2018.8.30)
Docker Swarm secrets for creating great FIWARE platforms
Labs_BT_20221017.pptx
Network Automation Tools
Docker security
DPDK in Containers Hands-on Lab
IWAN Lab Guide
Simple docker hosting in FIWARE Lab
Ad

More from Gianluca Arbezzano (18)

PDF
Kubernetes debug like a pro
PDF
OSDC 2018 - Distributed monitoring
PPTX
Value of your metrics: goodbye monitoring, welcome observability
PDF
InfluxCloudi craft container orchestrator
PDF
Orbiter and how to extend Docker Swarm
PDF
Overview and Opentracing in theory by Gianluca Arbezzano
PDF
Monitoring Pull vs Push, InfluxDB and Prometheus
PDF
Open Tracing, to order and understand your mess. - ApiConf 2017
PDF
Security Tips to run Docker in Production
PDF
Jenkins in the real world - DevOpsCon 2017
PDF
Monitor your application and sleep
PDF
Docker Novosibirsk Meetup #3 - Docker in Production
PDF
DockerDublin Meetup - News about Docker 1.13
PDF
Docker 1.12 and SwarmKit
PPTX
Queue System and Zend\Queue implementation
PPTX
ZfDayIt 2014 - There is a module for everything
PPTX
Vagrant - PugMI
ODP
Silex, iniziamo
Kubernetes debug like a pro
OSDC 2018 - Distributed monitoring
Value of your metrics: goodbye monitoring, welcome observability
InfluxCloudi craft container orchestrator
Orbiter and how to extend Docker Swarm
Overview and Opentracing in theory by Gianluca Arbezzano
Monitoring Pull vs Push, InfluxDB and Prometheus
Open Tracing, to order and understand your mess. - ApiConf 2017
Security Tips to run Docker in Production
Jenkins in the real world - DevOpsCon 2017
Monitor your application and sleep
Docker Novosibirsk Meetup #3 - Docker in Production
DockerDublin Meetup - News about Docker 1.13
Docker 1.12 and SwarmKit
Queue System and Zend\Queue implementation
ZfDayIt 2014 - There is a module for everything
Vagrant - PugMI
Silex, iniziamo

Recently uploaded (20)

PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
cuic standard and advanced reporting.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Machine learning based COVID-19 study performance prediction
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Big Data Technologies - Introduction.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
Unlocking AI with Model Context Protocol (MCP)
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Assigned Numbers - 2025 - Bluetooth® Document
Mobile App Security Testing_ A Comprehensive Guide.pdf
A Presentation on Artificial Intelligence
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Reach Out and Touch Someone: Haptics and Empathic Computing
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
cuic standard and advanced reporting.pdf
Electronic commerce courselecture one. Pdf
Encapsulation_ Review paper, used for researhc scholars
Machine learning based COVID-19 study performance prediction
Digital-Transformation-Roadmap-for-Companies.pptx
Network Security Unit 5.pdf for BCA BBA.
MYSQL Presentation for SQL database connectivity
Agricultural_Statistics_at_a_Glance_2022_0.pdf
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Big Data Technologies - Introduction.pptx

Tick Stack - Listen your infrastructure and please sleep