fix queries in insights scenes (#3720)
# What this PR does - fix wrongly renamed instance in promql queries ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required)
This commit is contained in:
parent
8f2f21ab89
commit
5e47e79cba
9 changed files with 9 additions and 9 deletions
|
|
@ -10,7 +10,7 @@ export default function getAlertGroupsByIntegrationScene({ datasource }: Insight
|
|||
{
|
||||
editorMode: 'code',
|
||||
exemplar: false,
|
||||
expr: 'sort_desc(max_over_time(sum by(integration) (avg without(pod, stack)($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:]))',
|
||||
expr: 'sort_desc(max_over_time(sum by(integration) (avg without(pod, instance)($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:]))',
|
||||
format: 'table',
|
||||
instant: true,
|
||||
legendFormat: '__auto',
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export default function getAlertGroupsByTeamScene({ datasource }: InsightsConfig
|
|||
{
|
||||
editorMode: 'code',
|
||||
exemplar: false,
|
||||
expr: 'sort_desc(max_over_time(sum by(team) (avg without(pod, stack)($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:]))',
|
||||
expr: 'sort_desc(max_over_time(sum by(team) (avg without(pod, instance)($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:]))',
|
||||
format: 'table',
|
||||
instant: true,
|
||||
legendFormat: '__auto',
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default function getNewAlertGroupsDuringTimePeriodScene({ datasource }: I
|
|||
editorMode: 'code',
|
||||
excludeNullMetadata: false,
|
||||
exemplar: false,
|
||||
expr: 'increase(max_over_time(sum by (integration) (avg without(pod, stack) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[30m:])[1h:])',
|
||||
expr: 'increase(max_over_time(sum by (integration) (avg without(pod, instance) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[30m:])[1h:])',
|
||||
fullMetaSearch: false,
|
||||
instant: false,
|
||||
legendFormat: '__auto',
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default function getNewAlertGroupsForSelectedPeriodScene({ datasource }:
|
|||
editorMode: 'code',
|
||||
excludeNullMetadata: false,
|
||||
exemplar: false,
|
||||
expr: 'increase(max_over_time(sum(avg without(pod, stack) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:])[$__range:])',
|
||||
expr: 'increase(max_over_time(sum(avg without(pod, instance) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:])[$__range:])',
|
||||
format: 'time_series',
|
||||
fullMetaSearch: false,
|
||||
includeNullMetadata: true,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default function getNewAlertGroupsNotificationsDuringTimePeriodScene({ da
|
|||
editorMode: 'code',
|
||||
excludeNullMetadata: false,
|
||||
exemplar: false,
|
||||
expr: 'increase(max_over_time(sum by (username) (avg without(pod, stack) ($user_was_notified_of_alert_groups_total{slug=~"$stack"}))[30m:])[1h:])',
|
||||
expr: 'increase(max_over_time(sum by (username) (avg without(pod, instance) ($user_was_notified_of_alert_groups_total{slug=~"$stack"}))[30m:])[1h:])',
|
||||
fullMetaSearch: false,
|
||||
instant: false,
|
||||
legendFormat: '__auto',
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export default function getNewAlertGroupsNotificationsForPeriodTableScene({ data
|
|||
{
|
||||
editorMode: 'code',
|
||||
exemplar: false,
|
||||
expr: 'sort_desc(increase(max_over_time(sum by (username) (avg without(pod, stack) ($user_was_notified_of_alert_groups_total{slug=~"$stack"}))[1h:])[$__range:]))',
|
||||
expr: 'sort_desc(increase(max_over_time(sum by (username) (avg without(pod, instance) ($user_was_notified_of_alert_groups_total{slug=~"$stack"}))[1h:])[$__range:]))',
|
||||
format: 'table',
|
||||
instant: true,
|
||||
legendFormat: '__auto',
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export default function getNewAlertGroupsNotificationsInTotalScene({ datasource
|
|||
{
|
||||
editorMode: 'code',
|
||||
exemplar: false,
|
||||
expr: 'sort_desc(max_over_time(sum by(username) (avg without(pod, stack)($user_was_notified_of_alert_groups_total{slug=~"$stack"}))[1d:]))',
|
||||
expr: 'sort_desc(max_over_time(sum by(username) (avg without(pod, instance)($user_was_notified_of_alert_groups_total{slug=~"$stack"}))[1d:]))',
|
||||
format: 'table',
|
||||
instant: true,
|
||||
legendFormat: '__auto',
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default function getTotalAlertGroupsScene({ datasource }: InsightsConfig)
|
|||
editorMode: 'code',
|
||||
excludeNullMetadata: false,
|
||||
exemplar: false,
|
||||
expr: 'max_over_time(sum(avg without(pod, stack) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:])',
|
||||
expr: 'max_over_time(sum(avg without(pod, instance) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))[1d:])',
|
||||
format: 'time_series',
|
||||
fullMetaSearch: false,
|
||||
instant: false,
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ export default function getTotalAlertGroupsByStateScene({ datasource }: Insights
|
|||
disableTextWrap: false,
|
||||
editorMode: 'code',
|
||||
excludeNullMetadata: false,
|
||||
expr: 'sum by (state) (avg without(pod, stack) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))',
|
||||
expr: 'sum by (state) (avg without(pod, instance) ($alert_groups_total{slug=~"$stack", team=~"$team", integration=~"$integration"}))',
|
||||
fullMetaSearch: false,
|
||||
legendFormat: '__auto',
|
||||
range: true,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue