App Store template
Grafana icon

Grafana

Build metrics dashboards with Grafana on Sealos. Keep dashboards and configuration on persistent storage, with SQLite by default and optional managed PostgreSQL.

Launch in your Sealos workspace.

Grafana template preview
Template previewFull screenshot
Template deployments
15 on Sealos
Deployment
Your own instance
Category
Monitoring

About this template

Overview

Build metrics dashboards with Grafana on Sealos. Keep dashboards and configuration on persistent storage, with SQLite by default and optional managed PostgreSQL.

From the documentation

Grafana runs as a single StatefulSet with persistent storage for dashboards, plugins, users, and local configuration. By default, Grafana uses its embedded SQLite database on the persistent volume for a compact self-hosted setup.

How to deploy Grafana

  1. Choose Deploy now and select SQLite or the optional managed PostgreSQL database.
  2. Launch the template and open the Grafana URL from Canvas.
  3. Sign in as admin with the generated admin_password, update the password when prompted, and connect a data source.

Resources to plan for

The Grafana container defaults to a 0.2 vCPU limit, 256 MiB memory limit, and a 1 GiB volume. Optional PostgreSQL adds a 0.5 vCPU limit, 512 MiB memory limit, and its own 1 GiB volume. Adjust capacity for your dashboard workload.

Template configuration and setup

Access after deployment

Open Grafana through its generated HTTPS URL. Prometheus, Loki, and other monitoring backends are data sources you connect separately; PostgreSQL stores Grafana application data.

Hosting and billing

Sealos monthly plans include compute, memory, storage, and traffic. Size your plan for all deployed services. Software licenses and external AI or API services may have separate terms and charges. Confirm the applicable plan and optional charges in Cost Center.

Compare Sealos resource plans
Read full documentationCollapse documentation

For current cloud charges, refer to Sealos plan pricing. Upstream documentation may reference earlier billing models.

Deploy and Host Grafana on Sealos

Grafana is an open-source analytics and visualization platform. This template deploys Grafana on Sealos Cloud with persistent storage and an optional managed PostgreSQL database.

Grafana Screenshot

About Hosting Grafana

Grafana runs as a single StatefulSet with persistent storage for dashboards, plugins, users, and local configuration. By default, Grafana uses its embedded SQLite database on the persistent volume for a compact self-hosted setup.

When use_postgresql is enabled, the template provisions a managed PostgreSQL 16.4 database and configures Grafana to store application data there. Sealos also provides the public HTTPS URL, service routing, and resource controls.

Common Use Cases

  • Metrics dashboards: Build dashboards from Prometheus, Graphite, PostgreSQL, and other data sources.
  • Operations monitoring: Track infrastructure health, application metrics, and alert trends.
  • Log and trace exploration: Connect Loki, Tempo, and related observability backends.
  • Team reporting: Share panels and dashboards with operators and product teams.

Dependencies for Grafana Hosting

The Sealos template includes the Grafana container, persistent storage, public HTTPS ingress, and optional PostgreSQL.

Deployment Dependencies
Implementation Details

Architecture Components:

  • Grafana StatefulSet: Runs the Grafana web application on port 3000.
  • Persistent volume: Stores /var/lib/grafana data.
  • Optional PostgreSQL: Stores Grafana metadata when use_postgresql is set to true.
  • Ingress and App: Publish the HTTPS web interface from Sealos.

Configuration:

  • Admin username is admin.
  • Admin password is generated automatically as admin_password.
  • User self-signup is disabled by default.
  • SQLite is the default storage mode; PostgreSQL is available through the deployment option.

License Information:

Grafana is licensed under AGPL-3.0. This Sealos template is provided under the repository license.

Why Deploy Grafana on Sealos?

Sealos is an AI-assisted Cloud Operating System built on Kubernetes that unifies the entire application lifecycle, from development in cloud IDEs to production deployment and management. By deploying Grafana on Sealos, you get:

  • One-Click Deployment: Deploy Grafana with a single click.
  • Persistent Storage Included: Keep dashboards and configuration across restarts.
  • Optional Managed Database: Use PostgreSQL for a more durable metadata store.
  • Instant Public Access: Receive an HTTPS URL automatically.
  • Easy Customization: Adjust resources, environment variables, and storage from the Canvas.

Deployment Guide

  1. Open the Grafana template and click Deploy Now.
  2. Choose whether to enable use_postgresql.
  3. Wait for deployment to complete. After deployment, you will be redirected to the Canvas.
  4. Open the Grafana URL and log in with:
    • Username: admin
    • Password: the generated admin_password value shown in your deployment parameters.
  5. Change the admin password when Grafana prompts you on first login.

Configuration

After deployment, configure Grafana through:

  • Grafana UI: Add data sources, dashboards, folders, and users.
  • AI Dialog: Describe resource or environment changes and let Sealos apply them.
  • Resource Cards: Click the StatefulSet, Service, Ingress, or PostgreSQL cards to update deployment settings.

Scaling

Grafana is deployed as a single replica because the default local storage and SQLite mode are single-writer. For larger deployments, enable PostgreSQL, keep shared plugin and data requirements in mind, and then adjust CPU and memory from the StatefulSet card.

Troubleshooting

Cannot log in
  • Cause: The generated admin password was copied incorrectly.
  • Solution: Check the admin_password deployment value and log in as admin.
Dashboards disappear after restart
  • Cause: The persistent volume was removed or replaced.
  • Solution: Keep the Grafana StatefulSet volume and PVC when customizing the deployment.

Additional Resources

License

This Sealos template is provided under the repository license. Grafana itself is licensed under AGPL-3.0.

From launch to everyday operations

Why deploy
on Sealos

A shorter path from an app you want to an app you can run. Sealos brings deployment and ongoing operations into one place.

  1. One-click deployment

    Start with a ready-made template. Review its configuration and launch from the Sealos console.

  2. Managed Kubernetes

    Run on managed infrastructure with built-in workload scheduling and recovery.

  3. Automatic HTTPS

    Give your application a public HTTPS endpoint with certificates managed for you.

  4. Persistent storage

    Keep application data on persistent volumes across container restarts.

  5. Room to grow

    Adjust CPU, memory, and replicas from the console as your workload changes.

One template. Connected resources.

You Get the Whole Stack

Sealos provisions the resources defined by your template and brings them together in your workspace.

  • App Service

    Container workloads with configurable CPU, memory, and replicas.

  • Public HTTPS URL

    An address for your app, with managed TLS certificates.

  • Database

    A database provisioned alongside your app when the template calls for one.

  • Persistent Volume

    Storage for the files and data your application needs to keep.

  • Environment Variables

    Application settings and secrets configured in one place.

  • Logs & Metrics

    Inspect container logs and resource usage from the console.

Resources and their configuration vary by template. Review the deployment form for this app’s exact setup.

Explore more production-ready templates.

More