Implement Monlet MVP stack and UI updates

This commit is contained in:
Stanislav Rossovskii
2026-05-27 10:01:59 +04:00
parent dcea096327
commit edc51e9c59
145 changed files with 15618 additions and 248 deletions

View File

@@ -0,0 +1,42 @@
{
"title": "Monlet Overview",
"uid": "monlet-overview",
"schemaVersion": 39,
"version": 1,
"refresh": "30s",
"time": { "from": "now-1h", "to": "now" },
"panels": [
{
"id": 1,
"type": "stat",
"title": "Agents by status",
"targets": [{ "expr": "monlet_server_agents", "legendFormat": "{{status}}" }],
"gridPos": { "h": 6, "w": 8, "x": 0, "y": 0 }
},
{
"id": 2,
"type": "stat",
"title": "Open incidents",
"targets": [{ "expr": "monlet_server_open_incidents" }],
"gridPos": { "h": 6, "w": 8, "x": 8, "y": 0 }
},
{
"id": 3,
"type": "timeseries",
"title": "Events/sec by result",
"targets": [
{ "expr": "rate(monlet_server_events_total[1m])", "legendFormat": "{{result}}" }
],
"gridPos": { "h": 8, "w": 16, "x": 0, "y": 6 }
},
{
"id": 4,
"type": "timeseries",
"title": "Notifications/sec by notifier+result",
"targets": [
{ "expr": "rate(monlet_server_notifications_total[1m])", "legendFormat": "{{notifier}} {{result}}" }
],
"gridPos": { "h": 8, "w": 16, "x": 0, "y": 14 }
}
]
}

View File

@@ -0,0 +1,7 @@
apiVersion: 1
providers:
- name: monlet
folder: ""
type: file
options:
path: /var/lib/grafana/dashboards

View File

@@ -0,0 +1,7 @@
apiVersion: 1
datasources:
- name: Prometheus
type: prometheus
access: proxy
url: http://prometheus:9090
isDefault: true