I created a NFSv4 exporter

809 views
Skip to first unread message

Arnar Ingason

unread,
Nov 24, 2016, 12:05:48 PM11/24/16
to Prometheus Developers
I was looking for a NFS exporter and couldn't find one. So I made my own.

There is a lot of data in /proc/net/rpc/nfsd that I'm not sure what means so I'm not exporting it all.

But anyway, if someone is interested, here it is: https://github.com/arnarg/nfs_exporter

Brian Brazil

unread,
Nov 24, 2016, 12:12:46 PM11/24/16
to Arnar Ingason, Prometheus Developers
Have you considered adding this as a module to the node_exporter?

--

Ben Kochie

unread,
Nov 24, 2016, 12:25:01 PM11/24/16
to Brian Brazil, Arnar Ingason, Prometheus Developers
We're tracking NFS stats for node_exporter here: https://github.com/prometheus/node_exporter/issues/108

I was planning to add the metrics from /proc/self/mountstats as it contains more details than /proc/net/rpc/nfsd.

--
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/CAHJKeLonSMbM47pmuoxswvkxOTRjfg51HqGBFJj95kp1ybo7Mw%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

Arnar Ingason

unread,
Nov 24, 2016, 1:01:38 PM11/24/16
to Prometheus Developers, gra...@gmail.com
That had not occurred to me but makes the most sense! Unfortunately I have never used golang before.

Arnar Ingason

unread,
Nov 24, 2016, 1:09:21 PM11/24/16
to Prometheus Developers, brian....@robustperception.io
Isn't that for a mounted NFS share on the client though? My use case was to get the stats for the server, hence /proc/net/rpc/nfsd


On Thursday, November 24, 2016 at 5:25:01 PM UTC, Ben Kochie wrote:
We're tracking NFS stats for node_exporter here: https://github.com/prometheus/node_exporter/issues/108

I was planning to add the metrics from /proc/self/mountstats as it contains more details than /proc/net/rpc/nfsd.
On Thu, Nov 24, 2016 at 6:12 PM, Brian Brazil <brian....@robustperception.io> wrote:
On 24 November 2016 at 17:05, Arnar Ingason <gra...@gmail.com> wrote:
I was looking for a NFS exporter and couldn't find one. So I made my own.

There is a lot of data in /proc/net/rpc/nfsd that I'm not sure what means so I'm not exporting it all.

But anyway, if someone is interested, here it is: https://github.com/arnarg/nfs_exporter

Have you considered adding this as a module to the node_exporter?

--

--
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.

Ben Kochie

unread,
Nov 24, 2016, 2:34:30 PM11/24/16
to Arnar Ingason, Prometheus Developers, Brian Brazil
Yes, you're right.  This would be useful for monitoring the server side of the metrics.

On Thu, Nov 24, 2016 at 7:09 PM, Arnar Ingason <gra...@gmail.com> wrote:
Isn't that for a mounted NFS share on the client though? My use case was to get the stats for the server, hence /proc/net/rpc/nfsd

On Thursday, November 24, 2016 at 5:25:01 PM UTC, Ben Kochie wrote:
We're tracking NFS stats for node_exporter here: https://github.com/prometheus/node_exporter/issues/108

I was planning to add the metrics from /proc/self/mountstats as it contains more details than /proc/net/rpc/nfsd.
On Thu, Nov 24, 2016 at 6:12 PM, Brian Brazil <brian....@robustperception.io> wrote:
On 24 November 2016 at 17:05, Arnar Ingason <gra...@gmail.com> wrote:
I was looking for a NFS exporter and couldn't find one. So I made my own.

There is a lot of data in /proc/net/rpc/nfsd that I'm not sure what means so I'm not exporting it all.

But anyway, if someone is interested, here it is: https://github.com/arnarg/nfs_exporter

Have you considered adding this as a module to the node_exporter?

--

--
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.

--
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.

Arnar Ingason

unread,
Nov 24, 2016, 2:46:09 PM11/24/16
to Prometheus Developers, gra...@gmail.com, brian....@robustperception.io
Yeah, I suppose I should have called it nfsd_exporter or something.

Do you think it would be a good idea to have separate modules in node_exporter for nfs and nfsd? Since not everything that mounts shares has a server and vice versa.


On Thursday, November 24, 2016 at 7:34:30 PM UTC, Ben Kochie wrote:
Yes, you're right.  This would be useful for monitoring the server side of the metrics.
On Thu, Nov 24, 2016 at 7:09 PM, Arnar Ingason <gra...@gmail.com> wrote:
Isn't that for a mounted NFS share on the client though? My use case was to get the stats for the server, hence /proc/net/rpc/nfsd

On Thursday, November 24, 2016 at 5:25:01 PM UTC, Ben Kochie wrote:
We're tracking NFS stats for node_exporter here: https://github.com/prometheus/node_exporter/issues/108

I was planning to add the metrics from /proc/self/mountstats as it contains more details than /proc/net/rpc/nfsd.
On Thu, Nov 24, 2016 at 6:12 PM, Brian Brazil <brian....@robustperception.io> wrote:
On 24 November 2016 at 17:05, Arnar Ingason <gra...@gmail.com> wrote:
I was looking for a NFS exporter and couldn't find one. So I made my own.

There is a lot of data in /proc/net/rpc/nfsd that I'm not sure what means so I'm not exporting it all.

But anyway, if someone is interested, here it is: https://github.com/arnarg/nfs_exporter

Have you considered adding this as a module to the node_exporter?

--

--
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.

--
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.

Richard Hartmann

unread,
Nov 24, 2016, 2:47:27 PM11/24/16
to Arnar Ingason, Prometheus Developers, Brian Brazil

Yes, please separate client and server module.

Richard

Sent by mobile; excuse my brevity.

Arnar Ingason

unread,
Nov 24, 2016, 3:05:03 PM11/24/16
to Prometheus Developers
I'm willing to give nfsd a go (heh, pun not intended) if no one beats me to it.

ARN NN

unread,
Jan 24, 2018, 11:25:05 PM1/24/18
to Prometheus Developers
Hi All,

Do we know if the exporter for NFS servers was implmented.
I can't seem to find much detail about it or how to enable it specifically for servers.

thanks
arn

Ben Kochie

unread,
Jan 25, 2018, 3:43:40 AM1/25/18
to ARN NN, Prometheus Developers
We just finished adding linux NFS server metrics parsing to the procfs library.  

--
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.

Ben Kochie

unread,
Jan 25, 2018, 3:45:16 AM1/25/18
to ARN NN, Prometheus Developers

On Thu, Jan 25, 2018 at 9:43 AM, Ben Kochie <sup...@gmail.com> wrote:
We just finished adding linux NFS server metrics parsing to the procfs library.  
On Thu, Jan 25, 2018 at 5:25 AM, ARN NN <arn....@gmail.com> wrote:
Hi All,

Do we know if the exporter for NFS servers was implmented.
I can't seem to find much detail about it or how to enable it specifically for servers.

thanks
arn


On Thursday, November 24, 2016 at 12:05:03 PM UTC-8, Arnar Ingason wrote:
I'm willing to give nfsd a go (heh, pun not intended) if no one beats me to it.

On Thursday, November 24, 2016 at 7:47:27 PM UTC, Richard Hartmann wrote:

Yes, please separate client and server module.

Richard

Sent by mobile; excuse my brevity.

--
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-developers@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages