Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Support Advanced Monitoring Options in elasticstack_fleet_agent_policy #984

Open
prempador opened this issue Jan 15, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@prempador
Copy link

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)
@prempador prempador added the enhancement New feature or request label Jan 15, 2025
@pierrehilbert
Copy link

Hello @prempador

Thanks for raising this feature request.
It makes sense to me to have this option available in our terraform provider.

cc @nimarezainia to define the priority level from a product perspective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants