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

Allow Grafana SLO to be Initialized from Terraform #1364

Open
SeamusGrafana opened this issue Feb 22, 2024 · 0 comments
Open

Allow Grafana SLO to be Initialized from Terraform #1364

SeamusGrafana opened this issue Feb 22, 2024 · 0 comments

Comments

@SeamusGrafana
Copy link

Allow Grafana SLO to be Initialized from Terraform

Currently, if you deploy a new GrafanaCloud Stack and Grafana SLO Resources at the same, the SLO resources will fail to be applied and you get the below;

╷
│ Error: Unable to create SLO - API
│ 
│   with module.grafana_supportlab_cloud_stack.grafana_slo.slo-synthetics-reachability,
│   on ../../../../as-code/terraform/modules/grafana_supportlab_cloud_stack/slo_synthetics.tf line 1, in resource "grafana_slo" "slo-synthetics-reachability":
│    1: resource "grafana_slo" "slo-synthetics-reachability" {
│ 
│ Post "https://srtlabdevnew.grafana.net/api/plugins/grafana-slo-app/resources/v1/slo": POST
│ https://srtlabdevnew.grafana.net/api/plugins/grafana-slo-app/resources/v1/slo giving up after 4 attempt(s)

Its not clear that this is because SLO has not yet been initialized, but once its Initialized, it works as expected and the changes applied.

It would be great if there was a Resource to allow SLO to be Initialized, similar to the one for Synthetic Monitoring as currently, this requires manual intervention on an initial stack creation.

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

No branches or pull requests

2 participants