Skip to content
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

Many errors when getting /metrics #100

Open
valvin1 opened this issue Jul 3, 2020 · 2 comments
Open

Many errors when getting /metrics #100

valvin1 opened this issue Jul 3, 2020 · 2 comments

Comments

@valvin1
Copy link

valvin1 commented Jul 3, 2020

Hello,

I'm using version v0.5.0 in its docker version. I collect metrics coming from rhel6 and 7.

collectd version on rhel6 is 4.10.9-5
collectd version on rhel7 is 5.8.1-1

I had collectd_exporter working with only rhel6 for some times it looks rhel7 bring this regression.

Here is the one of the 350 errors I get when I call /metrics :

An error has occurred while serving metrics:

350 error(s) occurred:
[...]
* collected metric collectd_interface_if_errors_1_total label:<name:"instance" value:"myserver" > label:<name:"interface" value:"eth1" > counter:<value:0 >  has help "Collectd exporter: 'interface' Type: 'if_errors' Dstype: 'api.Counter' Dsname: '1'" but should have "Collectd exporter: 'interface' Type: 'if_errors' Dstype: 'api.Derive' Dsname: '1'"

it appears on many different metrics.

Collectd is configured using network plugin :

LoadPlugin network
<Plugin network>
  Server "collectd-exporter-server" "25826"
</Plugin>

I'll test to remove rhel7 server and see if it works back. I've already tries to destroy container. I was first on latest version and switch to named version v0.5.0

Does this issue is known ? Should i switch on write_http plugin for rhel7?

@valvin1
Copy link
Author

valvin1 commented Jul 3, 2020

I confirm issue is coming from server running collectd v5.8.1 on rhel7. I've desactivated it and it works back.

@eero-t
Copy link

eero-t commented Jan 3, 2024

Collectd v4.10.9 is from 2013, and 5.8.1 is from 2018, i.e. both rather old. There's also new v0.6.0 release of this project: https://github.com/prometheus/collectd_exporter/releases/tag/v0.6.0

Does this issue is known ? Should i switch on write_http plugin for rhel7?

I have tried neither collectd_exporter (i.e. pushing metrics with this project), nor write_http (pulling metrics from collectd). I'm using write_prometheus plugin from collectd, and that works fine for me...

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

2 participants