Skip to content

Commit

Permalink
Fix for metrics-bigquery failures
Browse files Browse the repository at this point in the history
Signed-off-by: Davanum Srinivas <[email protected]>
  • Loading branch information
dims committed Sep 3, 2024
1 parent 41de1c3 commit b365124
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion metrics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ query: |
select /* find the most recent time each job passed (may not be this week) */
job,
max(started) latest_pass
from `k8s-gubernator.build.all`
from `kubernetes-public.k8s_infra_kettle.all`
where
result = 'SUCCESS'
group by job
Expand Down
2 changes: 1 addition & 1 deletion metrics/configs/build-stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ query: |
COUNT(started) invocations,
countif(result = 'SUCCESS') passes
FROM
`k8s-gubernator.build.all`
`kubernetes-public.k8s_infra_kettle.all`
where
started >= TIMESTAMP_SECONDS(<LAST_DATA_TIME>)
and started < timestamp_trunc(current_timestamp(), day)
Expand Down
6 changes: 3 additions & 3 deletions metrics/configs/failures-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ query: |
select /* filter to jobs that ran this week */
job,
count(1) weekly_builds
from `k8s-gubernator.build.all`
from `kubernetes-public.k8s_infra_kettle.all`
where
started > timestamp_sub(current_timestamp(), interval 7 day)
group by job
Expand All @@ -24,15 +24,15 @@ query: |
job,
date(min(started)) first_run,
date(max(started)) latest_run
from `k8s-gubernator.build.all`
from `kubernetes-public.k8s_infra_kettle.all`
group by job
) runs
on jobs.job = runs.job
left join (
select /* find the most recent time each job passed (may not be this week) */
job,
max(started) latest_pass
from `k8s-gubernator.build.all`
from `kubernetes-public.k8s_infra_kettle.all`
where
result = 'SUCCESS'
group by job
Expand Down
2 changes: 1 addition & 1 deletion metrics/configs/flakes-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ query: |
test /* repeated tuple of tests */
from (
select *,
ifnull(b.repos, (select i.value from b.metadata i where i.key = 'repos')) repo from `k8s-gubernator.build.week` as b
ifnull(b.repos, (select i.value from b.metadata i where i.key = 'repos')) repo from `kubernetes-public.k8s_infra_kettle.week` as b
) as t
where
datetime(started) > datetime_sub(current_datetime(), interval 7 DAY)
Expand Down
2 changes: 1 addition & 1 deletion metrics/configs/flakes-daily-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ query: |
test /* repeated tuple of tests */
from (
select *,
ifnull(b.repos, (select i.value from b.metadata i where i.key = 'repos')) repo from `k8s-gubernator.build.week` as b
ifnull(b.repos, (select i.value from b.metadata i where i.key = 'repos')) repo from `kubernetes-public.k8s_infra_kettle.week` as b
) as t
where
datetime(started) > datetime_sub(current_datetime(), interval 1 DAY)
Expand Down
2 changes: 1 addition & 1 deletion metrics/configs/job-health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ query: |
b.tests_failed tests_failed,
b.passed passed
from
`k8s-gubernator.build.all` AS b
`kubernetes-public.k8s_infra_kettle.all` AS b
where
b.started > timestamp_seconds(<LAST_DATA_TIME>)
and started < timestamp_trunc(current_timestamp(), day)
Expand Down
2 changes: 1 addition & 1 deletion metrics/configs/presubmit-health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ query: |
elapsed,
REGEXP_EXTRACT(path, "/(\\d+)/") pr
FROM
`k8s-gubernator.build.all`
`kubernetes-public.k8s_infra_kettle.all`
WHERE
REGEXP_CONTAINS(job, '^pr:')
AND started > TIMESTAMP_SECONDS(<LAST_DATA_TIME>)
Expand Down

0 comments on commit b365124

Please sign in to comment.