{"id":4827,"date":"2026-03-21T19:12:54","date_gmt":"2026-03-21T16:12:54","guid":{"rendered":"https:\/\/computingforgeeks.com\/?p=4827"},"modified":"2026-03-21T19:12:55","modified_gmt":"2026-03-21T16:12:55","slug":"install-grafana-fedora","status":"publish","type":"post","link":"https:\/\/computingforgeeks.com\/install-grafana-fedora\/","title":{"rendered":"How To Install Grafana on Fedora 42"},"content":{"rendered":"\n<p>Grafana is an open source analytics and interactive visualization platform. It connects to a wide range of data sources &#8211; Prometheus, InfluxDB, Elasticsearch, PostgreSQL, MySQL, and many others &#8211; and turns raw metrics into dashboards, graphs, and alerts you can act on.<\/p>\n\n\n\n<p>This guide walks through installing Grafana OSS 12.x on Fedora 42 from the official Grafana RPM repository, configuring the systemd service, opening the firewall, and logging in for the first time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A server or workstation running Fedora 42<\/li>\n\n\n\n<li>Root or sudo access<\/li>\n\n\n\n<li>Internet connectivity to download packages from the Grafana repository<\/li>\n\n\n\n<li>Port 3000\/tcp available (Grafana default HTTP port)<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Add the Grafana RPM Repository<\/h2>\n\n\n\n<p>Grafana maintains an official RPM repository at <code>rpm.grafana.com<\/code>. Import the GPG key first, then create the repo file.<\/p>\n\n\n\n<p>Import the Grafana GPG signing key:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo rpm --import https:\/\/rpm.grafana.com\/gpg.key<\/code><\/pre>\n\n\n\n<p>Create the repository file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo vi \/etc\/yum.repos.d\/grafana.repo<\/code><\/pre>\n\n\n\n<p>Add the following content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[grafana]\nname=grafana\nbaseurl=https:\/\/rpm.grafana.com\nrepo_gpgcheck=1\nenabled=1\ngpgcheck=1\ngpgkey=https:\/\/rpm.grafana.com\/gpg.key\nsslverify=1\nsslcacert=\/etc\/pki\/tls\/certs\/ca-bundle.crt<\/code><\/pre>\n\n\n\n<p>Verify the repository is available:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf repolist | grep grafana<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Install Grafana on Fedora 42<\/h2>\n\n\n\n<p>With the repository configured, install the Grafana OSS package:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo dnf install -y grafana<\/code><\/pre>\n\n\n\n<p>After installation completes, confirm the installed version:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grafana-server -v<\/code><\/pre>\n\n\n\n<p>The installation creates a <code>grafana<\/code> system user and group, sets up the configuration file at <code>\/etc\/grafana\/grafana.ini<\/code>, and places the SQLite database at <code>\/var\/lib\/grafana\/grafana.db<\/code>. Logs go to <code>\/var\/log\/grafana\/<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Start and Enable the Grafana Service<\/h2>\n\n\n\n<p>Grafana ships with a systemd unit file. Enable it to start on boot and start the service immediately:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo systemctl enable --now grafana-server<\/code><\/pre>\n\n\n\n<p>Verify the service is running:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">systemctl status grafana-server<\/mark>\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-light-green-cyan-color\">\u25cf<\/mark> grafana-server.service - Grafana instance\n     Loaded: loaded (\/usr\/lib\/systemd\/system\/grafana-server.service; enabled; preset: disabled)\n     Active:<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\"> active (running)<\/mark> since Fri 2026-03-21 10:15:32 UTC; 5s ago\n       Docs: http:\/\/docs.grafana.org\n   Main PID: 4512 (grafana-server)\n      Tasks: 18 (limit: 4520)\n     Memory: 58.2M\n        CPU: 1.320s\n     CGroup: \/system.slice\/grafana-server.service\n             \u2514\u25004512 \/usr\/sbin\/grafana-server --config=\/etc\/grafana\/grafana.ini --pidfile=\/var\/run\/grafana\/grafana-server.pid ...<\/code><\/pre>\n\n\n\n<p>The service runs as the <code>grafana<\/code> user and listens on port 3000 by default. If you need to change the port or bind address, edit <code>\/etc\/grafana\/grafana.ini<\/code> under the <code>[server]<\/code> section.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 4: Configure the Firewall<\/h2>\n\n\n\n<p>Fedora 42 ships with firewalld enabled by default. Open port 3000\/tcp so you can reach the Grafana dashboard from other machines on the network:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --add-port=3000\/tcp --permanent\nsudo firewall-cmd --reload<\/code><\/pre>\n\n\n\n<p>Confirm the rule is active:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo firewall-cmd --list-ports<\/code><\/pre>\n\n\n\n<p>You should see <code>3000\/tcp<\/code> in the output.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 5: Access the Grafana Web Interface<\/h2>\n\n\n\n<p>Open a browser and navigate to your server&#8217;s IP address or hostname on port 3000:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/your-server-ip:3000<\/code><\/pre>\n\n\n\n<p>The default login credentials are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Username: <code>admin<\/code><\/li>\n\n\n\n<li>Password: <code>admin<\/code><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"584\" src=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28-1024x584.png\" alt=\"Grafana login page on Fedora\" class=\"wp-image-4830\" title=\"\" srcset=\"https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28-1024x584.png 1024w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28-300x171.png 300w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28-768x438.png 768w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28-696x397.png 696w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28-1068x609.png 1068w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28-737x420.png 737w, https:\/\/computingforgeeks.com\/wp-content\/uploads\/2018\/11\/install-grafana-fedora-29-fedora-28.png 1128w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p>After logging in, Grafana prompts you to set a new admin password. Choose a strong password and save it &#8211; this is the only account with full administrative access.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step 6: Add a Data Source<\/h2>\n\n\n\n<p>Grafana needs at least one data source to display anything useful. The most common pairing is Grafana with <a href=\"https:\/\/computingforgeeks.com\/install-prometheus-node-exporter-rocky-almalinux\/\" target=\"_blank\" rel=\"noreferrer noopener\">Prometheus and Node Exporter<\/a> for system metrics monitoring.<\/p>\n\n\n\n<p>To add a data source:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>Connections<\/strong> > <strong>Data sources<\/strong> in the left sidebar<\/li>\n\n\n\n<li>Click <strong>Add data source<\/strong><\/li>\n\n\n\n<li>Select your data source type (Prometheus, InfluxDB, MySQL, PostgreSQL, etc.)<\/li>\n\n\n\n<li>Enter the connection URL and authentication details<\/li>\n\n\n\n<li>Click <strong>Save &#038; test<\/strong> to verify the connection<\/li>\n<\/ul>\n\n\n\n<p>Once connected, you can import pre-built dashboards from the <a href=\"https:\/\/grafana.com\/grafana\/dashboards\/\" target=\"_blank\" rel=\"noreferrer noopener\">Grafana dashboard library<\/a> or build your own from scratch. For example, you can <a href=\"https:\/\/computingforgeeks.com\/monitor-postgresql-with-prometheus-grafana\/\" target=\"_blank\" rel=\"noreferrer noopener\">monitor PostgreSQL with Prometheus and Grafana<\/a> using community dashboards that give you immediate visibility into database performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optional: Run Grafana in a Container<\/h2>\n\n\n\n<p>If you prefer containers over system packages, Grafana also ships as an official Docker image. See our guide on <a href=\"https:\/\/computingforgeeks.com\/how-to-run-grafana-server-in-docker-container\/\" target=\"_blank\" rel=\"noreferrer noopener\">running Grafana Server in a Docker container<\/a> for that approach.<\/p>\n\n\n\n<p>For Kubernetes environments, you can deploy Grafana alongside Prometheus using Helm charts &#8211; covered in our guide on <a href=\"https:\/\/computingforgeeks.com\/install-prometheus-grafana-kubernetes\/\" target=\"_blank\" rel=\"noreferrer noopener\">installing Prometheus and Grafana on Kubernetes<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Grafana OSS is now installed and running on Fedora 42 with the official RPM repository configured for automatic updates. You have the systemd service enabled, the firewall open on port 3000, and the web interface ready for dashboard creation.<\/p>\n\n\n\n<p>For production deployments, consider placing Grafana behind a reverse proxy with TLS termination (Nginx or Apache), switching the backend database from SQLite to PostgreSQL or MySQL for better concurrency, and setting up LDAP or OAuth authentication for team access control.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Grafana is an open source analytics and interactive visualization platform. It connects to a wide range of data sources &#8211; Prometheus, InfluxDB, Elasticsearch, PostgreSQL, MySQL, and many others &#8211; and turns raw metrics into dashboards, graphs, and alerts you can act on. This guide walks through installing Grafana OSS 12.x on Fedora 42 from the &#8230; <a title=\"How To Install Grafana on Fedora 42\" class=\"read-more\" href=\"https:\/\/computingforgeeks.com\/install-grafana-fedora\/\" aria-label=\"Read more about How To Install Grafana on Fedora 42\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":4830,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,299,50,165],"tags":[392,342],"class_list":["post-4827","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","category-how-to","category-linux-tutorials","category-monitoring","tag-grafana","tag-monitoring"],"_links":{"self":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/4827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/comments?post=4827"}],"version-history":[{"count":1,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/4827\/revisions"}],"predecessor-version":[{"id":163157,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/posts\/4827\/revisions\/163157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media\/4830"}],"wp:attachment":[{"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/media?parent=4827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/categories?post=4827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/computingforgeeks.com\/wp-json\/wp\/v2\/tags?post=4827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}