-
Notifications
You must be signed in to change notification settings - Fork 17
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 dashboard modules #14
Conversation
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Dropped alert policies for now, I'll readd it later. Also dropped the project_id variable, which was only used to power the url output, which I've also removed. |
dashboard/tiles/alert/main.tf
Outdated
variable "alert_name" { type = string } | ||
|
||
// https://cloud.google.com/monitoring/api/ref_v3/rest/v1/projects.dashboards#AlertChart | ||
output "tile" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are actually widgets
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
dashboard/topic/dashboard.tf
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop for now
dashboard/subscription/dashboard.tf
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop for now
dashboard/subscription/README.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop for now
.github/workflows/documentation.yaml
Outdated
@@ -15,6 +15,9 @@ jobs: | |||
- cloudevent-trigger | |||
- cloudevent-recorder | |||
- networking | |||
- dashboard/service | |||
- dashboard/job | |||
- dashboard/topic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drop for now
- dashboard/topic |
variable "secondary_reduce" { default = "REDUCE_NONE" } | ||
|
||
// https://cloud.google.com/monitoring/api/ref_v3/rest/v1/projects.dashboards#XyChart | ||
output "tile" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should rename the outputs too.
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
Signed-off-by: Jason Hall <jason@chainguard.dev>
This moves modules in from https://github.com/chainguard-dev/terraform-cloudrun-dashboard -- after this is merged we can archive that repo.
The new directory
./dashboard
includes:service
andjob
, which take a multi-regional Cloud Run Service or Job name and presents common metrics for themtopic
, which takes a Pub/Sub topic prefix and presents common metrics for its subscribers, assuming they have that topic name as their subscription name prefixtiles
, which provide reusable dashboard tile definitions, which we can extend over time.It also defines dashboards for the ingress and recorder services, and broker topics.