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

Build error #1

Open
lord2800 opened this issue Nov 8, 2016 · 1 comment
Open

Build error #1

lord2800 opened this issue Nov 8, 2016 · 1 comment
Labels

Comments

@lord2800
Copy link

lord2800 commented Nov 8, 2016

I'm getting this build error:

./powerdns_exporter.go:260: e.counterVecMetrics[def.id].WithLabelValues(label).Set undefined (type prometheus.Counter has no field or method Set)
make: *** [powerdns_exporter] Error 2
Makefile.COMMON:97: recipe for target 'powerdns_exporter' failed

Google says that prometheus.Counter has been deprecated. Thoughts?

@janeczku
Copy link
Owner

janeczku commented Mar 2, 2017

Specifically the Set() method for counter is deprecated. It seems we need to use Gauges now.

@janeczku janeczku added the bug label Mar 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants