Skip to content

kanshi-dev/demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Kanshi Monitoring System

Kanshi is a lightweight, high-performance monitoring solution. It features a central core service for data collection, a TimescaleDB-powered database for efficient metrics storage, and a beautiful Dashboard for real-time visualization.

🏛️ Architecture

The system consists of five main components:

  • Kanshi Core: The central hub that receives and processes metrics.
  • TimescaleDB: A time-series database optimized for high-volume metrics storage.
  • Kanshi Dashboard: A user-friendly web interface to visualize your infrastructure.
  • Kanshi Agent: A lightweight binary installed on servers to collect and report data.
  • Kanshi Infra: Terraform modules for automated infrastructure provisioning.

🛠️ Prerequisites

Ensure you have the following installed:


🏁 Quick Start

Get your monitoring stack up and running in 4 simple steps:

1. Clone the Repository

Start by cloning the demo stack to your local machine:

git clone https://github.com/kanshi-dev/demo.git
cd demo

2. Set Up Environment

Copy the example environment file and update your credentials:

cp .env.example .env

The default configuration in .env is:

DB_HOST="db"
DB_PORT="5432"
DB_USER="kanshi"
DB_PASSWORD="your_secure_password_here"
DB_NAME="kanshi"

3. Launch the Stack

Start the core service, dashboard, and database:

docker-compose up -d

This command will:

  • ✅ Initialize TimescaleDB with the required schema.
  • ✅ Start Kanshi Core on ports 8080 (HTTP) and 50051 (gRPC).
  • ✅ Start the Dashboard on port 80.

4. Deploy an Agent

Download the latest Kanshi Agent (v0.1.0) for your platform.

Run it on any machine you want to monitor, pointing it to your Core service:

# Replace 'your_core_ip' with the actual IP/hostname of your Kanshi Core
KANSHI_CORE_ADDR=your_core_ip:50051 ./kanshi-agent

📊 Visualization

Once the stack is running, open your browser and navigate to: 👉 http://localhost

Agent Overview

Agents

Detailed Metrics

Agent Details


🗄️ Database Details

The system automatically configures the database using core-schema.sql:

  • Metrics: A hypertable for time-series data (agent_id, name, value, timestamp, tags).
  • Agents: Metadata about monitored hosts (OS, platform, hardware specs).

About

A demo for Kanshi Agent,Core and Database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors