Skip to main content

RPM-based Installation

This guide covers installing Grafana on RPM-based Linux distributions (RHEL, Fedora, CentOS) using the YUM/DNF repository or standalone RPM packages.

Installation Methods

You can install Grafana on RPM-based systems using:
  • YUM/DNF repository (recommended): Automatic updates via dnf update
  • RPM package: Manual installation from downloaded package
  • Standalone binary: Manual installation from tarball

Install from RPM Repository

Installing from the RPM repository enables automatic updates when you run dnf update or yum update.

Available Repositories

Grafana Enterprise is the recommended edition. It’s free and includes all OSS features, with the option to upgrade to the full Enterprise feature set.

Install from RPM Package

Manual installation using RPM packages requires you to manually update Grafana for each new version.
RPM files are signed and can be verified with the public GPG key.

Install as Standalone Binary

For manual installation with full control over file locations:

Start Grafana Server

Using systemd

Start the Grafana server:
Enable Grafana to start at boot:
Check service status:

Using init.d

Start Grafana:
Enable at boot:

Configuration

After installation, Grafana uses these default paths:

Environment Variables File

The systemd service reads environment variables from /etc/sysconfig/grafana-server:

Systemd Service Configuration

The Grafana systemd service (/usr/lib/systemd/system/grafana-server.service) includes:
  • Runs as non-root grafana user
  • Dependencies: PostgreSQL, MariaDB, MySQL, InfluxDB (waits for them if present)
  • Security hardening with restricted capabilities
  • File open limit: 10,000
  • Stop timeout: 20 seconds
  • Automatic restart on failure
Service unit configuration:

Firewall Configuration

If you have firewalld enabled, allow traffic on port 3000:

SELinux Configuration

If SELinux is enforcing, you may need to configure it for Grafana:
Or temporarily set SELinux to permissive mode:

Access Grafana

After starting the server, access Grafana:
  1. Open your browser to http://localhost:3000
  2. Sign in with default credentials:
    • Username: admin
    • Password: admin
  3. Change the password when prompted

Uninstall Grafana

Troubleshooting

View logs

Or check log files:

Check service status

Verify installation

Port already in use

If port 3000 is already in use, edit /etc/grafana/grafana.ini:
Restart Grafana:

Check firewall

Check SELinux status

Next Steps

  • Configure data sources
  • Set up authentication (LDAP, OAuth, SAML)
  • Configure SMTP for email notifications
  • Set up provisioning for dashboards and data sources
  • Configure an external database (MySQL or PostgreSQL)