init monlet repo with stage 0-2 (docs, contract, agent MVP)

This commit is contained in:
Stanislav Rossovskii
2026-05-26 16:41:27 +04:00
commit dcea096327
42 changed files with 3183 additions and 0 deletions

5
examples/README.md Normal file
View File

@@ -0,0 +1,5 @@
# Examples
Examples for checks, configs, and local demos.
Stage 0 includes only placeholders.

View File

@@ -0,0 +1,3 @@
#!/bin/sh
echo "ok"
exit 0

29
examples/event-batch.json Normal file
View File

@@ -0,0 +1,29 @@
{
"agent_id": "host-01.prod",
"events": [
{
"event_id": "018f5b3a-0a3d-7c5b-9a1e-2c4f6a8b0c11",
"check_id": "disk_root",
"observed_at": "2026-05-26T12:00:05Z",
"status": "ok",
"exit_code": 0,
"duration_ms": 42,
"output": "/ 18% used (180G/1.0T)",
"output_truncated": false,
"notification_owner": "server",
"incident_key": "host-01.prod:disk_root"
},
{
"event_id": "018f5b3a-1f7e-7d2a-8b3c-9e1d2f3a4b5c",
"check_id": "postgres_up",
"observed_at": "2026-05-26T12:00:05Z",
"status": "critical",
"exit_code": 2,
"duration_ms": 1503,
"output": "could not connect to server: Connection refused",
"output_truncated": false,
"notification_owner": "server",
"incident_key": "host-01.prod:postgres_up"
}
]
}

12
examples/heartbeat.json Normal file
View File

@@ -0,0 +1,12 @@
{
"agent_id": "host-01.prod",
"observed_at": "2026-05-26T12:00:00Z",
"hostname": "host-01.prod.example.com",
"version": "0.1.0",
"mode": "push_only",
"labels": {
"env": "prod",
"region": "eu-central-1",
"role": "api"
}
}