mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
Generated
+729
-480
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user