[Synthetics] Adjust Errors metric and sparklines query for retests (#169959)

Fixes #169933 

## Summary

The PR adjusts the query for Errors count metric and Errors sparklines
metric to account for retests.
This commit is contained in:
Abdul Wahab Zahid 2023-10-26 23:51:02 +02:00 committed by GitHub
parent dc3a14036a
commit 005f4084da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ export function getSyntheticsKPIConfig({ dataView }: ConfigProps): SeriesConfig
columnFilters: [
{
language: 'kuery',
query: `summary.down > 0`,
query: `${FINAL_SUMMARY_KQL} and summary.down > 0`,
},
],
},

View file

@ -135,7 +135,7 @@ export function getSyntheticsSingleMetricConfig({ dataView }: ConfigProps): Seri
palette: getColorPalette('danger'),
},
columnType: FORMULA_COLUMN,
formula: 'unique_count(state.id, kql=\'monitor.status: "down"\')',
formula: `unique_count(state.id, kql='${FINAL_SUMMARY_KQL} and monitor.status: "down"')`,
format: 'number',
},
{