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

Terraform logicmonitor provider does not enable "Enable Monitoring via local Collector" #93

Open
guyinhat opened this issue Jun 11, 2024 · 2 comments

Comments

@guyinhat
Copy link

Using the following config block for setting up the e_c2 service, Im running into an issue where all the configs are correct, except nothing activates the slider to enable it. Meaning, If after I run terraform, all is setup under the Collector Assignments, but until I manually activate the slider, nothing happens. As soon as I activate the slider I see my collector config and regions and all is there. It just seems that the enabled line under normal_collector_config does nothing:

Here is an example of my e_c2 service block:

            e_c2 {
              use_default = false
              disable_terminated_host_alerting = true
              select_all = false
              monitoring_region_infos = ["US_EAST_1","US_EAST_2","US_WEST_1","US_WEST_2","EU_WEST_1"]
              monitoring_regions = ["US_EAST_1","US_EAST_2","US_WEST_1","US_WEST_2","EU_WEST_1"]
              dead_operation = "IMMEDIATELY"
              normal_collector_config {
                  enabled = true           // This doesnt seem to do anything
                  collectors = [
                    {
                        collector_description = "AWS ${var.profile} ${var.instance_name[1]}",
                        auto_balanced_collector_group_id = 0,
                        collector_id = logicmonitor_collector.aws_collector.id,
                        priority = 1,
                        applies_to = "system.aws.region==\"us-east-1\"\n||system.aws.region==\"us-east-2\"\n||system.aws.region==\"us-west-1\"\n||system.aws.region==\"us-west-2\"\n||system.aws.region==\"eu-west-1\"\n",
                        use_public_ip = false
                    }
                  ]
              }
            }
@guyinhat
Copy link
Author

guyinhat commented Jun 11, 2024

Terraform Version: v1.5.2
Logicmonitor Provider Version: v2.0.16

@guyinhat
Copy link
Author

Also, after setting it to true and running terraform apply, all will appear to be applied and terraform will deploy successfully. However if I run terraform plan again I'll see this:

                  ~ normal_collector_config {
                      ~ enabled    = false -> true
                        # (1 unchanged attribute hidden)
                    }

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

No branches or pull requests

1 participant