Merge pull request #147 from navi-infra/INFRA-629

INFRA-629| Deepak Jain| fixing alert
This commit is contained in:
Deepak Jain
2020-12-23 13:05:58 +05:30
committed by GitHub Enterprise

View File

@@ -309,8 +309,13 @@ local customAlerts = {
description: 'rds {{ $labels.identifier }} have allocated storage near max allocated storage',
summary: 'Allocated storage near max allocated',
},
expr: '(rds_config_AllocatedStorage{identifier=~"%(dbInstance)s"}/rds_config_MaxAllocatedStorage{"%(dbInstance)s"}) > 0.85' % (databaseAlertFields),
expr: '(rds_config_AllocatedStorage{identifier=~"%(dbInstance)s"}/rds_config_MaxAllocatedStorage{identifier=~"%(dbInstance)s"}) > 0.85' % (databaseAlertFields),
'for': '5m',
labels: {
severity: 'critical',
alertTeam: deployment_manifest.team.name,
appName: app_name,
},
},
] else [] )
+ (if load_balancer_util.is_using_tg(deployment_manifest.deployment.loadBalancers) then