How to Setup a Grafana Dashboard Step-by-Step | Grafana Tutorial for Beginners
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
Пікірлер: 51
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
@SkillsBuildTraining
Жыл бұрын
Thank you @Turge 😉
which type of grafana are you using ? open source or the cloud or the enterprise stack?
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?
@SkillsBuildTraining
2 жыл бұрын
Hi PhanDC, That's a great question for the Grafana Community: community.grafana.com/
Thanks for the explain to understanding of grafana working
@SkillsBuildTraining
Жыл бұрын
Happy to help G. S.R.
hi. off topic question: Which audio mic and software are you using to create this tutorial?
@alpachino468
Жыл бұрын
Microsoft Paint
Thanks a lot bhaia
@SkillsBuildTraining
2 жыл бұрын
You're 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.
thanks a lot.
@SkillsBuildTraining
2 жыл бұрын
Most welcome Md Suruj!
such an amazing video, thanks sir
@SkillsBuildTraining
Жыл бұрын
Glad you liked it!
Visualization shows nothing on the new version of Grafana
wonderful video to understand grafana
@SkillsBuildTraining
2 жыл бұрын
Thanks King.
This turned into an InfluxDB tutorial with a little Grafana sprinkled in
@SkillsBuildTraining
4 ай бұрын
Thanks for your comment.
Thanks.
@SkillsBuildTraining
9 ай бұрын
You're welcome
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'
@SkillsBuildTraining
2 жыл бұрын
Hi Samuka, That would be a great question for the Grafana Community: community.grafana.com/
You took more time explaining influx db and data preparation instead of Grafana :( What will i get looking at your python code?
@SkillsBuildTraining
2 жыл бұрын
Thanks for that feedback Kanagavelu.
@juanhaver6584
Жыл бұрын
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.
@SkillsBuildTraining
2 жыл бұрын
Thanks for your comment Dhananjaya.
do you have any tutorial for windows?
@SkillsBuildTraining
3 жыл бұрын
Hi Ed, Could you expand on that question a bit more?
@debasishchakraborty7526
3 жыл бұрын
@@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.
@SkillsBuildTraining
3 жыл бұрын
@@debasishchakraborty7526 Thanks for clarifying. We'll have to create a new video for that. We'll add it to the list.
@debasishchakraborty7526
3 жыл бұрын
@@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).
@SkillsBuildTraining
3 жыл бұрын
@@debasishchakraborty7526 Awesome. Thanks for that feedback!
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!
@SkillsBuildTraining
2 жыл бұрын
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?
@SkillsBuildTraining
3 жыл бұрын
Hi Umer, Ideally you'd choose the tool that's best for your specific circumstances. Hope that helps.
@fishfighter2
3 жыл бұрын
Because we want to?
@brianthird4173
3 жыл бұрын
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.
What kind of psychopath names their database corona19
too many ads on this video man, too many ads.
@SkillsBuildTraining
Жыл бұрын
Thanks for the feedback.
Get to the point, man!
👏👏👏