You can select bytes unit from the Standard Options > Unit as shown in the screenshot below. As you’re monitoring network speed, the unit should be in bytes. Now, you have to set a unit for the graph. This is how the panel should look like after setting the Graph timeline to Last 5 minutes. This way, you can observe the download speed of the network interfaces for the last 5 minutes. Please set it to the Last 5 minutes as marked in the screenshot below. To learn more about how I have set it up, check out How to Install Prometheus on Ubuntu 20.04 LTS.īy default, the Graph timeline is set to 6 hours. NOTE: I have installed Node Exporter and Prometheus on the same computer. ![]() Select Prometheus as the Data source and type in rate(node_network_receive_bytes_total) in the Metrics browser section as marked in the screenshot below.Ī graph of the download rate of all the network interfaces (ens18 and lo in this case) of the computer where Node Exporter is installed should be displayed. You can create a Grafana Dashboard panel from here. The Grafana panel editor should be displayed. To create a new Grafana dashboard, click on Dashboards ( ) > Manage as marked in the screenshot below.Ĭlick on Add an empty panel as marked in the screenshot below. This should help you get started with some of the most common features of the Grafana dashboard. In this section, I will show you how to create your own Grafana network monitoring dashboard using the Prometheus data source. You can change the graph timeline from the Grafana Explore page as well.Īs you can see, I have set the graph timeline to Last 5 minutes, and the graph looks really good in Grafana.Ĭreating a Dashboard for Network Monitoring: You can click on the Metrics browser dropdown menu to find all the exported Prometheus metrics that you can use from Grafana, as you can see in the screenshot below. This interface is almost the same as the Prometheus Graph page. Now, you should run the Prometheus Graph expression from here, as you can see in the screenshot below. Prometheus should be added as a Grafana data source, as you can see in the screenshot below.Ĭlick on the Explore ( ) as marked in the screenshot below. It means that Grafana can access Prometheus. You should see the message Data source is working. Once you’re done, scroll down a little bit and click on Save & test. Also, replace the IP address with the IP address of the computer where you have Prometheus installed. Change the Prometheus port number in the URL if you’re running Prometheus on another port. ![]() Here, 9090 is the port that Prometheus runs on, and 192.168.0.117 is the computer’s IP address where Prometheus is installed. Set a name for the Prometheus data source. To add Prometheus as a data source on Grafana, click on Configuration ( ) > Data sources as marked in the screenshot below. The admin password should be updated, and you should be redirected to the default Grafana dashboard page, as shown in the screenshot below.Īdding Prometheus Data Source on Grafana: Type in a secure admin password and click on Submit. Type in admin as the username and admin as the password and click on Log in.Īs you’re logging in to Grafana for the first time, you will be asked to set a new admin password. The default admin account username is admin, and the password is also admin. Now, open a web browser and navigate to the URL and you should see the Grafana log-in page as in the screenshot below. ![]() But, you can download a DEB package of Grafana from the official website of Grafana and install it on Ubuntu 20.04 LTS.įirst, update the APT package repository cache with the following command: Grafana is not available in the official package repository of Ubuntu 20.04 LTS. To be able to graph data from Prometheus using Grafana, you must have Grafana installed on your computer. If you need any assistance installing Prometheus and Node Exporter on your Ubuntu 20.04 LTS distribution, check out the article How to Install Prometheus on Ubuntu 20.04 LTS. To try out the examples of this article, you must have Prometheus and Node Exporter installed on your computer.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |