• Recent blogs

    How to Install Grafana 6 on Ubuntu / Debian

    How to Install Grafana 6 on Ubuntu / Debian

    In this article i'll demonstrate how to install grafana 6 on ubuntu / Debian. Grafana is an open source tool which allows you to query, visualize, alert on abnormalities. In Grafana 6 you'll find new Explore option. A new query focused workflow for ad-hoc data exploration and troubleshooting.

    There are several ways to do it, Let's Discuss them One by One:

    Download and Install:

    As the name suggest, You need to download the package from the grafana Download Page.

    Then Install the Package.

    wget https://dl.grafana.com/oss/release/grafana_6.4.2_amd64.deb
    dpkg -i grafana_6.4.2_amd64.deb
    How to Install Grafana 6 on CentOS / RHEL

    Install via APT Repository :

    The command add-apt-repository isn’t a default app on Debian 9 and requires

    apt-get install -y software-properties-common

    Install the repository for stable releases

    unisonunix01# add-apt-repository "deb https://packages.grafana.com/oss/deb stable main"

    There is a separate repository if you want beta releases.

    unisonunix01# add-apt-repository "deb https://packages.grafana.com/oss/deb beta main"

    Add gpg key. This allows you to install signed packages.

    wget -q -O - https://packages.grafana.com/gpg.key | unisonunix01# apt-key add -

    unisonunix01# apt-get update
    unisonunix01# apt-get install grafana

    Start the server (init.d service)

    Start Grafana by running:

    unisonunix01# service grafana-server start

    This will start the grafana-server process as the grafana user, which was created during the package installation. The default HTTP port is 3000 and default user and group is admin.

    Default login and password admin/ admin

    To configure the Grafana server to start at boot time:

    unisonunix01# update-rc.d grafana-server defaults

    Start the server (via systemd)

    To start the service using systemd:

    systemctl daemon-reload
    systemctl start grafana-server
    systemctl status grafana-server

    Enable the systemd service so that Grafana starts at boot.

    unisonunix01# systemctl enable grafana-server.service

    Access Grafana Dashboard: 

    Once the service has been started, you can access Grafana dashboard at http://[serverip|hostname]:3000

    How to Install Grafana 6 on CentOS 7 / RHEL 7

    Grafana handy  Files: 

        Installs binary to /usr/sbin/grafana-server

        Copies init.d script to /etc/init.d/grafana-server

        Installs default file (environment vars) to /etc/sysconfig/grafana-server

        Copies configuration file to /etc/grafana/grafana.ini

        Installs systemd service (if systemd is available) name grafana-server.service

        The default configuration uses a log file at /var/log/grafana/grafana.log

        The default configuration specifies an sqlite3 database at /var/lib/grafana/grafana.db

    Environment file /etc/sysconfig/grafana-server -- Here you can override log directory, data directory and other variables.

    No comments