{"id":12738,"date":"2019-03-28T17:28:57","date_gmt":"2019-03-28T17:28:57","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=12738"},"modified":"2019-03-28T17:28:57","modified_gmt":"2019-03-28T17:28:57","slug":"grafana-an-open-source-software-for-analytics-and-monitoring","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/grafana-an-open-source-software-for-analytics-and-monitoring\/","title":{"rendered":"Grafana \u2013 An Open Source Software for Analytics and Monitoring"},"content":{"rendered":"<p><strong>Grafana<\/strong>\u00a0is an open source, feature rich, powerful, elegant and highly-extensible analytics and monitoring software that runs on\u00a0<strong>Linux<\/strong>,\u00a0<strong>Windows<\/strong>\u00a0and\u00a0<strong>MacOS<\/strong>. It is a de facto software for data analytics, being used at\u00a0<strong>Stack Overflow<\/strong>,\u00a0<strong>eBay<\/strong>,\u00a0<strong>PayPal<\/strong>,\u00a0<strong>Uber<\/strong>\u00a0and\u00a0<strong>Digital Ocean<\/strong>\u00a0\u2013 just to mention but a few.<\/p>\n<p>It supports\u00a0<strong>30+<\/strong>\u00a0open source as well as commercial databases\/data sources including\u00a0<strong>MySQL<\/strong>,\u00a0<strong>PostgreSQL<\/strong>,\u00a0<strong>Graphite<\/strong>,\u00a0<strong>Elasticsearch<\/strong>,\u00a0<strong>OpenTSDB<\/strong>,\u00a0<strong>Prometheus<\/strong>\u00a0and\u00a0<strong>InfluxDB<\/strong>. It allows you to dig deeply into large volumes of real-time, operational data; visualize, query, set alerts and get insights from your metrics from different storage locations.<\/p>\n<p><strong>Read Also<\/strong>:\u00a0<a href=\"https:\/\/www.tecmint.com\/install-piwik-alternative-to-google-analytics-in-linux\/\" target=\"_blank\" rel=\"noopener\">How to Install Piwik (Google Analytics) Software in Linux<\/a><\/p>\n<p>Importantly,\u00a0<strong>Grafana<\/strong>\u00a0allows for setting up multiple, independent organizations with each having their own usage environment (admins, data sources, dashboards and users).<\/p>\n<div id=\"attachment_29550\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Analytics-Monitoring-Software.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29550\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Analytics-Monitoring-Software.png\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Analytics-Monitoring-Software.png 1000w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Analytics-Monitoring-Software-768x384.png 768w\" alt=\"Grafana Analytics Monitoring Software\" width=\"1000\" height=\"500\" aria-describedby=\"caption-attachment-29550\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29550\" class=\"wp-caption-text\">Grafana Analytics Monitoring Software<\/p>\n<\/div>\n<h4>Grafana Features:<\/h4>\n<ul>\n<li>Elegant graphics for data visualization.<\/li>\n<li>Fast and flexible graphs with numerous options.<\/li>\n<li>Dynamic and reusable dashboards.<\/li>\n<li>It\u2019s highly extensible using hundreds of dashboards and plugins in the official library.<\/li>\n<li>Supports power user preferences.<\/li>\n<li>Supports multi tenancy, setup multiple independent organizations.<\/li>\n<li>Supports authentication via LDAP, Google Auth, Grafana.com, and Github.<\/li>\n<li>Supports notifications via Slack, PagerDuty, and more.<\/li>\n<li>Remarkably supports collaboration by allowing sharing of data and dashboards across teams and so much more.<\/li>\n<\/ul>\n<p>An online demo is available for you to try before installing\u00a0<strong>Grafana<\/strong>\u00a0on your Linux distribution.<\/p>\n<pre><strong>Demo URL<\/strong>: http:\/\/play.grafana.org\/\r\n<\/pre>\n<p>In this article, we will explain how to install\u00a0<strong>Grafana \u2013 Data Visualization &amp; Monitoring<\/strong>\u00a0software on\u00a0<strong>CentOS<\/strong>,\u00a0<strong>Debian<\/strong>\u00a0and\u00a0<strong>Ubuntu<\/strong>\u00a0distributions.<\/p>\n<h3>Install Grafana in Linux Systems<\/h3>\n<p><strong>1.<\/strong>\u00a0We will install\u00a0<strong>Grafana<\/strong>\u00a0from its official\u00a0<strong>YUM<\/strong>\u00a0or\u00a0<strong>APT<\/strong>\u00a0repositories, so that you can update it using your default package manager.<\/p>\n<h4>Install Grafana on Debian and Ubuntu<\/h4>\n<pre>$ echo \"deb https:\/\/packagecloud.io\/grafana\/stable\/debian\/ stretch main\" | sudo tee -a \/etc\/apt\/sources.list\r\n$ curl https:\/\/packagecloud.io\/gpg.key | sudo apt-key add -\r\n$ sudo apt-get update\r\n$ sudo apt-get install grafana\r\n<\/pre>\n<h4>Install Grafana on CentOS, RHEL and Fedora<\/h4>\n<pre># echo \"[grafana]\r\nname=grafana\r\nbaseurl=https:\/\/packagecloud.io\/grafana\/stable\/el\/7\/$basearch\r\nrepo_gpgcheck=1\r\nenabled=1\r\ngpgcheck=1\r\ngpgkey=https:\/\/packagecloud.io\/gpg.key https:\/\/grafanarel.s3.amazonaws.com\/RPM-GPG-KEY-grafana\r\nsslverify=1\r\nsslcacert=\/etc\/pki\/tls\/certs\/ca-bundle.crt\" | sudo tee \/etc\/yum.repos.d\/grafana.repo\r\n\r\n# yum install grafana\r\n<\/pre>\n<p><strong>2.<\/strong>\u00a0After installing\u00a0<strong>Grafana<\/strong>, you can find important files in the following locations:<\/p>\n<ul>\n<li>Installs binary to\u00a0<strong>\/usr\/sbin\/grafana-server<\/strong><\/li>\n<li>Installs Init.d script to\u00a0<strong>\/etc\/init.d\/grafana-server<\/strong><\/li>\n<li>Creates default file (environment vars) to\u00a0<strong>\/etc\/default\/grafana-server<\/strong><\/li>\n<li>Installs configuration file to\u00a0<strong>\/etc\/grafana\/grafana.ini<\/strong><\/li>\n<li>Installs systemd service name\u00a0<strong>grafana-server.service<\/strong><\/li>\n<li>The default configuration sets the log file at\u00a0<strong>\/var\/log\/grafana\/grafana.log<\/strong><\/li>\n<li>The default configuration specifies an sqlite3 db at\u00a0<strong>\/var\/lib\/grafana\/grafana.db<\/strong><\/li>\n<li>Installs HTML\/JS\/CSS and other Grafana files at\u00a0<strong>\/usr\/share\/grafana<\/strong><\/li>\n<\/ul>\n<p><strong>3.<\/strong>\u00a0Next, start the\u00a0<strong>Grafana<\/strong>\u00a0service, check if it is up and running, then enable it to auto-start at boot time as follows. By default, the process is run as the\u00a0<strong>grafana<\/strong>\u00a0user (created during the installation process), and listens on HTTP port\u00a0<strong>3000<\/strong>.<\/p>\n<h4>Start Grafana Server (via Systemd)<\/h4>\n<pre># systemctl daemon-reload\r\n# systemctl start grafana-server\r\n# systemctl status grafana-server\r\n# systemctl enable grafana-server\r\n<\/pre>\n<h4>Start Grafana Server (via init.d)<\/h4>\n<pre># service grafana-server start\r\n# service grafana-server status\r\n# sudo update-rc.d grafana-server defaults  <strong>[On Debian\/Ubuntu]<\/strong>\r\n# \/sbin\/chkconfig --add grafana-server      <strong>[On CentOS\/RHEL\/Fedora]<\/strong>\r\n<\/pre>\n<p><strong>4.<\/strong>\u00a0If your system has a firewall enabled by default, you need to open the port\u00a0<strong>3000<\/strong>\u00a0in the firewall to allow client requests to the grafana process.<\/p>\n<pre>-----------  <strong>[On Debian\/Ubuntu]<\/strong> -----------\r\n$ sudo ufw allow 3000\/tcp\r\n$ sudo ufw reload\r\n\r\n-----------  <strong>[On CentOS\/RHEL\/Fedora]<\/strong> -----------  \r\n# firewall-cmd --permanent --add-port=3000\/tcp\r\n# firewall-cmd --reload\r\n<\/pre>\n<p><strong>5.<\/strong>\u00a0Now use the following URL to access the\u00a0<strong>Grafana<\/strong>, which will redirect to the login page, user credentials as\u00a0<strong>username: admin<\/strong>\u00a0and\u00a0<strong>password: admin<\/strong>)<\/p>\n<pre>http:\/\/Your-Domain.com:3000\r\nOR\r\nhttp:\/\/IP-Address:3000\r\n<\/pre>\n<div id=\"attachment_29552\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Login-Page.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29552\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Login-Page.png\" sizes=\"auto, (max-width: 838px) 100vw, 838px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Login-Page.png 838w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Login-Page-768x547.png 768w\" alt=\"Grafana Admin Login\" width=\"838\" height=\"597\" aria-describedby=\"caption-attachment-29552\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29552\" class=\"wp-caption-text\">Grafana Admin Login<\/p>\n<\/div>\n<p><strong>6.<\/strong>\u00a0After login, you will access the home dashboard, as shown in the screenshot below.<\/p>\n<div id=\"attachment_29553\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Home-Dashboard.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29553\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Home-Dashboard.png\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Home-Dashboard.png 971w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Home-Dashboard-768x569.png 768w\" alt=\"Grafana Home Dashboard\" width=\"971\" height=\"719\" aria-describedby=\"caption-attachment-29553\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29553\" class=\"wp-caption-text\">Grafana Home Dashboard<\/p>\n<\/div>\n<p><strong>7.<\/strong>\u00a0Next, add a database or data source, click on \u201c<strong>Add Data Source<\/strong>\u201d. For example we will add a\u00a0<strong>MySQL<\/strong>\u00a0database; specify the data source name, type, and connection parameters. Then click on\u00a0<strong>Save &amp; Test<\/strong>.<\/p>\n<div id=\"attachment_29555\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-new-data-source.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29555\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-new-data-source.png\" sizes=\"auto, (max-width: 971px) 100vw, 971px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-new-data-source.png 971w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-new-data-source-768x588.png 768w\" alt=\"Add Grafana Data Source\" width=\"971\" height=\"743\" aria-describedby=\"caption-attachment-29555\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29555\" class=\"wp-caption-text\">Add Grafana Data Source<\/p>\n<\/div>\n<p>You will be notified if the database connection is successful or it has failed, as shown in the screenshot. Then go back to the home dashboard to add a new dashboard.<\/p>\n<div id=\"attachment_29556\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Data-Source-Connection.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29556\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Data-Source-Connection.png\" sizes=\"auto, (max-width: 926px) 100vw, 926px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Data-Source-Connection.png 926w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Grafana-Data-Source-Connection-768x607.png 768w\" alt=\"Grafana Data Source Connection\" width=\"926\" height=\"732\" aria-describedby=\"caption-attachment-29556\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29556\" class=\"wp-caption-text\">Grafana Data Source Connection<\/p>\n<\/div>\n<p><strong>8.<\/strong>\u00a0From the\u00a0<strong>Home<\/strong>\u00a0dashboard, click on\u00a0<strong>New dashboard<\/strong>\u00a0to add a new panel for visualizing metrics from your data source.<\/p>\n<div id=\"attachment_29557\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-New-Dashboard.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-29557\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-New-Dashboard.png\" sizes=\"auto, (max-width: 874px) 100vw, 874px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-New-Dashboard.png 874w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2018\/05\/Add-Grafana-New-Dashboard-768x571.png 768w\" alt=\"Add Grafana New Dashboard\" width=\"874\" height=\"650\" aria-describedby=\"caption-attachment-29557\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p id=\"caption-attachment-29557\" class=\"wp-caption-text\">Add Grafana New Dashboard<\/p>\n<\/div>\n<p>From here, you can add more data sources, dashboards, invite your team members, install apps and plugins to extend the default functionalities, and do more.<\/p>\n<p>You can find more information from the Grafana Homepage:\u00a0<a href=\"https:\/\/grafana.com\/\" target=\"_blank\" rel=\"nofollow noopener\">https:\/\/grafana.com\/<\/a><\/p>\n<p><strong>Grafana<\/strong>\u00a0is an elegant software for real-time data analytics and monitoring. We hope that you successfully installed Grafana on your Linux system, otherwise, use the feedback form below to ask any questions or share your thoughts about it.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/install-grafana-analytics-in-centos-ubuntu-debian\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Grafana\u00a0is an open source, feature rich, powerful, elegant and highly-extensible analytics and monitoring software that runs on\u00a0Linux,\u00a0Windows\u00a0and\u00a0MacOS. It is a de facto software for data analytics, being used at\u00a0Stack Overflow,\u00a0eBay,\u00a0PayPal,\u00a0Uber\u00a0and\u00a0Digital Ocean\u00a0\u2013 just to mention but a few. It supports\u00a030+\u00a0open source as well as commercial databases\/data sources including\u00a0MySQL,\u00a0PostgreSQL,\u00a0Graphite,\u00a0Elasticsearch,\u00a0OpenTSDB,\u00a0Prometheus\u00a0and\u00a0InfluxDB. It allows you to dig deeply into large &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/28\/grafana-an-open-source-software-for-analytics-and-monitoring\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Grafana \u2013 An Open Source Software for Analytics and Monitoring&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-12738","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12738","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=12738"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12738\/revisions"}],"predecessor-version":[{"id":12744,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/12738\/revisions\/12744"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=12738"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=12738"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=12738"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}