Build capability:
export missing relevant values (stat):
node_procs_running
node_procs_blocked
node_forks (sysctl)
node_context_switches (sysctl)
node_intr (sysctl)
export missing relevant values (disk):
node_disk_io_time_ms (devstat call)
node_disk_sectors_read (devstat call)
node_disk_sectors_written (devstat call)
Why not overlap linux labels where it makes sense to do so? (so the prometheus consoles mostly work out of the box)
move node_cpu_seconds_total from cpu to stat node_cpu to align with linux
rename relevant memory counters to match /proc/mem, add missing:
node_memory_Buffers (sysctl)
node_memory_SwapTotal (sysctl)
node_memory_SwapFree (kmv_ call)
Hello!Been playing around with node_exporter on FreeBSD. Would like some feedback on some thoughts I've had about implementing functionally before I sit down, code it, and throw it over the wall. :DI anticipate these to be some series of smaller projects, assuming that we are going ahead with a roll-out internally, but here's the big picture:Build capability:
export missing relevant values (stat):
node_procs_running
node_procs_blocked
node_forks (sysctl)
node_context_switches (sysctl)
node_intr (sysctl)
export missing relevant values (disk):
node_disk_io_time_ms (devstat call)
node_disk_sectors_read (devstat call)
node_disk_sectors_written (devstat call)
- Export ZFS values to align with linux_zfs when work there settles down a bit
Why not overlap linux labels where it makes sense to do so? (so the prometheus consoles mostly work out of the box)
move node_cpu_seconds_total from cpu to stat node_cpu to align with linux
rename relevant memory counters to match /proc/mem, add missing:
node_memory_Buffers (sysctl)node_memory_SwapTotal (sysctl)node_memory_SwapFree (kmv_ call)
Thoughts, feedback, discussion welcome and appreciated.
Derek
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/61b280b6-9c13-43e1-b269-c25485599bb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6c7b7100-e8a6-44fb-b32e-2385cc1ad49a%40googlegroups.com.
For Linux, there is a start made factoring out the "model" into https://github.com/prometheus/procfs – would something similar make sense for *BSD?
On Fri, Feb 24, 2017 at 12:10 PM Derek M <derek.marcotte@experiencepoint.com> wrote:
As mentioned (and have received good feedback on), I've submitted some PRs with regard to FreeBSD support.--I've got a new branch that builds on the memory branch, using the kvm_ calls to determine swap usage:I have some architectural concerns with respect to the way that things get split out. It would seem to me that the modules are organized loosely by "where" as opposed to separating the "where" and the "what".Put differently, it would make sense to me to have a model+view separation, where there are drivers that know how to read from say, sysctl + kvm, and the view drivers consume and transform the data from the models, and present them in a related fashion. Specifically, it would seem that swap used should live under the memory utilization section, and that it's an implementation detail that FreeBSD exposes this through kvm_ calls.Looking forward to feedback/thoughtsDerek
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6c7b7100-e8a6-44fb-b32e-2385cc1ad49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFU3N5VAMV%2Bh4T19w6oF2W2OVH4z45tADgO7hRozp0pU2FgR0Q%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
Agreed, extracting more stuff into 'model' packages like procfs probably makes sense and is easier to coordinate than a big refactoring of the node-exporter. But I'm open either way.
On Mon, Feb 27, 2017 at 11:34 AM, Matthias Rampke <m...@soundcloud.com> wrote:
For Linux, there is a start made factoring out the "model" into https://github.com/prometheus/procfs – would something similar make sense for *BSD?
On Fri, Feb 24, 2017 at 12:10 PM Derek M <derek.m...@experiencepoint.com> wrote:
As mentioned (and have received good feedback on), I've submitted some PRs with regard to FreeBSD support.--I've got a new branch that builds on the memory branch, using the kvm_ calls to determine swap usage:I have some architectural concerns with respect to the way that things get split out. It would seem to me that the modules are organized loosely by "where" as opposed to separating the "where" and the "what".Put differently, it would make sense to me to have a model+view separation, where there are drivers that know how to read from say, sysctl + kvm, and the view drivers consume and transform the data from the models, and present them in a related fashion. Specifically, it would seem that swap used should live under the memory utilization section, and that it's an implementation detail that FreeBSD exposes this through kvm_ calls.Looking forward to feedback/thoughtsDerek
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6c7b7100-e8a6-44fb-b32e-2385cc1ad49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFU3N5VAMV%2Bh4T19w6oF2W2OVH4z45tADgO7hRozp0pU2FgR0Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CANi%3DR%3D1nF9FkRb6%2BM51ZTwn3u4JWJHFE8JNRdkey_W5baNdJGQ%40mail.gmail.com.
I agree that the naming of some of the collectors is not ideal right now and your proposal to group them around "what they expose" makes sense to me. Similar to #150 concerned with consolidating metric names, consolidating collector names seems sound.
On Mon, Feb 27, 2017 at 6:42 AM Johannes Ziemke <fi...@freigeist.org> wrote:
Agreed, extracting more stuff into 'model' packages like procfs probably makes sense and is easier to coordinate than a big refactoring of the node-exporter. But I'm open either way.
On Mon, Feb 27, 2017 at 11:34 AM, Matthias Rampke <m...@soundcloud.com> wrote:
For Linux, there is a start made factoring out the "model" into https://github.com/prometheus/procfs – would something similar make sense for *BSD?
On Fri, Feb 24, 2017 at 12:10 PM Derek M <derek.m...@experiencepoint.com> wrote:
As mentioned (and have received good feedback on), I've submitted some PRs with regard to FreeBSD support.--I've got a new branch that builds on the memory branch, using the kvm_ calls to determine swap usage:I have some architectural concerns with respect to the way that things get split out. It would seem to me that the modules are organized loosely by "where" as opposed to separating the "where" and the "what".Put differently, it would make sense to me to have a model+view separation, where there are drivers that know how to read from say, sysctl + kvm, and the view drivers consume and transform the data from the models, and present them in a related fashion. Specifically, it would seem that swap used should live under the memory utilization section, and that it's an implementation detail that FreeBSD exposes this through kvm_ calls.Looking forward to feedback/thoughtsDerek
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6c7b7100-e8a6-44fb-b32e-2385cc1ad49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFU3N5VAMV%2Bh4T19w6oF2W2OVH4z45tADgO7hRozp0pU2FgR0Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
node_exporter -> namespace("meminfo")(BSD) -> sysctl
-> kvm
-> namespace("meminfo")(Darwin) -> sysctl
-> host_statistics
-> namespace("meminfo")(Linux) -> procfsDerek
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6c7b7100-e8a6-44fb-b32e-2385cc1ad49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFU3N5VAMV%2Bh4T19w6oF2W2OVH4z45tADgO7hRozp0pU2FgR0Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CANi%3DR%3D1nF9FkRb6%2BM51ZTwn3u4JWJHFE8JNRdkey_W5baNdJGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/83840971-7ffe-4509-b1d5-8310083c1e50%40googlegroups.com.To post to this group, send email to prometheus-developers@googlegroups.com.
Derek
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6c7b7100-e8a6-44fb-b32e-2385cc1ad49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFU3N5VAMV%2Bh4T19w6oF2W2OVH4z45tADgO7hRozp0pU2FgR0Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CANi%3DR%3D1nF9FkRb6%2BM51ZTwn3u4JWJHFE8JNRdkey_W5baNdJGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
Thanks for your thoughts. I've had this kvm/stuff stuff hanging around for about a month in my tree, so I thought I'd get it committed (good) before a larger decision is made regarding the structure of things (perfect).In this case, I feel hamstrung by the constraints imposed in meminfo.go, for example:
Derek
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/6c7b7100-e8a6-44fb-b32e-2385cc1ad49a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CAFU3N5VAMV%2Bh4T19w6oF2W2OVH4z45tADgO7hRozp0pU2FgR0Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
To post to this group, send email to prometheus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/CANi%3DR%3D1nF9FkRb6%2BM51ZTwn3u4JWJHFE8JNRdkey_W5baNdJGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/83840971-7ffe-4509-b1d5-8310083c1e50%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-developers+unsub...@googlegroups.com.
To post to this group, send email to prometheus-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/c7845ca4-e528-496d-9370-9310ba54cd3a%40googlegroups.com.