SlideShare a Scribd company logo
Chris Churilo | InfluxData & David Kaltschmidt | Grafana
November 2018
How to use
InfluxDB & Grafana
© 2018 InfluxData. All rights reserved.2
Agenda
• What is InfluxDB & Grafana
• Why use them together
• Basic Setup
• Common Configurations
• Feature Overview
• How to Make Your Solution Efficient
© 2018 InfluxData. All rights reserved.3 © 2018 InfluxData. All rights reserved.3
What is InfluxDB & Grafana
© 2017 InfluxData. All rights reserved.4
The Market-Leading
Time Series Platform
Built specifically for
metrics, events, and
other time-based data
The open platform for
beautiful
analytics & monitoring
The leading open source
software for
time series analytics
© 2018 InfluxData. All rights reserved.5 © 2018 InfluxData. All rights reserved.5
Time series data is
a sequence of data points,
typically consisting of successive measurements
made from the same source over a time interval.
Plot the points on a
graph and one of
your axes would
always be time.
© 2018 InfluxData. All rights reserved.6
Time series
databases are
Optimized for collecting,
storing, retrieving &
processing of time series
data
Compare this to
✓ Document databases
Optimized for storing JSON documents
✓ Search databases
Optimized for full-text searches
✓ Traditional relational
Databases optimized for the tabular storage
of related data in rows & columns
© 2017 InfluxData. All rights reserved.7
Pain points solved
“Out of all of the
monitors there [in our
office], we only have a
couple that show some
custom dashboards.
The rest is entirely
Grafana running on
InfluxDB.”
Jack Tench, Senior Software Engineer
NewVoiceMedia
“We are getting good
mileage in a short time
period from our
investment in TICK and
Grafana.”
Hans Gustavson, Senior Director SRE
Coupa
“We also store
annotation of events,
curl calls from, say,
Jenkins, for deployment,
pushing those points
into InfluxDB and then
we’re able to use those
for annotations with
Grafana.”
Robert Allen, Director of Engineering
Houghton Mifflin Harcourt
© 2017 InfluxData. All rights reserved.8 © 2018 InfluxData. All rights reserved.8
InfluxData
4 Open Source projects
Telegraf: 200+ collection agents
InfluxDB: Time Series database
Chronograf: Admin UI for the DB
Kapacitor: Native data processing engine
Grafana
Open Source Visualization and
Dashboarding tool
The tool for beautiful monitoring and metric
analytics & dashboards
InfluxDB
Announced Nov ‘13
14,780
2,153
Telegraf
5,829
2,185
Grafana
24,798
4,526
© 2017 InfluxData. All rights reserved.9 © 2018 InfluxData. All rights reserved.9
✓ Need to collect and act on time series
data for managing DevOps, IoT or Real
Time Analytics projects
✓ InfluxData & Grafana are perfect
partners to collect, store, and
visualize/dashboard metrics and events
✓ Open Source: try it for free and make
them better with your contributions
Why would you use
these two projects
together?
© 2018 InfluxData. All rights reserved.10 © 2018 InfluxData. All rights reserved.10
Basic Setup
© 2018 InfluxData. All rights reserved.11 © 2018 InfluxData. All rights reserved.11
Architecture
© 2018 InfluxData. All rights reserved.12 © 2018 InfluxData. All rights reserved.12
Download
https://portal.influxdata.com/downloads
Open Source
Trials for InfluxCloud & InfluxEnterprise
https://grafana.com/get
Open Source
Trials for Hosted Grafana
© 2017 InfluxData. All rights reserved.13 © 2018 InfluxData. All rights reserved.13
Creating a database
CREATE DATABASE mydb
Last login: Mon Oct 19 10:50:43 on ttys006
~$ influx
Connected to http://localhost:8086 version 0.9
InfluxDB shell 0.9
> create database mydb
>
© 2017 InfluxData. All rights reserved.14 © 2018 InfluxData. All rights reserved.14
Verifying that it was created
SHOW DATABASES
> show databases
name: databases
---------------
name
_internal
mydb
© 2017 InfluxData. All rights reserved.15 © 2018 InfluxData. All rights reserved.15
Using the database we just created
USE mydb
> use mydb
Using database mydb
>
© 2017 InfluxData. All rights reserved.16 © 2018 InfluxData. All rights reserved.16
Inserting data into the database
insert cpu,host=server1,location=us-west value=10
insert cpu,host=server1,location=london value=11
insert cpu,host=server2,location=us-west value=12
© 2017 InfluxData. All rights reserved.17 © 2018 InfluxData. All rights reserved.17
Verifying that the data was written
SELECT * FROM cpu
PS. Be careful! This query can be very expensive.
SHOW SERIES
SHOW MEASUREMENTS
© 2017 InfluxData. All rights reserved.18 © 2018 InfluxData. All rights reserved.18
Demo
Grafana local installation:
http://localhost:3000
© 2017 InfluxData. All rights reserved.19 © 2018 InfluxData. All rights reserved.19
Demo
- Added datasource and dashboard panels
- Table panel to explore data (unset all query options)
- Graph panel to look at data
- Changed query options and checked in Query Inspector
- Added telegraf datasource, stacked CPU graphs
- Template variable based on cpu
- Annotations based on logs
INSERT logs,webinar=devops.com value=10
© 2017 InfluxData. All rights reserved.20 © 2018 InfluxData. All rights reserved.20
Common Configurations to enhance performance
● More Grafana graphs = slower in-browser experience
● Use different graph types
○ Single-stat
○ Templating
○ Annotations
● Collapse rows
○ Avoids rendering of unneeded graphs
○ Saves space; looks cleaner
● Large number of series = slow query builder dropdowns
© 2017 InfluxData. All rights reserved.21 © 2018 InfluxData. All rights reserved.21
Common Configurations to enhance performance
● InfluxDB does not cache; every query recalculates results
○ When InfluxDB queries give an error…
○ ...don’t hit repeatedly click the refresh button
● Downsample high fidelity data for better performance
○ Continuous queries
■ Periodically runs a user-specified query
■ Saves results back into new retention policy
○ Retention policies
■ Allows data to be expired after a set duration
○ Kapacitor
© 2017 InfluxData. All rights reserved.22 © 2018 InfluxData. All rights reserved.22
Summary
● Grafana & InfluxDB are great for collecting, storing, and visualizing metrics
and events for DevOps monitoring, IoT & Real-Time analytics applications
● Popular Open Source - download it
● Learn more
○ https://docs.influxdata.com/influxdb/latest/
○ http://docs.grafana.org/
● Events:
○ Grafanacon in LA February 25-26, 2019
○ InfluxDays in NYC March 13-14, 2019
Questions?

More Related Content

What's hot (20)

PDF
Presto Summit 2018 - 08 - FINRA
kbajda
 
PPTX
IPC Global Big Data To Decision Solution Overview
pzybrick
 
PDF
Optimizing InfluxDB Performance in the Real World | Sam Dillard | InfluxData
InfluxData
 
PDF
Kapacitor Stream Processing
InfluxData
 
PDF
How Sensor Data Can Help Manufacturers Gain Insight to Reduce Waste, Energy C...
InfluxData
 
PDF
Presto Summit 2018 - 09 - Netflix Iceberg
kbajda
 
PDF
Enriching data by_cooking_recipes_in_cloud_dataprep
Supriya Badgujar
 
PDF
Distributing big astronomical catalogues with Greenplum - Greenplum Summit 2019
VMware Tanzu
 
PPTX
Hubble - Accelerated Reporting, Analytics and Planning
strongandagile.co.uk
 
PDF
KNIME Software Overview
KNIMESlides
 
PPTX
Introduction to knime
Bernardo Najlis
 
PDF
Lessons and Observations Scaling a Time Series Database
InfluxData
 
PPTX
Mutable data @ scale
Ori Reshef
 
PPT
HDF-EOS Datablade: Efficiently Serving Earth Science Data
The HDF-EOS Tools and Information Center
 
PPTX
Apache Kafka
Maher TEBOURBI
 
PDF
A TRUE STORY ABOUT DATABASE ORCHESTRATION
InfluxData
 
PPTX
InfluxDB IOx Tech Talks: A Rusty Introduction to Apache Arrow and How it App...
InfluxData
 
PDF
Apache Airflow at Dailymotion
Germain Tanguy
 
PDF
Building a Graph of all US Businesses Using Spark Technologies by Alexis Roos
Spark Summit
 
Presto Summit 2018 - 08 - FINRA
kbajda
 
IPC Global Big Data To Decision Solution Overview
pzybrick
 
Optimizing InfluxDB Performance in the Real World | Sam Dillard | InfluxData
InfluxData
 
Kapacitor Stream Processing
InfluxData
 
How Sensor Data Can Help Manufacturers Gain Insight to Reduce Waste, Energy C...
InfluxData
 
Presto Summit 2018 - 09 - Netflix Iceberg
kbajda
 
Enriching data by_cooking_recipes_in_cloud_dataprep
Supriya Badgujar
 
Distributing big astronomical catalogues with Greenplum - Greenplum Summit 2019
VMware Tanzu
 
Hubble - Accelerated Reporting, Analytics and Planning
strongandagile.co.uk
 
KNIME Software Overview
KNIMESlides
 
Introduction to knime
Bernardo Najlis
 
Lessons and Observations Scaling a Time Series Database
InfluxData
 
Mutable data @ scale
Ori Reshef
 
HDF-EOS Datablade: Efficiently Serving Earth Science Data
The HDF-EOS Tools and Information Center
 
Apache Kafka
Maher TEBOURBI
 
A TRUE STORY ABOUT DATABASE ORCHESTRATION
InfluxData
 
InfluxDB IOx Tech Talks: A Rusty Introduction to Apache Arrow and How it App...
InfluxData
 
Apache Airflow at Dailymotion
Germain Tanguy
 
Building a Graph of all US Businesses Using Spark Technologies by Alexis Roos
Spark Summit
 

Similar to Why Open Source Works for DevOps Monitoring (20)

PDF
Getting started with influx Db and Grafana Installation Guide
Soumil Shahsoumil
 
PPTX
Discover How IBM Uses InfluxDB and Grafana to Help Clients Monitor Large Prod...
InfluxData
 
PDF
Timeseries - data visualization in Grafana
OCoderFest
 
PPTX
Why You Should NOT Be Using an RDBS for Time-stamped Data
DevOps.com
 
PPTX
Why You Should NOT Be Using an RDBMS for Time-stamped Data
DevOps.com
 
PDF
Real Time Test Data with Grafana
Ioannis Papadakis
 
PPTX
Using InfluxDB for real-time monitoring in Jmeter
Knoldus Inc.
 
PDF
Beautiful Monitoring With Grafana and InfluxDB
leesjensen
 
PDF
Case Study : InfluxDB
omkarpowar4
 
PDF
Intro to Time Series
InfluxData
 
PPTX
Grafana.pptx
Bhushan Rane
 
PPTX
Ronald McCollam [Grafana] | Flux Queries in Grafana 7 | InfluxDays Virtual Ex...
InfluxData
 
PDF
Virtual training intro to InfluxDB - June 2021
InfluxData
 
PDF
Time series database, InfluxDB & PHP
Corley S.r.l.
 
PDF
Virtual training Intro to InfluxDB & Telegraf
InfluxData
 
PDF
How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...
DevOps.com
 
PDF
InfluxDB Internals
InfluxData
 
PDF
How Texas Instruments Uses InfluxDB to Uphold Product Standards and to Improv...
DevOps.com
 
PDF
How to Gain a Competitive Edge with an Open Source, Purpose-built Time Series...
DevOps.com
 
PDF
InfluxDB 101 - Concepts and Architecture | Michael DeSa | InfluxData
InfluxData
 
Getting started with influx Db and Grafana Installation Guide
Soumil Shahsoumil
 
Discover How IBM Uses InfluxDB and Grafana to Help Clients Monitor Large Prod...
InfluxData
 
