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

Docs: Add dashboard example in the main provider page #1011

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

julienduchesne
Copy link
Member

Dashboards are the main thing a user wants to do in Grafana, let's mention it at the forefront of the docs

Dashboards are the main thing a user wants to do in Grafana, let's mention it at the forefront of the docs
@julienduchesne julienduchesne requested a review from a team as a code owner August 25, 2023 13:28
@github-actions
Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically. To do so, a Grafana Labs employee must promote the Drone build.

For maintainers, it's better to run only the Cloud tests you need, rather than all of them. You can do so by setting the following parameter when promoting:

TESTARGS='-run=<testname>'

resource "grafana_dashboard" "test_folder" {
org_id = grafana_organization.my_org.org_id
folder = grafana_folder.my_folder.id
config_json = jsonencode({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is jsonencode the most common practice, or loading from disk? I would have assumed the latter, but don't actually know.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's pretty common practice. Any provider that requires JSON blobs uses it

@julienduchesne julienduchesne merged commit 1e4bb79 into master Aug 28, 2023
3 checks passed
@julienduchesne julienduchesne deleted the julienduchesne/add-dashboard-example branch August 28, 2023 11:46
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.

None yet

3 participants