Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Dec 2016 19:12:02 +0100
From:      Ed Schouten <ed@nuxi.nl>
To:        Mark Rushakoff <mark@influxdb.com>
Cc:        Jonathan Anderson <jonathan@freebsd.org>, FreeBSD Hackers <freebsd-hackers@freebsd.org>,  Allan Jude <allanjude@freebsd.org>
Subject:   Re: Sysctl as a Service, or: making sysctl(3) more friendly for monitoring systems
Message-ID:  <CABh_MKkUQiA_ijtsU_yUHd3o-HaDeyUU79gL7MVXrDhvOz0C2g@mail.gmail.com>
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
2016-12-13 17:16 GMT+01:00 Mark Rushakoff <mark@influxdb.com>:
> 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.

Exactly. Right now my exporter simply dumps everything, but my
intention it so that you can also pass in a list of prefixes on the
command line, like this:

$ prometheus_sysctl_exporter hw.acpi.thermal kern.openfiles kern.maxfiles

This will make it export only ACPI thermal metrics and selected values
from kern. Still, the advantage of having something like this is that
it significantly lowers the barrier for accessing such metrics. Right
now we first need to add it to FreeBSD and then hope that someone out
there takes the effort to write a plugin.

Exporting all metrics is also not that bad if that's really what
you're interested in. On my simple system the exporter only returns
about ~1500 metrics, as it can only extract sysctls with integer
values. From personal experience I know that Prometheus can handle
that easily, especially when it happens on the same physical network,
where bandwidth is not an issue. Discarding uninteresting data can
also be performed when federating.

-- 
Ed Schouten <ed@nuxi.nl>
Nuxi, 's-Hertogenbosch, the Netherlands
KvK-nr.: 62051717



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABh_MKkUQiA_ijtsU_yUHd3o-HaDeyUU79gL7MVXrDhvOz0C2g>