terraform-provider-grafana icon indicating copy to clipboard operation
terraform-provider-grafana copied to clipboard

[Feature Request]: Data Source to Retrieve Grafana Contact Points

Open PatMis16 opened this issue 1 year ago • 0 comments

Feature Request

Description

The terraform-provider-grafana currently lacks a data source to retrieve information about Grafana contact points. This limitation hinders effective management of notification policies, especially in environments with multiple teams or complex alert routing configurations.

By introducing a data source to fetch Grafana contact points, we can simplify the configuration of notification policies and improve overall manageability. This data source should support both retrieving a single contact point by name and fetching all configured contact points.

Example data source configurations

Single contact point:

data "grafana_contact_point" "this" {
  name = "my-contact-point"
}

All contact points:

data "grafana_contact_points" "all" {}

Desired Output

Single contact point:

output "grafana_contact_point_url" {
  value = data.grafana_contact_point.this.url
}

All contact points:

output "grafana_contact_point_urls" {
  value = data.grafana_contact_points.all.contact_points[*].url
}

Conclusion

This feature would significantly enhance the capabilities of the terraform-provider-grafana for managing Grafana environments with complex notification requirements.

PatMis16 avatar Aug 08 '24 09:08 PatMis16