Skip to content

Commit

Permalink
feat: create dashboard without format block (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
thegentlemanphysicist authored Oct 6, 2023
1 parent 9a6eb1c commit fb5d270
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions terraform/gold-eb75ad-team/dashboards.tf
Original file line number Diff line number Diff line change
Expand Up @@ -297,14 +297,47 @@ resource "sysdig_monitor_dashboard" "general_pod_performance" {
height = 4
type = "timechart"
name = "Memory used by pod vs memory request keycloak"
description = "Keycloak memory used by pods compared to the requested memory"
description = "Keycloak memory used by pods compared to the requested memory factor of 100 added to fix display"

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'}))"
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])))*100/ (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"
}
}

panel {
pos_x = 0
pos_y = 0
width = 8
height = 4
type = "timechart"
name = "Memory used by pod vs memory request patroni"
description = "Patroni memory used by pods compared to the requested memory. Factor of 100 added to fix display"

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-patroni'}[$__interval])))*100/ (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-patroni'}))"
unit = "percent"
}
}

panel {
pos_x = 0
pos_y = 0
width = 8
height = 4
type = "timechart"
name = "HTTP Errors (4xx/5xx) per Pod Keycloak"
description = ""

query {
promql = "topk(20,sum(sum_over_time(sysdig_container_net_http_error_count{kube_cluster_name=~'gold', kube_workload_name=~'sso-keycloak'}[$__interval])) by (kube_cluster_name, kube_namespace_name, kube_workload_type, kube_workload_name, kube_pod_name)) / $__interval_sec"
unit = "number rate"
}
}







Expand Down

0 comments on commit fb5d270

Please sign in to comment.