HSM: self-hosted monitoring for your applications and machines

HSM (Hierarchical Sensor Monitoring) is a monitoring server that you run yourself. Your
applications and machines send values to it over HTTPS. HSM keeps their history as a tree of
sensors and shows it in a web UI. When a value crosses your rule or stops arriving, HSM sends a
message to Telegram, Slack or Mattermost. An AI agent can set HSM up and manage it through the
REST API or the built-in MCP server.
To try it, let your AI agent set it up or follow the
quick start by hand.
How it works
- A source sends a value to a path such as
database/query_time_ms, signed with an access key.
- HSM creates the sensor on the first value and stores every value after that.
- HSM checks the sensor's alert rules on each value, and watches for silence.
- When a rule fires, HSM sends a message to the chats you chose.
- You, your scripts or your AI agent read the current state and history.
flowchart LR
A["Windows agent / Linux probe"] --> S
B["Your application<br/>.NET or C++ library"] --> S
C["Scripts<br/>Sensor API"] --> S
S["HSM server<br/>tree, history, alerts"] --> N["Telegram / Slack / Mattermost"]
S --> U["Web UI"]
S <--> M["AI agent or your tools<br/>REST API or MCP"]
| Term | Meaning |
|---|
| Product | A container for one application, service or machine, with its own access keys |
| Sensor | One stream of values, identified by its path inside a product |
| Access key | The credential a source uses to send data to one product |
| API token | The personal credential your scripts and AI agent use to manage HSM, over the REST API and MCP. Created under Personal tokens |
| Alert | A rule on a sensor: a condition, and where to send the message |
Ways to send data
| Source | Use it when | You need |
|---|
| HSM Agent | You want CPU, memory, disk and network of a Windows machine | Administrator rights on that machine |
| HSM Linux probe | You want the same for a Debian host | root on that host |
| HSMDataCollector | Your .NET application reports its own metrics | .NET 8 or .NET Framework 4.7.2 |
| Native collector | Your C++ application reports its own metrics | C++17; the hsm-collector vcpkg port |
| Sensor API | Anything that can make an HTTPS request | An access key |
The Windows agent and the Linux probe come as a ready bundle that already holds the product's
access key: download it under Configuration → Downloads, or let your AI agent get a one-time
link.
The .NET package is HSMDataCollector.HSMDataCollector:
dotnet add package HSMDataCollector.HSMDataCollector
Screenshots
A sensor with a day of history. Its rule fired when the value went above 500.

A product at a glance. The error of one sensor is visible on its folder and its product.

Why HSM
- You learn about silence first. A service that stops reporting raises an alert, not only a
number that is too high.
- Your application sends its own numbers: queue length, last error, connection status. The .NET
and C++ libraries queue values and send them in batches.
- The data stays with you. HSM runs on your own server.
- The structure is yours. The path you send is the tree you see.
- Alerts fit your working day. Schedules, confirmation periods and templates for many sensors.
- Scripts and AI agents can do the work. Ask your agent what happened last night: it reads the
history through MCP or the REST API.
Look elsewhere if
- You want a hosted service. HSM has no cloud offering.
- You need alerts by email, SMS or a paging service. HSM sends messages only to Telegram, Slack and
Mattermost.
- You need log search or distributed tracing. HSM stores sensor values and files.
- You need a cluster with failover. HSM runs as one server with an embedded database.
- Your sources can only be scraped (pull model). HSM waits for them to send.