Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ No modules.
| <a name="input_logs_agent_image_version"></a> [logs\_agent\_image\_version](#input\_logs\_agent\_image\_version) | The version of the Logs agent image to deploy. | `string` | `"1.7.0@sha256:50357cf3d3c7f0e649ce2ad044ace154d7eb6984847e70b1c052a6b7e285c548"` | no |
| <a name="input_logs_agent_init_image_version"></a> [logs\_agent\_init\_image\_version](#input\_logs\_agent\_init\_image\_version) | The version of the Logs agent init container image to deploy. | `string` | `"1.7.0@sha256:20acbf81ea70135644d12b6505476b54ed4bfe0db8f1571dee8215c03689cfd8"` | no |
| <a name="input_logs_agent_log_source_namespaces"></a> [logs\_agent\_log\_source\_namespaces](#input\_logs\_agent\_log\_source\_namespaces) | The list of namespaces from which logs should be forwarded by agent. If namespaces are not listed, logs from all namespaces will be sent. | `list(string)` | `[]` | no |
| <a name="input_logs_agent_multi_process_workers"></a> [logs\_agent\_multi\_process\_workers](#input\_logs\_agent\_multi\_process\_workers) | Specifies the number of multi-process workers to launch. Each worker runs in a separate process, enabling agent to utilize multiple features designed for multi-process operation. | `number` | `4` | no |
| <a name="input_logs_agent_name"></a> [logs\_agent\_name](#input\_logs\_agent\_name) | The name of the Logs agent. The name is used in all Kubernetes and Helm resources in the cluster. | `string` | `"logs-agent"` | no |
| <a name="input_logs_agent_namespace"></a> [logs\_agent\_namespace](#input\_logs\_agent\_namespace) | The namespace where the Logs agent is deployed. The default value is `ibm-observe`. | `string` | `"ibm-observe"` | no |
| <a name="input_logs_agent_resources"></a> [logs\_agent\_resources](#input\_logs\_agent\_resources) | The resources configuration for cpu/memory/storage. [Learn More](https://cloud.ibm.com/docs/cloud-logs?topic=cloud-logs-agent-helm-template-clusters#agent-helm-template-clusters-chart-options-resources) | <pre>object({<br/> limits = object({<br/> cpu = string<br/> memory = string<br/> })<br/> requests = object({<br/> cpu = string<br/> memory = string<br/> })<br/> })</pre> | <pre>{<br/> "limits": {<br/> "cpu": "500m",<br/> "memory": "3Gi"<br/> },<br/> "requests": {<br/> "cpu": "100m",<br/> "memory": "1Gi"<br/> }<br/>}</pre> | no |
Expand Down
10 changes: 10 additions & 0 deletions ibm_catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,16 @@
}
]
},
{
"key": "logs_agent_multi_process_workers",
"value_constraints": [
{
"type": "regex",
"description": "The value provided for 'logs_agent_multi_process_workers' must be a positive integer (e.g., '1').",
"value": "^[1-9][0-9]*$"
}
]
},
{
"key": "log_filters",
"custom_config": {
Expand Down
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ resource "helm_release" "logs_agent" {
type = "string"
value = local.cluster_name
},
{
name = "outputWorkers"
value = var.logs_agent_multi_process_workers
},
{
name = "scc.create"
value = var.logs_agent_enable_scc
Expand Down
1 change: 1 addition & 0 deletions solutions/fully-configurable/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,5 @@ module "logs_agent" {
enable_annotations = var.enable_annotations
log_filters = var.log_filters
max_unavailable = var.max_unavailable
logs_agent_multi_process_workers = var.logs_agent_multi_process_workers
}
10 changes: 10 additions & 0 deletions solutions/fully-configurable/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,16 @@ variable "logs_agent_tolerations" {
}]
}

variable "logs_agent_multi_process_workers" {
type = number
default = 4
description = "Specifies the number of multi-process workers to launch. Each worker runs in a separate process, enabling agent to utilize multiple features designed for multi-process operation."
validation {
condition = can(regex("^[1-9][0-9]*$", var.logs_agent_multi_process_workers))
error_message = "logs_agent_multi_process_workers must be a positive integer (e.g., '1')."
}
}

variable "logs_agent_resources" {
description = "The resources configuration for cpu/memory/storage. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-logs-agent/blob/main/solutions/fully-configurable/DA-types.md#configuring-logs-agent-resources)."
type = object({
Expand Down
10 changes: 10 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,16 @@ variable "logs_agent_iam_environment" {
}
}

variable "logs_agent_multi_process_workers" {
type = number
default = 4
description = "Specifies the number of multi-process workers to launch. Each worker runs in a separate process, enabling agent to utilize multiple features designed for multi-process operation."
validation {
condition = can(regex("^[1-9][0-9]*$", var.logs_agent_multi_process_workers))
error_message = "logs_agent_multi_process_workers must be a positive integer (e.g., '1')."
}
}

variable "logs_agent_additional_metadata" {
description = "The list of additional metadata fields to add to the routed logs."
type = list(object({
Expand Down