Skip some metrics that apply for each branch
As data.qa.guix.gnu.org has lots of branches and 100,000+ metrics, and this is causing Prometheus to time out fetching the metrics. I'm not sure there's much value in these metrics, so cut them out for now.
This commit is contained in:
parent
d29ef3ed9b
commit
9e9fc1ba04
1 changed files with 6 additions and 3 deletions
|
|
@ -96,7 +96,8 @@ SELECT relname, seq_scan, seq_tup_read,
|
||||||
COALESCE(extract(epoch from last_analyze), 0),
|
COALESCE(extract(epoch from last_analyze), 0),
|
||||||
COALESCE(extract(epoch from last_autoanalyze), 0),
|
COALESCE(extract(epoch from last_autoanalyze), 0),
|
||||||
vacuum_count, autovacuum_count, analyze_count, autoanalyze_count
|
vacuum_count, autovacuum_count, analyze_count, autoanalyze_count
|
||||||
FROM pg_stat_user_tables")
|
FROM pg_stat_user_tables
|
||||||
|
WHERE relname NOT LIKE 'package_derivations_by_guix_revision_range_git_branch_%'")
|
||||||
|
|
||||||
(map (match-lambda
|
(map (match-lambda
|
||||||
((relname seq-scan seq-tup-read
|
((relname seq-scan seq-tup-read
|
||||||
|
|
@ -141,7 +142,8 @@ FROM pg_stat_user_indexes
|
||||||
LEFT JOIN pg_indexes
|
LEFT JOIN pg_indexes
|
||||||
ON pg_stat_user_indexes.indexrelname = pg_indexes.indexname
|
ON pg_stat_user_indexes.indexrelname = pg_indexes.indexname
|
||||||
AND pg_stat_user_indexes.schemaname = pg_indexes.schemaname
|
AND pg_stat_user_indexes.schemaname = pg_indexes.schemaname
|
||||||
WHERE pg_stat_user_indexes.schemaname = 'guix_data_service'")
|
WHERE pg_stat_user_indexes.schemaname = 'guix_data_service'
|
||||||
|
AND pg_indexes.tablename NOT LIKE 'package_derivations_by_guix_revision_range_git_branch_%'")
|
||||||
|
|
||||||
(map
|
(map
|
||||||
(match-lambda
|
(match-lambda
|
||||||
|
|
@ -162,7 +164,8 @@ WHERE pg_stat_user_indexes.schemaname = 'guix_data_service'")
|
||||||
"
|
"
|
||||||
SELECT tablename, attname, null_frac, n_distinct, correlation
|
SELECT tablename, attname, null_frac, n_distinct, correlation
|
||||||
FROM pg_stats
|
FROM pg_stats
|
||||||
WHERE schemaname = 'guix_data_service'")
|
WHERE schemaname = 'guix_data_service'
|
||||||
|
AND tablename NOT LIKE 'package_derivations_by_guix_revision_range_git_branch_%'")
|
||||||
|
|
||||||
(map
|
(map
|
||||||
(match-lambda
|
(match-lambda
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue