How to Setup a Grafana Dashboard Step-by-Step | Grafana Tutorial for Beginners
HTML-код
- Опубликовано: 3 июл 2024
- In this video we show you how to install Grafana and create dashboards step-by-step.
Grafana is an open source platform that is used for data monitoring, analysis, and data visualization.
One of the major features of Grafana is it's ability to bring several different data sources together on a single dashboard.
Grafana allows you to represent data in different forms like, charts, graphs, and also allows you to send alerts.
Apart from that, it supports many OS's including Ubuntu and Windows. It also supports multiple data sources.
This video shows you how to download and install Grafana for Ubuntu 20.04.
- Below are the commands you can run in order to download and install Grafana for Ubuntu 20.04.
wget -q -O - packages.grafana.com/gpg.key | sudo apt-key add -
sudo add-apt-repository "deb packages.grafana.com/enterpri... stable main"
sudo apt update
sudo apt install grafana
sudo systemctl start grafana-server
sudo systemctl status grafana-server
sudo systemctl enable grafana-server
- Download and installation commands for influxDB for Ubuntu 20.04
wget qO repos.influxdata.com/influxdb... | sudo apt-key add -
source /etc/lsb-release
echo "deb repos.influxdata.com/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
sudo apt-get update && sudo apt-get install influxdb
sudo systemctl unmask influxdb.service
sudo systemctl start influxdb
influxd -config /etc/influxdb/influxdb.conf
This video also shows you an example of how you can add data sources and attach them to Grafana.
- Below is the code which you can use for your python file.
import pandas as pd
from influxdb import InfluxDBClient
client= InfluxDBClient (host= "localhost",port=8086)
client.switch_database("corona19")
df=pd.read_csv("countries.csv.1")
df.dropna(inplace=True)
print (df.shape)
for rwo_pk, row in df.iloc[1:].iterrows():
json_body=[{
"measurement": "CovidMap",
"tags": {"country":row[0]},
"fields": {
"name":row[0],
"country":row[1],
"latitude":row[2],
"longitude":row[3],
"metric":row[4],
}
}]
client.write_points(json_body)
print("done")
-------------------------------------------------------------------------------------------------------------------------
To get more of our best content on IT careers and IT certifications, go to:
Be sure to leave any questions or comments below!
See More Videos and Subscribe: / skillsbuildtraining
Website:
Facebook: / skillsbuildtraining
Twitter: / skillsbuildt
What is grafana
0:22
Why grafana
1:00
why we need continuous monitoring
1:17
why we choose grafana instead over tools
2:00
grafana is supported in all kind of systems
2:15
installing and configuring grafana
4:11
making a new database inside infux
6:56
activating database
7:40
Thank you @Turge 😉
Thanks for the explain to understanding of grafana working
Happy to help G. S.R.
Thanks a lot bhaia
You're welcome Md Suruj.
which type of grafana are you using ?
open source or the cloud or the enterprise stack?
wonderful video to understand grafana
Thanks King.
thanks a lot.
Most welcome Md Suruj!
Sorry, perhaps it's just me but I think your beginners tutorial is a bit too complicated. I was kind of expecting you to use a very simple database like Sql Server or MySql and use one of the built in plugins.
Visualization shows nothing on the new version of Grafana
When I chose the coordinates filed from Field Mapping property, the map didn't draw circles corresponding to each country. How can I do to display it?
Hi PhanDC,
That's a great question for the Grafana Community: community.grafana.com/
This turned into an InfluxDB tutorial with a little Grafana sprinkled in
Thanks for your comment.
Thanks.
You're welcome
hi. off topic question: Which audio mic and software are you using to create this tutorial?
Microsoft Paint
such an amazing video, thanks sir
Glad you liked it!
hello i cant run this with grafana and ifnfluxdb in docker
can you help?
Traceback (most recent call last):
File "map.py", line 2, in
from influxdb import InfluxDBClient
ModuleNotFoundError: No module named 'influxdb'
Hi Samuka,
That would be a great question for the Grafana Community: community.grafana.com/
do you have any tutorial for windows?
Hi Ed,
Could you expand on that question a bit more?
@@SkillsBuildTraining I think Ed meant that as you have here shown how to do it in Linux, if you have any tutorial on how to do it in Windows.
@@debasishchakraborty7526 Thanks for clarifying. We'll have to create a new video for that. We'll add it to the list.
@@SkillsBuildTraining You may probably mention about installing 'Influxdb' with 'pip'. Otherwise the python code won't work as it will throw exception that 'no module named influxdb'.
For anyone who needs, install 'influxdb' for python by 'pip install influxdb' (you may need to install 'pip' if you don't have it already).
@@debasishchakraborty7526 Awesome. Thanks for that feedback!
You took more time explaining influx db and data preparation instead of Grafana :( What will i get looking at your python code?
Thanks for that feedback Kanagavelu.
I thought it was helpful, it gives a concrete example from start to finish, that is exactly what I was looking for, there are zillions of videos which show off features of grafana.
You guys copied from edureka grafana tutorial? Or they copied yours? Both tutorial explain same and same resource they used.
Thanks for your comment Dhananjaya.
This is complete outdated, influxdb switched to 2.x and things became more wired.
Clicking buttons is easy, but editing queries by hand which are not working from this query editor is another thing!
Thanks for your feedback Alexander.
We can achieve all of this using Kibana as well, right? So what's the point of using Grafana then?
Hi Umer,
Ideally you'd choose the tool that's best for your specific circumstances.
Hope that helps.
Because we want to?
I believe Grafana is more open to different sources and Kibana is meant to be used with Elastic Stack
DO NOT run pip as root.
too many ads on this video man, too many ads.
Thanks for the feedback.
👏👏👏
What kind of psychopath names their database corona19
Get to the point, man!