-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Expose Metric details #323
Comments
@beorn7 What do you think? |
This is one of the tasks that would require more work to review than to implement it myself. I acknowledge that it is bad that it takes so long to get done. I blame a very exhausting situation in both my professional and private life. Expectations are that I will have more time for client_golang soon(tm), so that's the only promise I can give. About changing the |
Since this is exactly what #58 is about, I close it as a dupe. |
@AlekSi You might want to look at what we're doing over in the blackbox exporter for testing for inspiration: https://github.com/prometheus/blackbox_exporter/blob/master/utils_test.go (though this doesn't support labels, and we're checking for every single metric due to the unusual nature of this exporter.) |
Thanks. I think I will move that common code to our shared repo for exporters (https://github.com/percona/exporter_shared). Feel free to ping me if I can help with anything |
Thanks for the offer. I'm planning to flag some issues as "suitable for new contributors" or something. Many of the existing issues are quite loaded with years of context hidden behind them. Others are pretty straightforward. |
Right now we use the following code in our exporter tests:
(
getName
is a hack from #322)I would like to have something like that in that package, not to copy&paste it across several exporters.
Alternatively, I would like to add methods to
Metric
interface. That feels like a more natural solution to me – type exposes information about itself directly, not via serializing and deserializing. What do you think?That's a subtask of #58, but I want to discuss (and possibly implement) it separately if it is fine with you.
The text was updated successfully, but these errors were encountered: