{"id":2070,"date":"2019-01-14T23:54:34","date_gmt":"2019-01-14T20:54:34","guid":{"rendered":"http:\/\/kifarunix.com\/?p=2070"},"modified":"2019-05-27T21:12:26","modified_gmt":"2019-05-27T18:12:26","slug":"install-grafana-metrics-monitoring-tool-on-debian-9","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-grafana-metrics-monitoring-tool-on-debian-9\/","title":{"rendered":"Install Grafana Metrics Monitoring Tool on Debian 9"},"content":{"rendered":"
Hello guys, we are at it again on how to install Grafana metrics monitoring tool on Debian 9. Our previous guide was on installing Grafana Data monitoring tool on Ubuntu 18.04<\/a>. Well, as you already know, Grafana is an opensource time series data analytic and monitoring tool. Grafana provides beautiful graphing options for the collected system metrics. Among the database backends from which it can collect these metrics include Graphite, InfluxDB, Prometheus, Elasticsearch and several other data sources<\/a>.<\/p>\n To install Grafana metrics monitoring tool on Debian 9, there are about three methods that you can use. These include;<\/p>\n In this guide, we are going to look at how to install Grafana using the first two methods. Before you can opt for any of the methods, ensure that your system is upto-date.<\/p>\n The Debian 9 default repositories does not contain Grafana package. In that case, we are going to download the DEB file for Grafana and install it as shown below;<\/p>\n The Grafana DEB file can be grabbed using the command below.<\/p>\n You can use any of the In this case, we are going to create Grafana APT source list under Import Grafana GPG APT key<\/p>\n Update your Debian 9 packages<\/p>\n Install Grafana using the So either method gets you to the same destination. The choice is yours. If you however choose to got with the So far so good, Grafana has been successfully installed. Want to install the latest version of Grafana (v6.2.1).<\/p>\n Install Grafana 6.2.x on Ubuntu 18.04\/Debian 9<\/a><\/p>\n The next thing is to access the Grafana Web dashboard. But before that, you need to open the Grafana TCP port 3000 on firewall to allow external access.<\/p>\n Start and enable Grafana to run when system reboots.<\/p>\n You can verify that Grafana is now listening on TCP port 3000<\/p>\n Next, Navigate to the browser and access Grafana using the URL To login, use the default credentials When you login with the default logins, you need to reset the admin password. Please do so and proceed to Grafana default dashboard.<\/p>\n The default Grafana dashboard.<\/p>\n Magnificent!! That is all about how to install Grafana metrics monitoring tool on Debian 9. In our next guides, we will discuss how to collect system metrics using different data stores for monitoring. Stay connected, you are about to experience a whole new experience of system monitoring.<\/p>\n Want to install TIG Stack, ELastic Stack or Graylog? Check our guides below;<\/p>\n Hello guys, we are at it again on how to install Grafana metrics monitoring tool on Debian 9. Our previous guide was on installing Grafana<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[301,72],"tags":[302,67],"class_list":["post-2070","post","type-post","status-publish","format-standard","hentry","category-grafana","category-monitoring","tag-grafana","tag-ubuntu-18-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2070"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=2070"}],"version-history":[{"count":3,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2070\/revisions"}],"predecessor-version":[{"id":3136,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/2070\/revisions\/3136"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=2070"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=2070"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=2070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}Install Grafana Metrics Monitoring Tool on Debian 9<\/h2>\n
\n
apt update\napt upgrade<\/code><\/pre>\n
Installing Grafana using DEB file<\/h3>\n
Download Grafana DEB file<\/h4>\n
wget<\/span> https:\/\/dl.grafana.com\/oss\/release\/grafana_5.4.2_amd64.deb<\/code><\/pre>\n
Install Grafana using DEB file<\/h4>\n
apt<\/code>,
dpkg<\/code>, or
gdebi<\/code> package managers to install the Grafana DEB file.<\/p>\n
sudo dpkg -i grafana_5.4.2_amd64.deb<\/code><\/pre>\n
Selecting previously unselected package grafana.\n(Reading database ... 45800 files and directories currently installed.)\nPreparing to unpack grafana_5.4.2_amd64.deb ...\nUnpacking grafana (5.4.2) ...\nSetting up grafana (5.4.2) ...\nAdding system user `grafana' (UID 111) ...\nAdding new user `grafana' (UID 111) with group `grafana' ...\nNot creating home directory `\/usr\/share\/grafana'.\n### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd\n sudo \/bin\/systemctl daemon-reload\n sudo \/bin\/systemctl enable grafana-server\n### You can start grafana-server by executing\n sudo \/bin\/systemctl start grafana-server\nProcessing triggers for systemd (232-25+deb9u6) ...<\/code><\/pre>\n
Installing Grafana from APT repository<\/h4>\n
\/etc\/apt\/sources.list.d\/<\/code> and import the respective GPG APT key for singing Grafana packages. This can be done as shown below;<\/p>\n
sudo vim \/etc\/apt\/sources.list.d\/grafana.list<\/code><\/pre>\n
deb https:\/\/packages.grafana.com\/oss\/deb stable main<\/code><\/pre>\n
curl https:\/\/packages.grafana.com\/gpg.key |<\/span> sudo<\/span> apt-key add -\n<\/code><\/pre>\n
apt update<\/code><\/pre>\n
apt<\/code> package manager. This is a sure bet method since it installs all the necessary dependencies.<\/p>\n
apt install grafana<\/code><\/pre>\n
Reading package lists... Done\nBuilding dependency tree \nReading state information... Done\nThe following NEW packages will be installed:\n grafana\n0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.\nNeed to get 55.4 MB of archives.\nAfter this operation, 159 MB of additional disk space will be used.\nGet:1 https:\/\/packages.grafana.com\/oss\/deb stable\/main amd64 grafana amd64 5.4.3 [55.4 MB]\nFetched 55.4 MB in 2min 2s (452 kB\/s) \ndebconf: unable to initialize frontend: Dialog\ndebconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)\ndebconf: falling back to frontend: Readline\nSelecting previously unselected package grafana.\n(Reading database ... 45814 files and directories currently installed.)\nPreparing to unpack ...\/grafana_5.4.3_amd64.deb ...\nUnpacking grafana (5.4.3) ...\nProcessing triggers for systemd (232-25+deb9u7) ...\nSetting up grafana (5.4.3) ...\n### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd\n sudo \/bin\/systemctl daemon-reload\n sudo \/bin\/systemctl enable grafana-server\n### You can start grafana-server by executing\n sudo \/bin\/systemctl start grafana-server\nProcessing triggers for systemd (232-25+deb9u7) ...<\/code><\/pre>\n
dpkg<\/code> method, ensure that you got
adduser<\/code> and
libfontconfig<\/code> packages installed.<\/p>\n
apt install adduser libfontconfig<\/code><\/pre>\n
ufw allow 3000\/tcp<\/code><\/pre>\n
sudo systemctl daemon-reload\nsudo systemctl enable grafana-server\nsudo systemctl start grafana-server<\/code><\/pre>\n
ss -altnp | grep 3000\nLISTEN 0 128 :::3000 :::* users:((\"grafana-server\",pid=8020,fd=6))<\/code><\/pre>\n
http:\/\/server-IP:3000<\/code>. This will take you the login page.<\/p>\n
<\/a><\/p>\n
\nusername: admin<\/code>
\npassword: admin<\/code><\/p>\n
<\/a><\/p>\n
<\/a><\/p>\n
Install Elastic Stack 7 on Ubuntu 18.04\/Debian 9.8<\/a><\/h3>\n
Install Graylog 3.0 on CentOS 7<\/a><\/h3>\n
Install and Setup TIG Stack on Fedora 30<\/a><\/h3>\n","protected":false},"excerpt":{"rendered":"