Remove redundant postgres exporter custom queries
Compare changes
@@ -2287,14 +2287,16 @@ external_url 'GENERATED_EXTERNAL_URL'
@@ -2287,14 +2287,16 @@ external_url 'GENERATED_EXTERNAL_URL'
Remove redundant postgres exporter custom queries
Postgres-exporter 13.0 moved queries from the default queries.yaml to collectors.
The newly implemented collectors conflict with the custom queries.yaml from Omnibus, causing errors like:
An error has occurred while serving metrics: collected metric pg_replication_is_replica gauge:{value:0} has help "Indicates if the server is a replica" but should have "Indicates if this host is a slave"
Upstream MR: https://github.com/prometheus-community/postgres_exporter/pull/801
Changelog: fixed
The queries were moved in gitlab-exporter 13.0, but the redundancy caused no problems until 13.2, which fixed a bug in the replication collector (https://github.com/prometheus-community/postgres_exporter/pull/854). Now a replication metric is registered, with has a conflicting description with the same metric in the custom queries.yaml.
Closes #8164 (closed)
Closes #8112 (closed)
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion.
If you don't have access to this, the reviewer should trigger these jobs for you during the review process.
Trigger:ee-package
jobs have a green pipeline running against latest commit.config/software
or config/patches
directories are changed, make sure the build-package-on-all-os
job within the Trigger:ee-package
downstream pipeline succeeded.Trigger:package:fips
manual job within the Trigger:ee-package
downstream pipeline must succeed.dev.gitlab.org
to confirm regular branch builds aren't broken.10
, duration 10s
, URI scheme://user:passwd@host:port
may require quotation or other special handling when rendered in a template and written to a configuration file.$ curl 127.0.0.1:9187/metrics
/opt/gitlab/sv/postgres-exporter/run
)postgres_exporter['flags']['collector.stat_user_tables']
toggled the collector flagpostgres_exporter['per_table_stats']
takes precedence over postgres_exporter['flags']['collector.stat_user_tables']