SlideShare ist ein Scribd-Unternehmen logo
1 von 8
GRAPHING PERFORMANCE
WITH COLLECTD, INFLUXDB
& GRAFANA
COMPANION DECK TO ARTICLE AT
WWW.VISHALBIYANI.COM/GRAPHING-PERFORMANCE-WITH-
COLLECTD-INFLUXDB-GRAFANA
SOURCE CODE AT:
HTTPS://GITHUB.COM/VISHAL-BIYANI/COLLECTD-INFLUXDB-
GRAFANA
Agen
t 1
(Collect
d)
Agen
t 2
(Collect
d)
Agen
t 3
(Collect
d)
Datastore
(InfluxDB)
Visualization
(Grafana)
0
5
10
123
SETUP..
Let’s first check that InfluxDB and Grafana are running without any
issues, you should see screens like below:
InfluxDB at http://192.168.17.99:8083/
And
Grafana at http://192.168.17.99:3000
If you have not changed default settings and
Vagrant was able to assign these Ips on your
machine
Let’s play around with InfluxDB a bit…
“show series” command will show you different kind
of series that are available in this DB.
We selected cpu_value series for last 3 hours and it
shows data and attributes for the criteria
There are lots of things we can do with a time series DB but we won’t go in those details in this
tutorial. Checkout folllwing links to explore schema and data in the DB:
https://docs.influxdata.com/influxdb/v0.9/query_language/schema_exploration/
https://docs.influxdata.com/influxdb/v0.9/query_language/data_exploration/
Getting into Grafana..
Login to Grafana UI with admin/admin as
username/password, you will see a dark
theme, if you want to change to light
theme (Which I prefer) then follow
instructions below else move to next slide.
1) Click on Grafana Icon on left hand side
2) Click on use icon in menu that opens
(You won’t see name first time)
3) Then in profile update your name and
UI theme as per preference.
Getting to data source
Now let’s configure a data source for
Grafana to pull data from
1) Click on “Data Sources” and Add new
data source.
2) I choose DB name as CollectD –
because dashboards I am going to
import have same name configured –
hence will work seamlessly
3) InfluxDB is listening on 8086 for API
requests. Provide admin/password as
credentials
4) After saving data source – you can test
it with test connection – and if it shows
green, we are good to go to next step.
Importing some dashboards
1) Click on “HOME” tab on homepage of Grafana and
hit import. Import one of JSON files from templates
directory
2) On left hand side you can see imported two
dashboards – Machine health charts and Load
Details
3) But importing readymade charts is not much fun.
Creating from scratch would be more interesting.
So let’s do that next….
Creating some dashboards
1) Create “New” from home
button. In blank page you
see – click on row menu
icon (Three bars) on left
hand side and add a
Graph Panel
2) In metrices tab, As soon as you select “CollectD” DB in
dropdown below – the query box will populate
3) Now box next to FROM and it will show all series that
are available. And we can add a filter using WHERE –
again you will see all possible filters available to this data.
Finally we leave select – meain() and group by as defaults.
You will notice the graph above populates as soon as you
change query. You can also see query by clicking on menu
on right hand side. There are plenty of things to explorec-
but this is a good start!

Weitere ähnliche Inhalte

Mehr von Vishal Biyani

Mehr von Vishal Biyani (18)

Gophercon 2018: Kubernetes api golang
Gophercon 2018: Kubernetes api golangGophercon 2018: Kubernetes api golang
Gophercon 2018: Kubernetes api golang
 
Serverless Summit India 2017: Fission
Serverless Summit India 2017: FissionServerless Summit India 2017: Fission
Serverless Summit India 2017: Fission
 
SaltStack Advanced Concepts
SaltStack Advanced ConceptsSaltStack Advanced Concepts
SaltStack Advanced Concepts
 
Kubernetes 101 Workshop
Kubernetes 101 WorkshopKubernetes 101 Workshop
Kubernetes 101 Workshop
 
Serverless Pune meetup 3
Serverless Pune meetup 3Serverless Pune meetup 3
Serverless Pune meetup 3
 
Container Conf 2017: Rancher Kubernetes
Container Conf 2017: Rancher KubernetesContainer Conf 2017: Rancher Kubernetes
Container Conf 2017: Rancher Kubernetes
 
Serverless Pune Meetup 1
Serverless Pune Meetup 1Serverless Pune Meetup 1
Serverless Pune Meetup 1
 
Setting up Kubernetes with tectonic
Setting up Kubernetes with tectonicSetting up Kubernetes with tectonic
Setting up Kubernetes with tectonic
 
Introduction to Kubernetes
Introduction to KubernetesIntroduction to Kubernetes
Introduction to Kubernetes
 
Learning puppet chapter 3
Learning puppet chapter 3Learning puppet chapter 3
Learning puppet chapter 3
 
Learning puppet chapter 2
Learning puppet chapter 2Learning puppet chapter 2
Learning puppet chapter 2
 
Learning Puppet Chapter 1
Learning Puppet Chapter 1Learning Puppet Chapter 1
Learning Puppet Chapter 1
 
Mulesoft cloudhub
Mulesoft cloudhubMulesoft cloudhub
Mulesoft cloudhub
 
Dell boomi
Dell boomiDell boomi
Dell boomi
 
Using CI for continuous delivery Part 3
Using CI for continuous delivery Part 3Using CI for continuous delivery Part 3
Using CI for continuous delivery Part 3
 
Using CI for continuous delivery Part 2
Using CI for continuous delivery Part 2Using CI for continuous delivery Part 2
Using CI for continuous delivery Part 2
 
Using CI for continuous delivery Part 1
Using CI for continuous delivery Part 1Using CI for continuous delivery Part 1
Using CI for continuous delivery Part 1
 
Using CI for continuous delivery Part 4
Using CI for continuous delivery Part 4Using CI for continuous delivery Part 4
Using CI for continuous delivery Part 4
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Kürzlich hochgeladen (20)

How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 

Graphing performance with CollectD InfluxDB Grafana

  • 1. GRAPHING PERFORMANCE WITH COLLECTD, INFLUXDB & GRAFANA COMPANION DECK TO ARTICLE AT WWW.VISHALBIYANI.COM/GRAPHING-PERFORMANCE-WITH- COLLECTD-INFLUXDB-GRAFANA SOURCE CODE AT: HTTPS://GITHUB.COM/VISHAL-BIYANI/COLLECTD-INFLUXDB- GRAFANA
  • 2. Agen t 1 (Collect d) Agen t 2 (Collect d) Agen t 3 (Collect d) Datastore (InfluxDB) Visualization (Grafana) 0 5 10 123 SETUP..
  • 3. Let’s first check that InfluxDB and Grafana are running without any issues, you should see screens like below: InfluxDB at http://192.168.17.99:8083/ And Grafana at http://192.168.17.99:3000 If you have not changed default settings and Vagrant was able to assign these Ips on your machine
  • 4. Let’s play around with InfluxDB a bit… “show series” command will show you different kind of series that are available in this DB. We selected cpu_value series for last 3 hours and it shows data and attributes for the criteria There are lots of things we can do with a time series DB but we won’t go in those details in this tutorial. Checkout folllwing links to explore schema and data in the DB: https://docs.influxdata.com/influxdb/v0.9/query_language/schema_exploration/ https://docs.influxdata.com/influxdb/v0.9/query_language/data_exploration/
  • 5. Getting into Grafana.. Login to Grafana UI with admin/admin as username/password, you will see a dark theme, if you want to change to light theme (Which I prefer) then follow instructions below else move to next slide. 1) Click on Grafana Icon on left hand side 2) Click on use icon in menu that opens (You won’t see name first time) 3) Then in profile update your name and UI theme as per preference.
  • 6. Getting to data source Now let’s configure a data source for Grafana to pull data from 1) Click on “Data Sources” and Add new data source. 2) I choose DB name as CollectD – because dashboards I am going to import have same name configured – hence will work seamlessly 3) InfluxDB is listening on 8086 for API requests. Provide admin/password as credentials 4) After saving data source – you can test it with test connection – and if it shows green, we are good to go to next step.
  • 7. Importing some dashboards 1) Click on “HOME” tab on homepage of Grafana and hit import. Import one of JSON files from templates directory 2) On left hand side you can see imported two dashboards – Machine health charts and Load Details 3) But importing readymade charts is not much fun. Creating from scratch would be more interesting. So let’s do that next….
  • 8. Creating some dashboards 1) Create “New” from home button. In blank page you see – click on row menu icon (Three bars) on left hand side and add a Graph Panel 2) In metrices tab, As soon as you select “CollectD” DB in dropdown below – the query box will populate 3) Now box next to FROM and it will show all series that are available. And we can add a filter using WHERE – again you will see all possible filters available to this data. Finally we leave select – meain() and group by as defaults. You will notice the graph above populates as soon as you change query. You can also see query by clicking on menu on right hand side. There are plenty of things to explorec- but this is a good start!