Timeseries - data visualization in Grafana
OCoderFest
 
Why You Should NOT Be Using an RDBS for Time-stamped Data
DevOps.com
 
Why You Should NOT Be Using an RDBMS for Time-stamped Data
DevOps.com
 
Real Time Test Data with Grafana
Ioannis Papadakis
 
Using InfluxDB for real-time monitoring in Jmeter
Knoldus Inc.
 
Beautiful Monitoring With Grafana and InfluxDB
leesjensen
 
Case Study : InfluxDB
omkarpowar4
 
Intro to Time Series
InfluxData
 
Grafana.pptx
Bhushan Rane
 
Ronald McCollam [Grafana] | Flux Queries in Grafana 7 | InfluxDays Virtual Ex...
InfluxData
 
Virtual training intro to InfluxDB - June 2021
InfluxData
 
Time series database, InfluxDB & PHP
Corley S.r.l.
 
Virtual training Intro to InfluxDB & Telegraf
InfluxData
 
How IBM's Massive POWER9 UNIX Servers Benefit from InfluxDB and Grafana Techn...
DevOps.com
 
InfluxDB Internals
InfluxData
 
How Texas Instruments Uses InfluxDB to Uphold Product Standards and to Improv...
DevOps.com
 
How to Gain a Competitive Edge with an Open Source, Purpose-built Time Series...
DevOps.com
 
InfluxDB 101 - Concepts and Architecture | Michael DeSa | InfluxData
InfluxData
 
Ad

More from DevOps.com (20)

PDF
Modernizing on IBM Z Made Easier With Open Source Software
DevOps.com
 
PPTX
Comparing Microsoft SQL Server 2019 Performance Across Various Kubernetes Pla...
DevOps.com
 
PPTX
Comparing Microsoft SQL Server 2019 Performance Across Various Kubernetes Pla...
DevOps.com
 
PDF
Next Generation Vulnerability Assessment Using Datadog and Snyk
DevOps.com
 
PPTX
Vulnerability Discovery in the Cloud
DevOps.com
 
PDF
2021 Open Source Governance: Top Ten Trends and Predictions
DevOps.com
 
PDF
A New Year’s Ransomware Resolution
DevOps.com
 
PPTX
Getting Started with Runtime Security on Azure Kubernetes Service (AKS)
DevOps.com
 
PDF
Don't Panic! Effective Incident Response
DevOps.com
 
PDF
Creating a Culture of Chaos: Chaos Engineering Is Not Just Tools, It's Culture
DevOps.com
 
PDF
Role Based Access Controls (RBAC) for SSH and Kubernetes Access with Teleport
DevOps.com
 
PDF
Monitoring Serverless Applications with Datadog
DevOps.com
 
PDF
Deliver your App Anywhere … Publicly or Privately
DevOps.com
 
PPTX
Securing medical apps in the age of covid final
DevOps.com
 
PDF
How to Build a Healthy On-Call Culture
DevOps.com
 
PPTX
The Evolving Role of the Developer in 2021
DevOps.com
 
PDF
Service Mesh: Two Big Words But Do You Need It?
DevOps.com
 
PPTX
Secure Data Sharing in OpenShift Environments
DevOps.com
 
PPTX
How to Govern Identities and Access in Cloud Infrastructure: AppsFlyer Case S...
DevOps.com
 
PDF
Elevate Your Enterprise Python and R AI, ML Software Strategy with Anaconda T...
DevOps.com
 
Modernizing on IBM Z Made Easier With Open Source Software
DevOps.com
 
Comparing Microsoft SQL Server 2019 Performance Across Various Kubernetes Pla...
DevOps.com
 
Comparing Microsoft SQL Server 2019 Performance Across Various Kubernetes Pla...
DevOps.com
 
Next Generation Vulnerability Assessment Using Datadog and Snyk
DevOps.com
 
Vulnerability Discovery in the Cloud
DevOps.com
 
2021 Open Source Governance: Top Ten Trends and Predictions
DevOps.com
 
