Repository navigation
Getting Started
This page walks you through installing HSM and sending your first sensor value in about 5 minutes.
The easiest way to run HSM is with Docker Compose.
1. Download the compose file:
curl -O https://raw.githubusercontent.com/SoftFx/Hierarchical-Sensor-Monitoring/master/docker-compose.yml2. Start HSM:
docker compose up -d3. Open the web UI:
Navigate to https://localhost:44333 in your browser.
Accept the self-signed certificate warning if prompted.
Default credentials:
- Login:
default - Password:
default
Change the default password immediately after first login.
Ports:
| Port | Purpose |
|---|---|
44333 |
Web UI (HTTPS) |
44330 |
Sensor data ingestion (HTTPS) |
For other installation methods, see Installation.
Before sending data, you need a Product (a logical container for your sensors) and an Access Key to authenticate.
- Go to Products → click + Add product → enter a name → confirm
- Open the product → go to Access Keys → click + Add key
- Copy the generated key — you will use it in the next step
Install the NuGet package:
dotnet add package HSMDataCollectorMinimal setup:
using HSMDataCollector.Core;
var options = new CollectorOptions
{
ServerAddress = "https://localhost",
AccessKey = "YOUR_ACCESS_KEY"
};
var collector = new DataCollector(options);
// Optional: add built-in system sensors
collector.Windows.AddProcessMonitoringSensors()
.AddSystemMonitoringSensors();
await collector.Start();
// Send a custom value
var cpuSensor = collector.CreateDoubleSensor("MyApp/cpu_usage");
cpuSensor.AddValue(42.5);
// On application shutdown:
await collector.Stop();For full API reference, see HSM DataCollector.
Send a double value:
curl -X POST https://localhost:44330/api/sensors/double \
-H "Content-Type: application/json" \
-H "Key: YOUR_ACCESS_KEY" \
-d '{
"path": "MyApp/cpu_usage",
"value": 42.5,
"comment": "test value"
}'For all available endpoints, see REST API.
- Open
https://localhost:44333 - Go to Products → open your product
- You should see
MyApp/cpu_usagein the sensor tree with the value you sent
- Click on the sensor → open Alerts
- Click + Add alert
- Set a condition, e.g.:
- Property:
Value - Operation:
> - Target:
90
- Property:
- Set the message:
[$product] $sensor is high: $value% - Set destination: From parent (uses the product's default Telegram chats)
- Save
To receive the alert in Telegram, connect a chat first — see Telegram Setup.
- HSM DataCollector — full NuGet API reference
- Alerts Overview — all alert features
- Telegram Setup — connect notification chats
- Server Configuration — ports, TLS, backups
Getting Started
- Installation
- How It Works
- Core Concepts
- Server Configuration
- REST API
- MCP (AI agents)
- Server Self-Monitoring
- Sensor Types
- Table Sensors
- Large Files
- Sealed Sensor History
🔔 Alerts
📲 Telegram
HSM DataCollector (NuGet)
- Overview & API
- Quick Start
- Logging
- Statuses
- Sensor Settings
- Table Sensors
- Large Files
- Default sensors
HSM DataCollector (C++)
HSM Web UI
Grafana
Maintainers