-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Dragonfly devstat #323
Dragonfly devstat #323
Conversation
device := fmt.Sprintf("%s%d", C.GoString(&stats.device[0]), stats.unit) | ||
|
||
c.bytes_total.With(prometheus.Labels{"device": device}).Set(float64(stats.bytes)) | ||
c.transfers_total.With(prometheus.Labels{"device": device}).Set(float64(stats.transfers)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use ConstMetrics here
prometheus.GaugeOpts{ | ||
Namespace: Namespace, | ||
Subsystem: devstatSubsystem, | ||
Name: "blocks_per_second", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to removing all the unnecessary gauges
292e53f
to
189128e
Compare
@sdurrheimer any idea what's going on with the failures?
I'm compiling and running this locally so that seems to work, I'm not sure what's going on with this powerpc stuff? |
@stuartnelson3 Good question, this is pretty low level for me to really help, but the reason is maybe that all platforms doesn't support all GoInt size. For example, in the uname_linux.go collector is associated to 2 other files uname_linux_int8.go and uname_linux_uint8.go depending on the built platform. Maybe your new dragonfly collector is built during the Shouldn't this collector only be taken when building on/for dragonfly ? |
Yeah exactly, based on the file name This is also past my realm of experience/understanding. I believe dragonfly only runs on 64bit architecture, too. I'll see if I can figure out what's going on. |
I'm getting the same failure when I run Is there something that could have changed recently in the build container (in the last 4 days, since the last successful build)? Can you confirm whether building for |
@stuartnelson3 You're right, the latest release 0.13.0-rc.1 (and other commit on master) also failed for Need to find the commit responsible of this. EDIT: Looks like the problem is coming from #249 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the intersection between Prometheus users and DragonFly users is approximately @stuartnelson3 and me, I vote to merge this (but don't have the permissions to do so anymore).
ex parvo magnus :p |
Sorry for not looking into this earlier. I did some digging into the build history. It looks like this commit enabled |
Are there people wanting ppc support?? |
We can lookup download numbers via the GitHub API. On Mon, Nov 14, 2016, 19:23 stuart nelson notifications@github.com wrote:
|
Here's all the data I get:
EDIT: The release data starts at release |
Looking at the data for just 0.12 (
There are not so many ppc users compared to the rest.. While it would be nice to have these builds available, I think we need to get more frequent releases out the door. |
We've fixed master, please rebase to make circleci happy. |
189128e
to
e589a2b
Compare
Similar to the FreeBSD implementation, this exports data available from libdevstat. It's unfortunately less granular, but potentially still helpful.
https://www.dragonflybsd.org/cgi/web-man?command=devstat§ion=3
Question:
A few of the values returned from
compute_stats
are gauges whose values I believe could be computed with the counter values already exported. Would it be preferred to drop these rates exported by Dragonfly in favor of calculating them with Prometheus?@matthiasr