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

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

Open
PatMis16 opened this issue Aug 8, 2024 · 0 comments
Open

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

PatMis16 opened this issue Aug 8, 2024 · 0 comments

Comments

@PatMis16
Copy link

PatMis16 commented Aug 8, 2024

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.

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

2 participants