Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2016 16:25:02 +0000
From:      Steven Hartland <killing@multiplay.co.uk>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Sysctl as a Service, or: making sysctl(3) more friendly for monitoring systems
Message-ID:  <de9641a2-e270-ca51-723f-7c6b8f409364@multiplay.co.uk>
In-Reply-To: <CALxJwdMWeBOFAyxc-iccvjmk3hajoL=76jSbqYT54vOTCV=fFQ@mail.gmail.com>
References:  <CABh_MKk87hJTsu1ETX8Ffq9E8gqRPELeSEKzf1jKk_wwUROgAw@mail.gmail.com> <eea0aa41-2bbc-0ddc-d951-f495c5ba2341@freebsd.org> <200A5D70-24CE-4843-B99D-E10A2AF4F68F@FreeBSD.org> <CABh_MKkAoTj4wA9oTz-fK0rokgMfuiUWpLt6t=qRXy6vvCh7rg@mail.gmail.com> <CALxJwdMWeBOFAyxc-iccvjmk3hajoL=76jSbqYT54vOTCV=fFQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Gathering every sysctl would case issues as some are very heavy and if 
called regularly would cause noticeable stalls.

On 13/12/2016 16:16, Mark Rushakoff wrote:
> In Prometheus' node_exporter, it looks like they're calling sysctl to grab
> just
> CPU or just memory, etc., metrics.
>
> On the InfluxDB side of things, I'm not seeing any Telegraf plugin to
> monitor
> sysctl in a generic way, although you could probably emit InfluxDB line
> protocol pretty easily from the exporter tool or something similar to that.
>
> My impression, from a monitoring perspective, is that there isn't much
> demand
> to gather _everything_ in sysctl in a single call, although categorized
> subsets
> might be appealing.
>
>
> On Mon, Dec 12, 2016 at 5:34 AM, Ed Schouten <ed@nuxi.nl> wrote:
>
>> Hi Jonathan,
>>
>> 2016-12-11 21:12 GMT+01:00 Jonathan Anderson <jonathan@freebsd.org>:
>>> Rather than doing lots of system calls to
>>> enumerate clearly-related sysctl values, it would be very cool to do one
>>> system call and then inspect the resulting data structure in memory.
>> I'm not sure it's worth tackling this problem at this time. My current
>> version of the exporter is already pretty fast:
>>
>> $ time ./prometheus_sysctl_exporter | wc -l
>>          0.00 real         0.00 user         0.00 sys
>>      3162
>>
>> If our sysctl tree would get substantially larger at some point, we
>> should of course revisit this.
>>
>> --
>> Ed Schouten <ed@nuxi.nl>
>> Nuxi, 's-Hertogenbosch, the Netherlands
>> KvK-nr.: 62051717
>> _______________________________________________
>> freebsd-hackers@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
>> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
>>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?de9641a2-e270-ca51-723f-7c6b8f409364>