Files
coder/provisioner/terraform/testdata/multiple-apps/multiple-apps.tfstate.json
T
Vincent Vielle 7cbd77fd94 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.
2025-02-04 18:45:33 +01:00

169 lines
4.7 KiB
JSON
Generated

{
"format_version": "1.0",
"terraform_version": "1.9.8",
"values": {
"root_module": {
"resources": [
{
"address": "coder_agent.dev1",
"mode": "managed",
"type": "coder_agent",
"name": "dev1",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"arch": "amd64",
"auth": "token",
"connection_timeout": 120,
"dir": null,
"display_apps": [
{
"port_forwarding_helper": true,
"ssh_helper": true,
"vscode": true,
"vscode_insiders": false,
"web_terminal": true
}
],
"env": null,
"id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"init_script": "",
"metadata": [],
"motd_file": null,
"order": null,
"os": "linux",
"resources_monitoring": [],
"shutdown_script": null,
"startup_script": null,
"startup_script_behavior": "non-blocking",
"token": "6db086ba-440b-4e66-8803-80e021cda61a",
"troubleshooting_url": null
},
"sensitive_values": {
"display_apps": [
{}
],
"metadata": [],
"resources_monitoring": [],
"token": true
}
},
{
"address": "coder_app.app1",
"mode": "managed",
"type": "coder_app",
"name": "app1",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "64803468-4ec4-49fe-beb7-e65eaf8e01ca",
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app1",
"subdomain": null,
"url": null
},
"sensitive_values": {
"healthcheck": []
},
"depends_on": [
"coder_agent.dev1"
]
},
{
"address": "coder_app.app2",
"mode": "managed",
"type": "coder_app",
"name": "app2",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [
{
"interval": 5,
"threshold": 6,
"url": "http://localhost:13337/healthz"
}
],
"hidden": false,
"icon": null,
"id": "df3f07ab-1796-41c9-8e7d-b957dca031d4",
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app2",
"subdomain": true,
"url": null
},
"sensitive_values": {
"healthcheck": [
{}
]
},
"depends_on": [
"coder_agent.dev1"
]
},
{
"address": "coder_app.app3",
"mode": "managed",
"type": "coder_app",
"name": "app3",
"provider_name": "registry.terraform.io/coder/coder",
"schema_version": 1,
"values": {
"agent_id": "cae4d590-8332-45b6-9453-e0151ca4f219",
"command": null,
"display_name": null,
"external": false,
"healthcheck": [],
"hidden": false,
"icon": null,
"id": "fdb06774-4140-42ef-989b-12b98254b27c",
"open_in": "slim-window",
"order": null,
"share": "owner",
"slug": "app3",
"subdomain": false,
"url": null
},
"sensitive_values": {
"healthcheck": []
},
"depends_on": [
"coder_agent.dev1"
]
},
{
"address": "null_resource.dev",
"mode": "managed",
"type": "null_resource",
"name": "dev",
"provider_name": "registry.terraform.io/hashicorp/null",
"schema_version": 0,
"values": {
"id": "8206837964247342986",
"triggers": null
},
"sensitive_values": {},
"depends_on": [
"coder_agent.dev1"
]
}
]
}
}
}