Skip to content

[Feature] Support Advanced Monitoring Options in elasticstack_fleet_agent_policy #984

Open
@prempador

Description

@prempador

Is your feature request related to a problem? Please describe.
Since the introduction of the Liveness Probe for Elastic Agents, we are defining the Healthchecks for Elastic Agent Containers in ECS Clusters and K8s Clusters via Terraform. If we create new Elastic Agent Policies we now need to go into the UI, after it was created via Terraform, in order to enable the Advanced Monitoring Options (otherwise the healthchecks would fail, as the endpoints do not return proper responses), as the Terraform Resource does not support it yet. Most important for us here would be the HTTP monitoring endpoint.

Image

Describe the resource you would like to have implemented.
Advanced Monitoring Options for the resource elasticstack_fleet_agent_policy.

Describe the solution you'd like

resource "elasticstack_fleet_agent_policy" "test_policy" {
  name            = "Test Policy"
  namespace       = "default"
  description     = "Test Agent Policy"
  sys_monitoring  = true
  monitor_logs    = true
  monitor_metrics = true

  # feature request start
  advanced_monitoring_options = {
    http_monitoring_endpoint = {
      enabled    = true
      host       = "localhost"
      port       = 6791

      enable_profiling = false
    }
    
    diagnostic_rate_limiting = {
      interval = "1m"
      burst    = 1
    }

    diagnostic_file_upload = {
      max_retries      = 10
      initial_duration = "1s"
      backoff_duration = "1m"
    }
  }
  # feature request end
}

Describe alternatives you've considered

  • Manual work, which we already do right now, but this is not scalable and doesn't feel proper, if everything else can be setup via terraform.
  • Enable option by default (this would be a whole other discussion to have)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close