A New Year’s Ransomware Resolution
DevOps.com
 
Getting Started with Runtime Security on Azure Kubernetes Service (AKS)
DevOps.com
 
Don't Panic! Effective Incident Response
DevOps.com
 
Creating a Culture of Chaos: Chaos Engineering Is Not Just Tools, It's Culture
DevOps.com
 
Role Based Access Controls (RBAC) for SSH and Kubernetes Access with Teleport
DevOps.com
 
Monitoring Serverless Applications with Datadog
DevOps.com
 
Deliver your App Anywhere … Publicly or Privately
DevOps.com
 
Securing medical apps in the age of covid final
DevOps.com
 
How to Build a Healthy On-Call Culture
DevOps.com
 
The Evolving Role of the Developer in 2021
DevOps.com
 
Service Mesh: Two Big Words But Do You Need It?
DevOps.com
 
Secure Data Sharing in OpenShift Environments
DevOps.com
 
How to Govern Identities and Access in Cloud Infrastructure: AppsFlyer Case S...
DevOps.com
 
Elevate Your Enterprise Python and R AI, ML Software Strategy with Anaconda T...
DevOps.com
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
NASA A Researcher’s Guide to International Space Station : Physical Sciences ...
Dr. PANKAJ DHUSSA
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Go Concurrency Real-World Patterns, Pitfalls, and Playground Battles.pdf
Emily Achieng
 

