Skip to content

Commit

Permalink
chore: create dashboard with first panel (#46)
Browse files Browse the repository at this point in the history
* chore: create dashboard with first panel

* chore: fix chart type
  • Loading branch information
thegentlemanphysicist authored Oct 5, 2023
1 parent f957503 commit 9a6eb1c
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions terraform/gold-eb75ad-team/dashboards.tf
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,50 @@ resource "sysdig_monitor_dashboard" "pods_cpu" {
}
}
}


resource "sysdig_monitor_dashboard" "general_pod_performance" {
name = "Memory Network and CPU for pods"
description = "The general perfomance dashboard for production prod"

share {
role = "ROLE_RESOURCE_EDIT"
member {
type = "TEAM"
id = 40193
}
}

scope {
metric = "kube_cluster_name"
comparator = "in"
value = ["gold"]
variable = "cluster_name"
}

scope {
metric = "kube_namespace_name"
comparator = "in"
value = ["eb75ad-prod"]
variable = "namespace_name"
}

panel {
pos_x = 0
pos_y = 0
width = 8
height = 4
type = "timechart"
name = "Memory used by pod vs memory request keycloak"
description = "Keycloak memory used by pods compared to the requested memory"

query {
promql = "(sum by (kube_workload_name,kube_pod_name,kube_cluster_name,kube_namespace_name)(rate(sysdig_container_memory_used_bytes{kube_namespace_name=~'eb75ad-prod',kube_cluster_name=~'gold', kube_workload_name=~'sso-keycloak'}[$__interval])))/ (sum by (kube_workload_name, kube_pod_name,kube_cluster_name,kube_namespace_name)(kube_pod_container_resource_requests{resource='memory',kube_namespace_name=~'eb75ad-prod',kube_cluster_name=~'gold', kube_workload_name=~'sso-keycloak'}))"
unit = "percent"
}
}




}

0 comments on commit 9a6eb1c

Please sign in to comment.