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
8 changes: 8 additions & 0 deletions ibm_catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,14 @@
{
"key": "agent_limits_memory"
},
{
"key": "prometheus_config",
"custom_config": {
"type": "code_editor",
"grouping": "deployment",
"original_grouping": "deployment"
}
},
{
"key": "max_surge",
"value_constraints": [
Expand Down
2 changes: 1 addition & 1 deletion solutions/fully-configurable/DA-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Use `metrics_filter` to optimize your monitoring setup by collecting only the me

## `prometheus_config`

The `prometheus_config` variable allows you to enable sysdig agent to scrape metrics from processes that expose Prometheus metric endpoints on its own host and send findings to the Sysdig collector for storing and further processing.
The `prometheus_config` variable allows you to enable monitoring agent to scrape metrics from processes that expose Prometheus metric endpoints on its own host and send findings to the Sysdig collector for storing and further processing.

### Type

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 @@ -72,6 +72,7 @@ module "monitoring_agent" {
cluster_shield_limits_cpu = var.cluster_shield_limits_cpu
cluster_shield_requests_memory = var.cluster_shield_requests_memory
cluster_shield_limits_memory = var.cluster_shield_limits_memory
prometheus_config = var.prometheus_config
max_unavailable = var.max_unavailable
max_surge = var.max_surge
priority_class_name = var.priority_class_name
Expand Down
7 changes: 7 additions & 0 deletions solutions/fully-configurable/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,13 @@ variable "cluster_shield_limits_memory" {
default = "1536Mi"
}

variable "prometheus_config" {
description = "Prometheus configuration for the agent. If you want to enable Prometheus configuration provide the prometheus.yaml file content in `hcl` format. [Learn more](https://github.com/terraform-ibm-modules/terraform-ibm-monitoring-agent/blob/main/solutions/fully-configurable/DA-types.md#prometheus_config)."
type = map(any)
default = {}
nullable = false
}

variable "provider_visibility" {
description = "Set the visibility value for the IBM terraform provider. Supported values are `public`, `private`, `public-and-private`. [Learn more](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/guides/custom-service-endpoints)."
type = string
Expand Down