page_title: Installing on RPM-based Linux page_description: Grafana Installation guide for Centos, Fedora, OpenSuse, Redhat.
| Description | Download |
|---|---|
| Stable .RPM for CentOS / Fedora / OpenSuse / Redhat Linux | 3.0.4 (x86-64 rpm) |
| Beta .RPM for CentOS / Fedora / OpenSuse / Redhat Linux | 3.1.0-beta1 (x86-64 rpm) |
You can install Grafana using Yum directly.
$ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-3.0.4-1464167696.x86_64.rpm
Or install manually using rpm.
$ sudo yum install initscripts fontconfig
$ sudo rpm -Uvh grafana-3.0.4-1464167696.x86_64.rpm
$ sudo rpm -i --nodeps grafana-3.0.4-1464167696.x86_64.rpm
You can install Grafana using Yum directly.
$ sudo yum install https://grafanarel.s3.amazonaws.com/builds/grafana-3.1.0-1466666977beta1.x86_64.rpm
Or install manually using rpm.
$ sudo yum install initscripts fontconfig
$ sudo rpm -Uvh https://grafanarel.s3.amazonaws.com/builds/grafana-3.1.0-1466666977beta1.x86_64.rpm
$ sudo rpm -i --nodeps https://grafanarel.s3.amazonaws.com/builds/grafana-3.1.0-1466666977beta1.x86_64.rpm
Add the following to a new file at /etc/yum.repos.d/grafana.repo
[grafana]
name=grafana
baseurl=https://packagecloud.io/grafana/stable/el/6/$basearch
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://packagecloud.io/gpg.key https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
There is also a testing repository if you want beta or release candidates.
baseurl=https://packagecloud.io/grafana/testing/el/6/$basearch
Then install Grafana via the yum command.
$ sudo yum install grafana
The RPMs are signed, you can verify the signature with this public GPG key.
/usr/sbin/grafana-server/etc/init.d/grafana-server/etc/sysconfig/grafana-server/etc/grafana/grafana.inigrafana-server.service/var/log/grafana/grafana.log/var/lib/grafana/grafana.dbYou can start Grafana by running:
$ sudo service grafana-server start
This will start the grafana-server process as the grafana user,
which is created during package installation. The default HTTP port is
3000, and default user and group is admin.
To configure the Grafana server to start at boot time:
$ sudo /sbin/chkconfig --add grafana-server
$ systemctl daemon-reload
$ systemctl start grafana-server
$ systemctl status grafana-server
sudo systemctl enable grafana-server.service
The systemd service file and init.d script both use the file located at
/etc/sysconfig/grafana-server for environment variables used when
starting the back-end. Here you can override log directory, data
directory and other variables.
By default Grafana will log to /var/log/grafana
The default configuration specifies a sqlite3 database located at
/var/lib/grafana/grafana.db. Please backup this database before
upgrades. You can also use MySQL or Postgres as the Grafana database, as detailed on the configuration page.
The configuration file is located at /etc/grafana/grafana.ini. Go the
Configuration page for details on all
those options.