Home / Articles / Analytic / grafana / 8.1.0 / grafana-install

Grafana Install & Confiuration

Install Grafana

  • Download RPM from Grafana Official Website.
  • # wget https://dl.grafana.com/oss/release/grafana-8.1.0-1.x86_64.rpm --2021-08-07 16:28:24-- https://dl.grafana.com/oss/release/grafana-8.1.0-1.x86_64.rpm Resolving dl.grafana.com (dl.grafana.com)... 151.101.50.217, 2a04:4e42:c::729 Connecting to dl.grafana.com (dl.grafana.com)|151.101.50.217|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 57008341 (54M) [application/x-redhat-package-manager] Saving to: grafana-8.1.0-1.x86_64.rpm 100%[===================================================================>] 57,008,341 5.51MB/s in 11s 2021-08-07 16:28:35 (5.10 MB/s) - grafana-8.1.0-1.x86_64.rpm saved [57008341/57008341]
  • Install Grafana RPM using YUM
  • There are multiple dependencies for Grafana. These dependencies are available in Linux OS Repos. A working YUM repo setup is required to download and install these dependencies.

    # yum localinstall grafana-8.1.0-1.x86_64.rpm Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is not registered with an entitlement server. You can use subscription-manager to register. Examining grafana-8.1.0-1.x86_64.rpm: grafana-8.1.0-1.x86_64 Marking grafana-8.1.0-1.x86_64.rpm to be installed Resolving Dependencies --> Running transaction check ---> Package grafana.x86_64 0:8.1.0-1 will be installed --> Processing Dependency: fontconfig for package: grafana-8.1.0-1.x86_64 --> Processing Dependency: urw-fonts for package: grafana-8.1.0-1.x86_64 --> Running transaction check ---> Package fontconfig.x86_64 0:2.13.0-4.3.el7 will be installed --> Processing Dependency: fontpackages-filesystem for package: fontconfig-2.13.0-4.3.el7.x86_64 --> Processing Dependency: dejavu-sans-fonts for package: fontconfig-2.13.0-4.3.el7.x86_64 ---> Package urw-fonts.noarch 0:2.4-16.el7 will be installed --> Processing Dependency: xorg-x11-font-utils for package: urw-fonts-2.4-16.el7.noarch --> Running transaction check ---> Package dejavu-sans-fonts.noarch 0:2.33-6.el7 will be installed --> Processing Dependency: dejavu-fonts-common = 2.33-6.el7 for package: dejavu-sans-fonts-2.33-6.el7.noarch ---> Package fontpackages-filesystem.noarch 0:1.44-8.el7 will be installed ---> Package xorg-x11-font-utils.x86_64 1:7.5-21.el7 will be installed --> Processing Dependency: libfontenc.so.1()(64bit) for package: 1:xorg-x11-font-utils-7.5-21.el7.x86_64 --> Running transaction check ---> Package dejavu-fonts-common.noarch 0:2.33-6.el7 will be installed ---> Package libfontenc.x86_64 0:1.1.3-3.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================== Installing: grafana x86_64 8.1.0-1 /grafana-8.1.0-1.x86_64 180 M Installing for dependencies: dejavu-fonts-common noarch 2.33-6.el7 localrepo 64 k dejavu-sans-fonts noarch 2.33-6.el7 localrepo 1.4 M fontconfig x86_64 2.13.0-4.3.el7 localrepo 254 k fontpackages-filesystem noarch 1.44-8.el7 localrepo 9.9 k libfontenc x86_64 1.1.3-3.el7 localrepo 31 k urw-fonts noarch 2.4-16.el7 localrepo 3.0 M xorg-x11-font-utils x86_64 1:7.5-21.el7 localrepo 104 k Transaction Summary ============================================================================================================================================================== Install 1 Package (+7 Dependent packages) Total size: 185 M Total download size: 4.9 M Installed size: 191 M Is this ok [y/d/N]: y Downloading packages: (1/7): dejavu-fonts-common-2.33-6.el7.noarch.rpm | 64 kB 00:00:00 (2/7): dejavu-sans-fonts-2.33-6.el7.noarch.rpm | 1.4 MB 00:00:00 (3/7): fontconfig-2.13.0-4.3.el7.x86_64.rpm | 254 kB 00:00:00 (4/7): fontpackages-filesystem-1.44-8.el7.noarch.rpm | 9.9 kB 00:00:00 (5/7): urw-fonts-2.4-16.el7.noarch.rpm | 3.0 MB 00:00:00 (6/7): xorg-x11-font-utils-7.5-21.el7.x86_64.rpm | 104 kB 00:00:00 (7/7): libfontenc-1.1.3-3.el7.x86_64.rpm | 31 kB 00:00:00 -------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 11 MB/s | 4.9 MB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : fontpackages-filesystem-1.44-8.el7.noarch 1/8 Installing : dejavu-fonts-common-2.33-6.el7.noarch 2/8 Installing : dejavu-sans-fonts-2.33-6.el7.noarch 3/8 Installing : fontconfig-2.13.0-4.3.el7.x86_64 4/8 Installing : libfontenc-1.1.3-3.el7.x86_64 5/8 Installing : 1:xorg-x11-font-utils-7.5-21.el7.x86_64 6/8 Installing : urw-fonts-2.4-16.el7.noarch 7/8 Installing : grafana-8.1.0-1.x86_64 8/8 ### NOT starting on installation, please execute the following statements to configure grafana to start automatically using systemd sudo /bin/systemctl daemon-reload sudo /bin/systemctl enable grafana-server.service ### You can start grafana-server by executing sudo /bin/systemctl start grafana-server.service POSTTRANS: Running script Verifying : 1:xorg-x11-font-utils-7.5-21.el7.x86_64 1/8 Verifying : urw-fonts-2.4-16.el7.noarch 2/8 Verifying : fontconfig-2.13.0-4.3.el7.x86_64 3/8 Verifying : dejavu-fonts-common-2.33-6.el7.noarch 4/8 Verifying : dejavu-sans-fonts-2.33-6.el7.noarch 5/8 Verifying : libfontenc-1.1.3-3.el7.x86_64 6/8 Verifying : grafana-8.1.0-1.x86_64 7/8 Verifying : fontpackages-filesystem-1.44-8.el7.noarch 8/8 Installed: grafana.x86_64 0:8.1.0-1 Dependency Installed: dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontconfig.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 libfontenc.x86_64 0:1.1.3-3.el7 urw-fonts.noarch 0:2.4-16.el7 xorg-x11-font-utils.x86_64 1:7.5-21.el7 Complete!
  • Start Grafana-Server Service.
  • # systemctl start grafana-server
  • Check Grafana Server Service Status
  • # systemctl status grafana-server grafana-server.service - Grafana instance Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; disabled; vendor preset: disabled) Active: active (running) since Sat 2021-08-07 18:33:55 EDT; 8s ago Docs: http://docs.grafana.org Main PID: 5135 (grafana-server) CGroup: /system.slice/grafana-server.service 5135 /usr/sbin/grafana-server --config=/etc/grafana/grafana.ini --pidfile=/var/run/grafana/grafana-server.pid --packaging=rpm cfg:default.path... Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="Executing migration" logger=migrator id=...on_id" Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="migrations completed" logger=migrator pe...39873s Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="Created default admin" logger=sqlstore user=admin Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="Created default organization" logger=sqlstore Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="Starting plugin search" logger=plugins Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="Registering plugin" logger=plugins id=input Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="External plugins directory created" logg...lugins Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="Live Push Gateway initialization" logger...h_http Aug 07 18:33:55 grafana-36.linuxtechspace.com systemd[1]: Started Grafana instance. Aug 07 18:33:55 grafana-36.linuxtechspace.com grafana-server[5135]: t=2021-08-07T18:33:55-0400 lvl=info msg="HTTP Server Listen" logger=http.server a...ocket= Hint: Some lines were ellipsized, use -l to show in full.
  • Enable Grafana-Server Service to start on server boot
  • # systemctl enable grafana-server Created symlink from /etc/systemd/system/multi-user.target.wants/grafana-server.service to /usr/lib/systemd/system/grafana-server.service.
  • Check Grafana-Server is Listening on port 3000
  • # netstat -an | grep 3000 tcp6 0 0 :::3000 :::* LISTEN

Open Grafana Console in Browser

  • Open Grafana Console in Browser
  • Enter following URL in browser.
    http://your_server_name:3000
    
    Replace "your_server_name" with the hostname or IP address of server running Grafana Server Service
    

  • Login with username "admin" and password "admin"

  • For the first time login, you need to reset the admin password.

  • Grafana Home Screen will be displayed

  • Grafana has been installed successfully