Why Open Source Works for DevOps Monitoring

  • 1. Chris Churilo | InfluxData & David Kaltschmidt | Grafana November 2018 How to use InfluxDB & Grafana
  • 2. © 2018 InfluxData. All rights reserved.2 Agenda • What is InfluxDB & Grafana • Why use them together • Basic Setup • Common Configurations • Feature Overview • How to Make Your Solution Efficient
  • 3. © 2018 InfluxData. All rights reserved.3 © 2018 InfluxData. All rights reserved.3 What is InfluxDB & Grafana
  • 4. © 2017 InfluxData. All rights reserved.4 The Market-Leading Time Series Platform Built specifically for metrics, events, and other time-based data The open platform for beautiful analytics & monitoring The leading open source software for time series analytics
  • 5. © 2018 InfluxData. All rights reserved.5 © 2018 InfluxData. All rights reserved.5 Time series data is a sequence of data points, typically consisting of successive measurements made from the same source over a time interval. Plot the points on a graph and one of your axes would always be time.
  • 6. © 2018 InfluxData. All rights reserved.6 Time series databases are Optimized for collecting, storing, retrieving & processing of time series data Compare this to ✓ Document databases Optimized for storing JSON documents ✓ Search databases Optimized for full-text searches ✓ Traditional relational Databases optimized for the tabular storage of related data in rows & columns
  • 7. © 2017 InfluxData. All rights reserved.7 Pain points solved “Out of all of the monitors there [in our office], we only have a couple that show some custom dashboards. The rest is entirely Grafana running on InfluxDB.” Jack Tench, Senior Software Engineer NewVoiceMedia “We are getting good mileage in a short time period from our investment in TICK and Grafana.” Hans Gustavson, Senior Director SRE Coupa “We also store annotation of events, curl calls from, say, Jenkins, for deployment, pushing those points into InfluxDB and then we’re able to use those for annotations with Grafana.” Robert Allen, Director of Engineering Houghton Mifflin Harcourt
  • 8. © 2017 InfluxData. All rights reserved.8 © 2018 InfluxData. All rights reserved.8 InfluxData 4 Open Source projects Telegraf: 200+ collection agents InfluxDB: Time Series database Chronograf: Admin UI for the DB Kapacitor: Native data processing engine Grafana Open Source Visualization and Dashboarding tool The tool for beautiful monitoring and metric analytics & dashboards InfluxDB Announced Nov ‘13 14,780 2,153 Telegraf 5,829 2,185 Grafana 24,798 4,526
  • 9. © 2017 InfluxData. All rights reserved.9 © 2018 InfluxData. All rights reserved.9 ✓ Need to collect and act on time series data for managing DevOps, IoT or Real Time Analytics projects ✓ InfluxData & Grafana are perfect partners to collect, store, and visualize/dashboard metrics and events ✓ Open Source: try it for free and make them better with your contributions Why would you use these two projects together?
  • 10. © 2018 InfluxData. All rights reserved.10 © 2018 InfluxData. All rights reserved.10 Basic Setup
  • 11. © 2018 InfluxData. All rights reserved.11 © 2018 InfluxData. All rights reserved.11 Architecture
  • 12. © 2018 InfluxData. All rights reserved.12 © 2018 InfluxData. All rights reserved.12 Download https://portal.influxdata.com/downloads Open Source Trials for InfluxCloud & InfluxEnterprise https://grafana.com/get Open Source Trials for Hosted Grafana
  • 13. © 2017 InfluxData. All rights reserved.13 © 2018 InfluxData. All rights reserved.13 Creating a database CREATE DATABASE mydb Last login: Mon Oct 19 10:50:43 on ttys006 ~$ influx Connected to http://localhost:8086 version 0.9 InfluxDB shell 0.9 > create database mydb >
  • 14. © 2017 InfluxData. All rights reserved.14 © 2018 InfluxData. All rights reserved.14 Verifying that it was created SHOW DATABASES > show databases name: databases --------------- name _internal mydb
  • 15. © 2017 InfluxData. All rights reserved.15 © 2018 InfluxData. All rights reserved.15 Using the database we just created USE mydb > use mydb Using database mydb >
  • 16. © 2017 InfluxData. All rights reserved.16 © 2018 InfluxData. All rights reserved.16 Inserting data into the database insert cpu,host=server1,location=us-west value=10 insert cpu,host=server1,location=london value=11 insert cpu,host=server2,location=us-west value=12
  • 17. © 2017 InfluxData. All rights reserved.17 © 2018 InfluxData. All rights reserved.17 Verifying that the data was written SELECT * FROM cpu PS. Be careful! This query can be very expensive. SHOW SERIES SHOW MEASUREMENTS
  • 18. © 2017 InfluxData. All rights reserved.18 © 2018 InfluxData. All rights reserved.18 Demo Grafana local installation: http://localhost:3000
  • 19. © 2017 InfluxData. All rights reserved.19 © 2018 InfluxData. All rights reserved.19 Demo - Added datasource and dashboard panels - Table panel to explore data (unset all query options) - Graph panel to look at data - Changed query options and checked in Query Inspector - Added telegraf datasource, stacked CPU graphs - Template variable based on cpu - Annotations based on logs INSERT logs,webinar=devops.com value=10
  • 20. © 2017 InfluxData. All rights reserved.20 © 2018 InfluxData. All rights reserved.20 Common Configurations to enhance performance ● More Grafana graphs = slower in-browser experience ● Use different graph types ○ Single-stat ○ Templating ○ Annotations ● Collapse rows ○ Avoids rendering of unneeded graphs ○ Saves space; looks cleaner ● Large number of series = slow query builder dropdowns
  • 21. © 2017 InfluxData. All rights reserved.21 © 2018 InfluxData. All rights reserved.21 Common Configurations to enhance performance ● InfluxDB does not cache; every query recalculates results ○ When InfluxDB queries give an error… ○ ...don’t hit repeatedly click the refresh button ● Downsample high fidelity data for better performance ○ Continuous queries ■ Periodically runs a user-specified query ■ Saves results back into new retention policy ○ Retention policies ■ Allows data to be expired after a set duration ○ Kapacitor
  • 22. © 2017 InfluxData. All rights reserved.22 © 2018 InfluxData. All rights reserved.22 Summary ● Grafana & InfluxDB are great for collecting, storing, and visualizing metrics and events for DevOps monitoring, IoT & Real-Time analytics applications ● Popular Open Source - download it ● Learn more ○ https://docs.influxdata.com/influxdb/latest/ ○ http://docs.grafana.org/ ● Events: ○ Grafanacon in LA February 25-26, 2019 ○ InfluxDays in NYC March 13-14, 2019