Skip to content

Commit

Permalink
Merge pull request #11 from dasmeta/DMVP-3900-fix-alarm-names
Browse files Browse the repository at this point in the history
fix(DMVP-3900): Changed alarm names
  • Loading branch information
viktoryathegreat authored Apr 25, 2024
2 parents 521639c + 2705e1d commit ba888e5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions alarms.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module "cw_alerts" {
// Restarts
var.alarms.restarts.enabled ? [
{
name = "${var.name} has too many restarts in ${var.cluster_name}"
name = "Service: High Restart Rate for ${var.name} (2 in 5 minutes) in Cluster ${var.cluster_name}"
source = "ContainerInsights/pod_number_of_container_restarts"
filters = {
ClusterName = var.cluster_name,
Expand All @@ -26,7 +26,7 @@ module "cw_alerts" {
// Replicas
var.alarms.replicas.enabled ? [
{
name = "${var.name} has 0 available replicas in ${var.cluster_name}"
name = "Service: 0 available replicas for ${var.name} in Cluster ${var.cluster_name}"
source = "ContainerInsights/service_number_of_running_pods"
filters = {
ClusterName = var.cluster_name,
Expand All @@ -42,7 +42,7 @@ module "cw_alerts" {
// Network In
var.alarms.network_in.enabled ? [
{
name = "${var.name} is outside of Network < In band in ${var.cluster_name}",
name = "Service: Network In Traffic Anomaly for ${var.name} in Cluster ${var.cluster_name}",
source = "ContainerInsights/pod_network_rx_bytes",
filters = {
ClusterName = var.cluster_name,
Expand All @@ -58,7 +58,7 @@ module "cw_alerts" {
// Network Out
var.alarms.network_out.enabled ? [
{
name = "${var.name} is outside of Network > Out band ${var.cluster_name}",
name = "Service: Network Out Traffic Anomaly for ${var.name} in Cluster ${var.cluster_name}",
source = "ContainerInsights/pod_network_tx_bytes",
filters = {
ClusterName = var.cluster_name,
Expand All @@ -74,7 +74,7 @@ module "cw_alerts" {
// HPA Maximum
var.alarms.maximum_replicas_usage.enabled ? [
{
name = "${var.name} has been on HPA maximum for 5 minutes in ${var.cluster_name}",
name = "Service: ${var.name} HPA has been on Maximum Replicas for 5 minutes in Cluster ${var.cluster_name}",
source = "ContainerInsights/kube_deployment_status_replicas_available",
filters = {
ClusterName = var.cluster_name,
Expand Down

0 comments on commit ba888e5

Please sign in to comment.