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 config exports probe disableScriptedChecks setting using different schema than the terraform providers #1033

Open
peterschretlen opened this issue Dec 23, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@peterschretlen
Copy link
Contributor

When exporting the probe configuration to import into terraform, the schema is different for the setting disableScriptedChecks causing the import to fail. This happens with any probe export.

Here is an example of what a probe export JSON looks like:

    "grafana_synthetic_monitoring_probe": {
      "nov_21_test": {
        "name": "nov 21 test",
        "latitude": 0,
        "longitude": 0,
        "region": "",
        "public": false,
        "labels": {},
        "capabilities": {
          "disableScriptedChecks": false,
          "disableBrowserChecks": false
        }
      },

This does not match the schema used by the terraform provider: https://registry.terraform.io/providers/grafana/grafana/latest/docs/resources/synthetic_monitoring_probe

the JSON should look like this to work with the terraform provider:

    "grafana_synthetic_monitoring_probe": {
      "nov_21_test": {
        "name": "nov 21 test",
        "latitude": 0,
        "longitude": 0,
        "region": "",
        "public": false,
        "labels": {},
        "disableScriptedChecks": false,
        "disableBrowserChecks": false
      },

Note there is an internal issue https://github.com/grafana/synthetic-monitoring/issues/205 to add terraform provider support for disableBrowserChecks.

@peterschretlen peterschretlen added the bug Something isn't working label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants