diff --git a/definitions/ext-service/golden_metrics.yml b/definitions/ext-service/golden_metrics.yml index 5bcf0d743..bf8f2def5 100644 --- a/definitions/ext-service/golden_metrics.yml +++ b/definitions/ext-service/golden_metrics.yml @@ -27,7 +27,7 @@ errorRate: select: (filter(sum(http.server.requests), where exception IS NOT NULL and exception != 'None') * 100) / sum(http.server.requests) from: Metric pixie: - select: (filter(count(http.server.duration), where http.status_code >= 400 AND http.status_code != 404) * 100) / count(http.server.duration) + select: (filter(count(http.server.duration), where numeric(http.status_code) >= 400 AND numeric(http.status_code) != 404) * 100) / count(http.server.duration) from: Metric responseTimeMs: title: Response time (ms) diff --git a/definitions/ext-service/summary_metrics.yml b/definitions/ext-service/summary_metrics.yml index 8e815ea34..0e9b345af 100644 --- a/definitions/ext-service/summary_metrics.yml +++ b/definitions/ext-service/summary_metrics.yml @@ -41,7 +41,7 @@ errorRate: from: Metric eventId: entity.guid pixie: - select: filter(count(http.server.duration), where http.status_code >= 400 AND http.status_code != 404) / count(http.server.duration) * 100 + select: filter(count(http.server.duration), where numeric(http.status_code) >= 400 AND numeric(http.status_code) != 404) / count(http.server.duration) * 100 from: Metric eventId: entity.guid responseTimeMs: