@@ -1975,18 +1975,18 @@ metrics:
1975
1975
case
1976
1976
when key = 'index_size_threshold' then
1977
1977
case
1978
- when value ~ '^[0-9]+MB$' then (regexp_replace(value, 'MB$', '')::numeric * 1024 * 1024)::bigint
1979
- when value ~ '^[0-9]+kB$' then (regexp_replace(value, 'kB$', '')::numeric * 1024)::bigint
1980
- when value ~ '^[0-9]+GB$' then (regexp_replace(value, 'GB$', '')::numeric * 1024 * 1024 * 1024)::bigint
1978
+ when value ~ '^[0-9]+MB$' then (regexp_replace(value, 'MB$', '')::numeric * 1024 * 1024)::float
1979
+ when value ~ '^[0-9]+kB$' then (regexp_replace(value, 'kB$', '')::numeric * 1024)::float
1980
+ when value ~ '^[0-9]+GB$' then (regexp_replace(value, 'GB$', '')::numeric * 1024 * 1024 * 1024)::float
1981
1981
else 0
1982
1982
end
1983
1983
when key = 'minimum_reliable_index_size' then
1984
1984
case
1985
- when value ~ '^[0-9]+kB$' then (regexp_replace(value, 'kB$', '')::numeric * 1024)::bigint
1986
- when value ~ '^[0-9]+MB$' then (regexp_replace(value, 'MB$', '')::numeric * 1024 * 1024)::bigint
1985
+ when value ~ '^[0-9]+kB$' then (regexp_replace(value, 'kB$', '')::numeric * 1024)::float
1986
+ when value ~ '^[0-9]+MB$' then (regexp_replace(value, 'MB$', '')::numeric * 1024 * 1024)::float
1987
1987
else 0
1988
1988
end
1989
- when key = 'index_rebuild_scale_factor' then value::numeric
1989
+ when key = 'index_rebuild_scale_factor' then value::float
1990
1990
when key = 'reindex_history_retention_period' then
1991
1991
case when value ~ 'years?' then regexp_replace(value, ' years?', '')::int else 0 end
1992
1992
when key = 'skip' then case when value::boolean then 1 else 0 end
0 commit comments