You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
11 months ago | |
|---|---|---|
| .. | ||
| README.md | 11 months ago | |
| main.tf | 11 months ago | |
README.md
| display_name | description | maintainer_github | verified | tags | |
|---|---|---|---|---|---|
| Monitoring | Monitoring of workspace resources | coder | true |
|
Monitoring
This module adds monitoring of workspace resources.
module "monitoring" {
source = "registry.coder.com/modules/monitoring/coder"
version = "1.0.0"
agent_id = coder_agent.dev.id
}
Examples
module "monitoring" {
source = "registry.coder.com/modules/monitoring/coder"
version = "1.0.0"
agent_id = coder_agent.dev.id
}
Enable/Disable
You can customize the monitoring by setting the enabled, memory_enabled, and disk_enabled variables.
module "monitoring" {
source = "registry.coder.com/modules/monitoring/coder"
version = "1.0.0"
agent_id = coder_agent.dev.id
enabled = false
memory_enabled = true
disk_enabled = false
}
Customize Thresholds
You can customize the thresholds by setting the threshold, memory_threshold, and disk_threshold variables.
module "monitoring" {
source = "registry.coder.com/modules/monitoring/coder"
version = "1.0.0"
agent_id = coder_agent.dev.id
threshold = 90
memory_threshold = 95
disk_threshold = 90
}
Customize Disks
You can customize the disks by setting the disks variable.
module "monitoring" {
source = "registry.coder.com/modules/monitoring/coder"
version = "1.0.0"
agent_id = coder_agent.dev.id
disks = ["/"]
}