Skip to content

Conversation

VikaCep
Copy link
Contributor

@VikaCep VikaCep commented Oct 2, 2025

Add HCL Export Support to Terraform Configuration

Closes #1217

This PR adds support for exporting Terraform configurations in HCL format alongside the existing JSON format, providing users with more flexibility in their Terraform workflows.

Users can now export their synthetic monitoring checks, probes and alerts in native HCL format through the Terraform configuration tab. The interface includes a tabbed view where users can switch between HCL and JSON formats, with HCL as the default option.

Screen.Recording.2025-10-02.at.17.23.54.mov

@VikaCep VikaCep self-assigned this Oct 2, 2025
Copy link

github-actions bot commented Oct 2, 2025

Script size changes

Name +/- Main This PR Outcome
[module.js] +0.35% 2,384.67 kB 2,392.90 kB
[datasource/module.js] = 24.68 kB 24.68 kB

Totals

Name +/- Main This PR Outcome
[Scripts] +0.34% 2,409.35 kB 2,417.58 kB
[Non-script Assets] = 2,587.82 kB 2,587.82 kB
[All] +0.16% 4,997.17 kB 5,005.40 kB

Generated by 🚫 dangerJS against 22d5a91

Copy link

github-actions bot commented Oct 2, 2025

Terraform Configuration Validation Passed

All generated terraform configurations are valid and compatible with the Grafana provider schema. 🎉

✅ Validation Results

  • JSON Syntax: Valid Terraform JSON configuration
  • HCL Syntax: Valid Terraform HCL configuration
  • Schema Compatibility: Compatible with Grafana provider

Validated Resources:

  • grafana_synthetic_monitoring_check (HTTP, DNS, TCP, Ping, MultiHTTP, Scripted, Traceroute)
  • grafana_synthetic_monitoring_probe (Public, Private, Online, Offline)
  • grafana_synthetic_monitoring_check_alerts (Alert configurations)

The terraform export functionality will work correctly with these changes.

@VikaCep VikaCep marked this pull request as ready for review October 6, 2025 13:10
@VikaCep VikaCep requested a review from a team as a code owner October 6, 2025 13:10
@VikaCep VikaCep requested a review from ckbedwell October 6, 2025 13:10
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

Successfully merging this pull request may close these issues.

Explore providing HCL terraform export alongside JSON

1 participant