Skip to content

Commit 0abc222

Browse files
FEATURE (priorities): Update priorities
1 parent 31685f7 commit 0abc222

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

backend/internal/features/monitoring/postgres/metrics/service_test.go

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,13 @@ func Test_GetMetricsWithFilterByType_FilterWorks(t *testing.T) {
272272
}
273273

274274
// Test filtering by System RAM type
275-
systemRamMetrics, err := service.GetMetrics(testUser, database.ID, MetricsTypeSystemRAM, from, to)
275+
systemRamMetrics, err := service.GetMetrics(
276+
testUser,
277+
database.ID,
278+
MetricsTypeSystemRAM,
279+
from,
280+
to,
281+
)
276282
assert.NoError(t, err)
277283
assert.Len(t, systemRamMetrics, 1)
278284
for _, metric := range systemRamMetrics {
@@ -287,7 +293,13 @@ func Test_GetMetricsWithFilterByType_FilterWorks(t *testing.T) {
287293

288294
// Test time filtering - get only recent metrics (last hour)
289295
recentFrom := now.Add(-1 * time.Hour)
290-
recentRamMetrics, err := service.GetMetrics(testUser, database.ID, MetricsTypeDbRAM, recentFrom, to)
296+
recentRamMetrics, err := service.GetMetrics(
297+
testUser,
298+
database.ID,
299+
MetricsTypeDbRAM,
300+
recentFrom,
301+
to,
302+
)
291303
assert.NoError(t, err)
292304
assert.Len(t, recentRamMetrics, 1) // Only the metric from 1 hour ago
293305
assert.Equal(t, float64(2048000), recentRamMetrics[0].Value)

contribute/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ Backups flow:
8686
Notifications flow:
8787

8888
- add Mattermost
89-
- add MS Teams
9089

9190
Extra:
9291

@@ -99,6 +98,7 @@ Monitoring flow:
9998

10099
- add system metrics (CPU, RAM, disk, IO) (in progress by Rostislav Dugin)
101100
- add queries stats (slowest, most frequent, etc. via pg_stat_statements)
101+
- add triggering backups and restores via API
102102
- add alerting for slow queries (listen for slow query and if they reach >100ms - send message)
103103
- add alerting for high resource usage (listen for high resource usage and if they reach >90% - send message)
104104
- add DB size distribution chart (tables, indexes, etc.)

0 commit comments

Comments
 (0)