Skip to content

Panic: descriptors reported by collector have inconsistent label names #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
aamkye opened this issue Jan 7, 2020 · 3 comments
Open

Comments

@aamkye
Copy link

aamkye commented Jan 7, 2020

Version:
postgres_exporter_build_info{branch="",goversion="go1.11",revision="",version="0.0.1"} 1

Error:

panic: descriptors reported by collector have inconsistent label names or help strings for the same fully-qualified name, offender is Desc{fqName: "pg_settings_effective_cache_size_bytes", help: "Sets the planner's assumption about the size of the data cache. [Units converted to bytes.]", constLabels: {server="some.server:5432"}, variableLabels: []}

Related issues:
#254
#175

Details:
Based on info in upper tickets its related to different postgres engines versions. But disable-settings-metrics is not an option here.
I've plenty of postgres servers with different engine versions due to regressions and performance testing between them and I don't want to have plenty of exporters :D

@rajalakshmi-v15
Copy link

rajalakshmi-v15 commented Jul 17, 2020

Screenshot 2020-07-18 at 2 39 51 AM

Same issue here. I cannot disable settings since I am configuring alerts based on the preconfigured settings. Request you to please address the issue ASAP.

@dgarcdu
Copy link

dgarcdu commented Nov 5, 2020

Hello.
Same issue here:

panic: descriptors reported by collector have inconsistent label names or help strings for the same fully-qualified name, offender is Desc{fqName: "pg_settings_google_insights_enabled", help: "Sets whether to enable the extension with shared memory allocation and stats recording.", constLabels: {server="172.22.36.243:5432"}, variableLabels: []}

Disabling pg_settings is not an option, as we have configured alerts based con max connections and others.

Also, deploying several exporters is not an option either, as it would bring some maintenance problems in the long term.

Could you please at least offer any workaround?

Thanks in advance, and best regards.

@quenlang
Copy link

@dgarcdu
I meet the same issue and the root cause is the different value of column short_desc in pg_settings table on different postgres engines versions. prometheus not allow the same metric has different description when it was registered.
The short_desc of effective_cache_size_bytes which is different between 9.6.2 and 9.6.22

9.6.22: Sets the planner's assumption about the total size of the data caches. [Units converted to bytes.]
9.6.2: Sets the planner's assumption about the size of the disk cache. [Units converted to bytes.]

quenlang added a commit to quenlang/postgres_exporter that referenced this issue Dec 26, 2021
quenlang added a commit to quenlang/postgres_exporter that referenced this issue Dec 26, 2021
… have inconsistent label names

Signed-off-by: zhoujk <quenlang@126.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants