mirror of
https://gitlab.com/TECHNOFAB/coder-templates.git
synced 2025-12-12 02:00:11 +01:00
chore: add /etc/os-release for coder stat to work
This commit is contained in:
parent
1392cb7d0c
commit
7da286dcfe
2 changed files with 33 additions and 0 deletions
|
|
@ -15,6 +15,36 @@
|
|||
coder_agent."coder" = {
|
||||
arch = "\${var.arch}";
|
||||
os = "linux";
|
||||
metadata = [
|
||||
{
|
||||
display_name = "Container CPU Usage";
|
||||
key = "0_cpu_usage";
|
||||
script = "coder stat cpu --host=false";
|
||||
interval = 10;
|
||||
timeout = 1;
|
||||
}
|
||||
{
|
||||
display_name = "Container RAM Usage";
|
||||
key = "1_ram_usage";
|
||||
script = "coder stat mem --host=false";
|
||||
interval = 10;
|
||||
timeout = 1;
|
||||
}
|
||||
{
|
||||
display_name = "Home Disk";
|
||||
key = "2_home_disk";
|
||||
script = "coder stat disk --path $${HOME}";
|
||||
interval = 60;
|
||||
timeout = 1;
|
||||
}
|
||||
{
|
||||
display_name = "Nix Store Disk";
|
||||
key = "3_nix_store_disk";
|
||||
script = "coder stat disk --path /nix";
|
||||
interval = 60;
|
||||
timeout = 1;
|
||||
}
|
||||
];
|
||||
};
|
||||
coder_script."git_clone" = {
|
||||
agent_id = "\${coder_agent.coder.id}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue