App Store template
Tianji icon

Tianji

Tianji: Insight into everything, Website Analytics + Uptime Monitor + Server Status. not only another GA alternatives

Launch in your Sealos workspace.

Tianji template preview
Template previewFull screenshot
Template deployments
11 on Sealos
Deployment
Your own instance
Category
Monitoring

About this template

Overview

Tianji combines website analytics, uptime monitoring, and server status into one lightweight insight hub. This template deploys Tianji 1.34.0 on Sealos Cloud with managed PostgreSQL 16.4.

From the documentation

Tianji runs as a Node.js web application that serves the dashboard, telemetry APIs, and background reporting from one container. PostgreSQL stores workspaces, websites, monitors, and audit data. Sealos provisions the database, creates the tianji database idempotently, and injects connection credentials through Kubernetes secrets.

How to deploy Tianji

  1. Choose Deploy now to start Tianji in your Sealos workspace.
  2. Review ALLOW_REGISTER, ALLOW_OPENAPI in the deployment form.
  3. Launch the template, then inspect the application status and resource cards in Canvas.

Resources to plan for

Start with the resources defined by the Tianji template. Review CPU, memory, persistent storage, and network allocations for every service in Canvas. Capacity needs depend on your data and workload; monitor usage as they grow.

Template configuration and setup

Access after deployment

Use the application URL or connection details shown in Canvas. Follow the deployment guide for first-time account setup or client configuration, and keep generated credentials available for that step.

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 Tianji on Sealos

Tianji combines website analytics, uptime monitoring, and server status into one lightweight insight hub. This template deploys Tianji 1.34.0 on Sealos Cloud with managed PostgreSQL 16.4.

Application Screenshot

About Hosting Tianji

Tianji runs as a Node.js web application that serves the dashboard, telemetry APIs, and background reporting from one container. PostgreSQL stores workspaces, websites, monitors, and audit data. Sealos provisions the database, creates the tianji database idempotently, and injects connection credentials through Kubernetes secrets.

Registration is enabled by default so the first visitor can create the owner account. After the first account exists, you can disable registration from the deployment inputs if you want a private instance.

Common Use Cases

  • Website Analytics: Track page views, sessions, and visitor trends without sending data to a third-party GA service.
  • Uptime Monitoring: Watch HTTP endpoints and alert when services become unavailable.
  • Server Status: Collect lightweight host metrics through Tianji reporters.
  • Product Telemetry: Gather deployment and usage signals for self-hosted products.
  • Team Insight Hub: Share one workspace for analytics, monitors, and status pages.

Dependencies for Tianji Hosting

The Sealos template includes the Tianji application Deployment, Service, Ingress, a PostgreSQL 16.4 Cluster, and a one-shot init Job that creates the tianji database.

Deployment Dependencies

Implementation Details

Architecture Components

This template deploys these resources:

  • Tianji Deployment: Runs moonrailgun/tianji:1.34.0 and exposes port 12345.
  • Service and Ingress: Publishes the dashboard over HTTPS on the Sealos public domain.
  • PostgreSQL Cluster: Stores application data with KubeBlocks PostgreSQL 16.4.0.
  • PostgreSQL Init Job: Waits for PostgreSQL readiness and creates the tianji database if it does not exist.
Resource Allocation
ComponentCPU RequestCPU LimitMemory RequestMemory LimitStorage
Tianji50m500m102Mi1024Mi-
PostgreSQL50m500m51Mi512Mi1Gi
PostgreSQL Init Job10m100m12Mi128Mi-
Configuration
  • Tianji version: 1.34.0
  • PostgreSQL version: 16.4.0
  • Port: 12345
  • JWT secret: Generated automatically per deployment
  • ALLOW_REGISTER: Defaults to true so the first user can sign up
  • ALLOW_OPENAPI: Defaults to true
  • PUBLIC_URL: Set to the Sealos HTTPS Ingress URL
  • Probe profile: HTTP probes on / aligned with the official Helm chart

Why Deploy Tianji on Sealos?

  • One-Click Deployment: Open the template page, click Deploy Now, and launch Tianji without writing Kubernetes YAML.
  • Managed PostgreSQL: Sealos creates and wires the database for you.
  • Automatic HTTPS Access: The dashboard is available on a public Sealos domain with TLS.
  • Simple Operations: Use the Canvas, AI dialog, and resource cards to inspect status or adjust resources.
  • Pay-as-You-Go Resources: Start from the tested minimum profile and scale when traffic grows.

Deployment Guide

  1. Open the Tianji template and click Deploy Now.
  2. Configure the parameters in the popup dialog:
    • ALLOW_REGISTER: Keep true for the first owner signup; set false later for a private instance.
    • ALLOW_OPENAPI: Enable or disable OpenAPI access.
  3. Wait for deployment to complete, typically 2-3 minutes. After deployment, you will be redirected to the Canvas. For later changes, describe your requirements in the AI dialog or click the relevant resource cards to modify settings.
  4. Open the public URL shown in the Canvas.

Login and Registration

  1. Open the Tianji URL and go to the register page (/register).
  2. Create the first account with a username and password. The first registered user becomes the workspace owner.
  3. Sign in on /login with the same username and password.

If registration is disabled (ALLOW_REGISTER=false) and no user exists yet, update the Deployment input to allow registration, create the owner account, then optionally disable registration again.

Configuration

After deployment, configure Tianji through:

  • Tianji UI: Create websites, monitors, status pages, and workspace settings.
  • AI Dialog: Describe resource or environment changes and let Sealos apply updates.
  • Resource Cards: Open the Deployment, Ingress, or PostgreSQL cards in Canvas for direct changes.

Scaling

Start with the default 500m CPU / 1024Mi memory profile. Cold start runs Prisma migrations and the Node.js runtime; live smoke tests stayed around one quarter of the 1024Mi limit after login. Increase memory if lighthouse or Chromium-backed features run frequently, and increase PostgreSQL storage when analytics retention grows.

Troubleshooting

Cannot register an account

Confirm ALLOW_REGISTER is true. The first account must be created through the register page before you disable registration.

Application stays Unavailable after deploy

Wait for PostgreSQL and the pg-init Job to finish creating the tianji database. Tianji also runs Prisma migrations on startup, which can take a few minutes on first boot.

Login fails after registration

Use the username and password created on /register. Tianji authenticates with username/password, not email.

Additional Resources

License

This Sealos template is provided under the repository license for Sealos templates. Tianji itself is distributed under the Apache-2.0 license.

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