feat: improve resources_monitoring for OOM & OOD monitoring (#16241)

As requested for [this
issue](https://github.com/coder/internal/issues/245) we need to have a
new resource `resources_monitoring` in the agent.

It needs to be parsed from the provisioner and inserted into a new db
table.
This commit is contained in:
Vincent Vielle
2025-02-04 18:45:33 +01:00
committed by GitHub
parent 8c265018c4
commit 7cbd77fd94
76 changed files with 3170 additions and 1041 deletions
+729 -480
View File
File diff suppressed because it is too large Load Diff
+17
View File
@@ -129,6 +129,7 @@ message Agent {
repeated Script scripts = 21;
repeated Env extra_envs = 22;
int64 order = 23;
ResourcesMonitoring resources_monitoring = 24;
}
enum AppSharingLevel {
@@ -137,6 +138,22 @@ enum AppSharingLevel {
PUBLIC = 2;
}
message ResourcesMonitoring {
MemoryResourceMonitor memory = 1;
repeated VolumeResourceMonitor volumes = 2;
}
message MemoryResourceMonitor {
bool enabled = 1;
int32 threshold = 2;
}
message VolumeResourceMonitor {
string path = 1;
bool enabled = 2;
int32 threshold = 3;
}
message DisplayApps {
bool vscode = 1;
bool vscode_insiders = 2;