You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| <aname="input_access_key"></a> [access\_key](#input\_access\_key)| Access key used by the IBM Cloud Monitoring agent to communicate with the instance |`string`| n/a | yes |
106
-
| <aname="input_access_key_secret"></a> [access\_key\_secret](#input\_access\_key\_secret)| The name of the secret which will store the accesskey. |`string`|`"sysdig-agent"`| no |
107
-
| <aname="input_add_cluster_name"></a> [add\_cluster\_name](#input\_add\_cluster\_name)| If true, configure the cloud monitoring agent to attach a tag containing the cluster name to all metric data. |`bool`|`true`| no |
106
+
| <aname="input_access_key_secret"></a> [access\_key\_secret](#input\_access\_key\_secret)| The name of a Kubernetes/Openshift secret containing an access-key entry. |`string`|`null`| no |
107
+
| <aname="input_add_cluster_name"></a> [add\_cluster\_name](#input\_add\_cluster\_name)| If true, configure the cloud monitoring agent to attach a tag containing the cluster name to all metric data. |`bool`|`false`| no |
108
108
| <aname="input_agent_image_repository"></a> [agent\_image\_repository](#input\_agent\_image\_repository)| The image repository to pull the Cloud Monitoring agent image from. |`string`|`"agent-slim"`| no |
109
109
| <aname="input_agent_image_tag_digest"></a> [agent\_image\_tag\_digest](#input\_agent\_image\_tag\_digest)| The image tag digest to use for the Cloud Monitoring agent. |`string`|`"13.9.1@sha256:14860d181a8b712c4150bb59e3ba0ff4be08959e2c45376b32c8eb7ff70461f9"`| no |
110
110
| <aname="input_agent_limits_cpu"></a> [agent\_limits\_cpu](#input\_agent\_limits\_cpu)| Specifies the CPU limit for the agent. |`string`|`"1"`| no |
111
111
| <aname="input_agent_limits_memory"></a> [agent\_limits\_memory](#input\_agent\_limits\_memory)| Specifies the memory limit for the agent. |`string`|`"1024Mi"`| no |
112
112
| <aname="input_agent_requests_cpu"></a> [agent\_requests\_cpu](#input\_agent\_requests\_cpu)| Specifies the CPU requested to run in a node for the agent. |`string`|`"1"`| no |
113
113
| <aname="input_agent_requests_memory"></a> [agent\_requests\_memory](#input\_agent\_requests\_memory)| Specifies the memory requested to run in a node for the agent. |`string`|`"1024Mi"`| no |
114
-
| <aname="input_agent_tags"></a> [agent\_tags](#input\_agent\_tags)| List of tags to associate to all matrics that the agent collects. NOTE: Use the 'add\_cluster\_name' variable to add the cluster name as a tag. |`list(string)`|`[]`| no |
114
+
| <aname="input_agent_tags"></a> [agent\_tags](#input\_agent\_tags)| Map of tags to associate to all matrics that the agent collects. NOTE: Use the 'add\_cluster\_name' variable to add the cluster name as a tag, e.g `ibm-containers-kubernetes-cluster-name: cluster_name`. |`map(string)`|`{}`| no |
115
+
| <aname="input_blacklisted_ports"></a> [blacklisted\_ports](#input\_blacklisted\_ports)| To blacklist ports, include the ports you wish to block network traffic and metrics from network ports. See https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_block_ports.|`list(number)`|`[]`| no |
115
116
| <aname="input_chart"></a> [chart](#input\_chart)| The name of the Helm chart to deploy. |`string`|`"sysdig-deploy"`| no |
116
117
| <aname="input_chart_location"></a> [chart\_location](#input\_chart\_location)| The location of the Cloud Monitoring agent helm chart. |`string`|`"https://charts.sysdig.com"`| no |
117
118
| <aname="input_chart_version"></a> [chart\_version](#input\_chart\_version)| The version of the Cloud Monitoring agent helm chart to deploy. |`string`|`"1.84.2"`| no |
# example of how to include / exclude metrics - more info https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_log_metrics
109
-
metrics_filter=[{ type ="exclude", name ="metricA.*" }, { type ="include", name ="metricB.*" }]
110
-
container_filter=[{ type ="exclude", parameter ="kubernetes.namespace.name", name ="kube-system" }]
# # example of how to include / exclude metrics - more info https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_log_metrics
117
+
# metrics_filter = [{ type = "exclude", name = "metricA.*" }, { type = "include", name = "metricB.*" }]
118
+
# container_filter = [{ type = "exclude", parameter = "kubernetes.namespace.name", name = "kube-system" }]
Copy file name to clipboardExpand all lines: main.tf
+24-24Lines changed: 24 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,6 @@ data "ibm_container_cluster_config" "cluster_config" {
30
30
locals {
31
31
# LOCALS
32
32
cluster_name=var.is_vpc_cluster? data.ibm_container_vpc_cluster.cluster[0].resource_name: data.ibm_container_cluster.cluster[0].resource_name# Not publically documented in provider. See https://github.com/IBM-Cloud/terraform-provider-ibm/issues/4485
description="Specify the type of endpoint to use to access the cluster configuration. Possible values: `default`, `private`, `vpe`, `link`. The `default` value uses the default endpoint of the cluster."
25
25
type=string
26
-
default="private"
27
-
nullable=false# use default if null is passed in
26
+
default="private"# Use 'private' for VPC clusters, 'default' for classic clusters
27
+
nullable=false# use default if null is passed in
28
28
}
29
29
30
30
variable"is_vpc_cluster" {
@@ -58,9 +58,9 @@ variable "access_key" {
58
58
59
59
variable"access_key_secret" {
60
60
type=string
61
-
description="The name of the secret which will store the accesskey."
62
-
default="sysdig-agent"
63
-
nullable=false
61
+
description="The name of a Kubernetes/Openshift secret containing an access-key entry."
description="To blacklist ports, include the ports you wish to block network traffic and metrics from network ports. See https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_block_ports."
81
+
default=[]
82
+
}
83
+
78
84
variable"metrics_filter" {
79
85
type=list(object({
80
-
type=string
81
-
name=string
86
+
include=optional(string)
87
+
exclude=optional(string)
82
88
}))
83
89
description="To filter on custom metrics, specify the IBM Cloud Monitoring metrics to include or exclude. [Learn more](https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_inc_exc_metrics) and [here](https://github.com/terraform-ibm-modules/terraform-ibm-monitoring-agent/tree/main/solutions/fully-configurable/DA-types.md)."
84
-
default=[] # [{ type = "exclude", name = "metricA.*" }, { type = "include", name = "metricB.*" }]
error_message="Invalid input for `metrics_filter`. Valid options for 'include' and 'exclude' are: `include` and `exclude`. If empty, no metrics are included or excluded."
94
+
}
85
95
}
86
96
87
97
variable"agent_tags" {
88
-
type=list(string)
89
-
description="List of tags to associate to all matrics that the agent collects. NOTE: Use the 'add_cluster_name' variable to add the cluster name as a tag."
error_message="The cloud monitoring agent tags must not contain any spaces."
96
-
}
98
+
description="Map of tags to associate to all matrics that the agent collects. NOTE: Use the 'add_cluster_name' variable to add the cluster name as a tag, e.g `ibm-containers-kubernetes-cluster-name: cluster_name`."
description="To blacklist ports, include the ports you wish to block network traffic and metrics from network ports. See https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_block_ports."
93
+
default=[]
94
+
}
95
+
90
96
variable"metrics_filter" {
91
97
type=list(object({
92
-
type=string
93
-
name=string
98
+
include=optional(string)
99
+
exclude=optional(string)
94
100
}))
95
101
description="To filter custom metrics, specify the Cloud Monitoring metrics to include or to exclude. See https://cloud.ibm.com/docs/monitoring?topic=monitoring-change_kube_agent#change_kube_agent_inc_exc_metrics."
error_message="Invalid input for `metrics_filter`. Valid options for 'include' and 'exclude' are: `include` and `exclude`. If empty, no metrics are included or excluded."
description="List of tags to associate to all matrics that the agent collects. NOTE: Use the 'add_cluster_name' variable to add the cluster name as a tag."
error_message="The cloud monitoring agent tags must not contain any spaces."
126
-
}
124
+
description="Map of tags to associate to all matrics that the agent collects. NOTE: Use the 'add_cluster_name' variable to add the cluster name as a tag, e.g `ibm-containers-kubernetes-cluster-name: cluster_name`."
125
+
type=map(string)
126
+
default={}
127
127
}
128
128
129
129
variable"add_cluster_name" {
130
130
type=bool
131
131
description="If true, configure the cloud monitoring agent to attach a tag containing the cluster name to all metric data."
0 commit comments