diff --git a/pkg/apis/monitor/alertquery_const.go b/pkg/apis/monitor/alertquery_const.go index 0ce342f41a..03fc564597 100644 --- a/pkg/apis/monitor/alertquery_const.go +++ b/pkg/apis/monitor/alertquery_const.go @@ -40,6 +40,7 @@ var ( "brand": "brand", "domain_id": "domain_id", "project_domain": "project_domain", + "access_ip": "access_ip", } RdsTags = map[string]string{ diff --git a/pkg/monitor/alerting/conditions/query.go b/pkg/monitor/alerting/conditions/query.go index d644ce45b5..7a7c2257e9 100644 --- a/pkg/monitor/alerting/conditions/query.go +++ b/pkg/monitor/alerting/conditions/query.go @@ -509,7 +509,7 @@ func (c *QueryCondition) checkGroupByField() { } func (c *QueryCondition) setResType() { - var resType = "" + var resType = monitor.METRIC_RES_TYPE_HOST if len(c.Query.Model.GroupBy) == 0 { return }