Tianji is an open-source, all-in-one insight hub that combines website analytics, uptime monitoring, server status, and telemetry into a single, privacy-focused platform.
What is Tianji?
Tianji is a self-hosted platform that aggregates data from website visitors, servers, and Docker containers, providing dashboards for analytics, uptime, and status. It runs on any system with Docker and is developed by the open-source community under the leadership of moonrailgun. Tianji takes input from website JavaScript snippets, server agents, and Docker daemon, and outputs real-time dashboards, status pages, and telemetry reports.
Key Features
- Website Analytics — Tracks page views, unique visitors, and page-level metrics with privacy-first, cookie-free tracking, compliant with GDPR and CCPA.
- Uptime Monitor — Continuously checks the availability and response time of websites and services from multiple locations.
- Server Status — Monitors CPU, memory, disk, and network usage on remote servers via lightweight agents.
- Docker Status — Tracks the state, resource usage, and logs of Docker containers on one or more hosts.
- Status Page — Creates a public-facing status page that displays the current health of services and past incidents.
- Telemetry — Collects custom metrics from applications or devices via HTTP API or Prometheus integration.
- Survey & Feeds — Embeds feedback forms and displays social feeds directly within the dashboard.
- OpenAPI — Provides a comprehensive REST API for programmatic access to all monitored data and configuration.
- Multi-language Support — Interface available in English, German, French, Japanese, Polish, Portuguese, Russian, and Chinese.
Who is it for?
- Independent developers who want a single, self-hosted solution to replace separate tools like Google Analytics, Uptime Robot, and Grafana. They can deploy Tianji in minutes with Docker Compose.
- Small to medium teams that need to monitor multiple services and share a status page with customers, without paying per-seat fees.
- Privacy-conscious organizations that require on-premises data storage and full compliance with GDPR/CCPA, avoiding third-party cookies and data leaks.
What can you do with Tianji?
- Track website visitor behavior without using cookies, gaining insights into traffic sources, popular pages, and user geography—all while respecting privacy.
- Monitor server and container health from a single pane, setting up alerts for downtime, high CPU, or disk space thresholds.
- Build a professional status page that updates automatically, keeping users informed about service outages and maintenance.
- Collect custom telemetry from IoT devices, APIs, or any system that can send HTTP requests, and visualize it alongside your other metrics.
How does Tianji work?
Tianji is deployed via Docker Compose with a single command. For website analytics, you add a JavaScript snippet to your site's HTML. For server monitoring, you install a small agent on each target machine. For Docker monitoring, Tianji connects to your Docker socket or API. All data is stored in a built-in database and displayed through a web dashboard. The OpenAPI allows custom integrations and automation.