Skip to content

Commit b689f46

Browse files
authored
Merge pull request #130 from GabrielSalla/create-dashboard
Create dashboard
2 parents daa412a + 1881ca5 commit b689f46

File tree

21 files changed

+2055
-3
lines changed

21 files changed

+2055
-3
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,17 @@ Common use cases:
9090

9191
State machine-related issues often require several data checks and conditional logic to identify. These issues are typically difficult to capture using standard logs and metrics but can be easily addressed using Sentinela Monitoring.
9292

93+
# Dashboard
94+
Sentinela provides a web dashboard with 2 sections:
95+
1. an overview of the monitors and their alerts and issues
96+
2. a monitor editor, where you can create and edit monitors directly from the browser
97+
98+
**Overview**
99+
![dashboard overview](./docs/images/dashboard_overview.png)
100+
101+
**Editor**
102+
![dashboard monitor editor](./docs/images/dashboard_editor.png)
103+
93104
# Documentation
94105
1. [Overview](./docs/overview.md)
95106
2. [Building a Monitor](./docs/monitor.md)

configs/configs-scalable.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ application_queue:
3434
http_server:
3535
port: 8000
3636
log_level: error
37+
dashboard_enabled: true
3738

3839
time_zone: America/Sao_Paulo
3940

configs/configs.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ application_queue:
2929
http_server:
3030
port: 8000
3131
log_level: error
32+
dashboard_enabled: true
3233

3334
time_zone: America/Sao_Paulo
3435

docs/configuration_file.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,10 @@ application_queue:
5757
```
5858

5959
## HTTP Server
60-
- `http_server.port`: Integer. Port for the HTTP server.
60+
- `http_server`:
61+
- `port`: Integer. Port for the HTTP server.
62+
- `log_level`: String. Log level for the HTTP server. Can be `default`, `warning`, `error` or `none`. Defaults to `default`.
63+
- `dashboard_enabled`: Boolean. Flag to enable the Sentinela dashboard. Defaults to `false`.
6164

6265
## Time Zone
6366
- `time_zone`: String. Time zone to use for cron scheduling and notification messages.

docs/http_server.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# HTTP server
22
The HTTP server provides an API to interact with Sentinela. The available routes are organized into two main categories, based on the deployment setup.
33

4-
If the container is deployed with the **Controller** (either standalone or alongside the Executor in the same container), all routes are available, allowing interactions with Monitors, Issues, and Alerts.
4+
If the container is deployed with the **Controller** (either standalone or alongside the Executor in the same container), all routes are available, allowing interactions with Monitors, Issues, Alerts and the dashboard.
55

66
If the container is deployed with only the **Executor**, only base routes are available.
77

@@ -23,6 +23,11 @@ Exposes Prometheus-formatted metrics, enabling external monitoring and observabi
2323
# Interaction routes
2424
These routes are available only when the container deployment includes the **Controller** component.
2525

26+
## Dashboard
27+
**`/dashboard`**
28+
29+
Serves a simple dashboard interface, providing a quick way to create, enable or disable and change the monitors code.
30+
2631
## List monitors
2732
**`GET /monitors/list`**
2833

docs/images/dashboard_editor.png

86.4 KB
Loading

docs/images/dashboard_overview.png

77.2 KB
Loading

resources/kubernetes_template/config_map.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ data:
4040
http_server:
4141
port: 8000
4242
log_level: error
43+
dashboard_enabled: true
4344
4445
time_zone: America/Sao_Paulo
4546

0 commit comments

Comments
 (0)