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

Add alerts list widget to dashboard groups #203

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Conversation

lambcode
Copy link
Contributor

This update lets users manage the alerts list widget on metric dashbaords through terraform. An example dashboard looks like this. Note the difference in label (terraform) vs labels (public api). Also predicate and predicates. This was done to make the terraform look more ergonomic. LMK if you think this is too much overhead.

resource "lightstep_metric_dashboard" "test" {
	project_name          = "project"
	dashboard_name        = "Acceptance Test Dashboard (TestAccDashboardAlertsListPanel)"
	dashboard_description = "Dashboard to test the alerts list panel"

group {
	rank = 0
	visibility_type = "implicit"

	alerts_list_panel {
		name = "test_alerts_list_panel"

		x_pos = 0
		y_pos = 0
		width = 10
		height = 10 

            panel_options {
                sort_direction = "asc"
                sort_by = "status"
            }
            filter_by {
		predicate {
		    operator = "eq"
                     label {
                        key = "food"
                        value = "pizza"
                    }
                    label {
                        key = "food"
                        value = "burger"
                    }
                }
		predicate {
			   operator = "neq"
                            label {
                                key = "drink"
                                value = "coke"
                            }
                        }
                    }
	      }
	}
}

Copy link

@gontzess gontzess left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@lambcode lambcode force-pushed the blamb/alertsListWidget branch from 0d53bbc to 67b37ad Compare January 19, 2024 21:29
@lambcode lambcode merged commit 8de03ec into main Jan 23, 2024
5 checks passed
@lambcode lambcode deleted the blamb/alertsListWidget branch January 23, 2024 17:50
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.

2 participants