Bug 238436

Summary: [NEW PORT] sysutils/jail_exporter: A Prometheus exporter for jail metrics
Product: Ports & Packages Reporter: David O'Rourke <dor.bsd>
Component: Individual Port(s)Assignee: freebsd-ports-bugs mailing list <ports-bugs>
Status: New ---    
Severity: Affects Only Me CC: mizhka
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
sysutils/jail_exporter: New port v0.9.10 none

Description David O'Rourke 2019-06-09 14:08:42 UTC
Created attachment 204927 [details]
sysutils/jail_exporter: New port v0.9.10

This diff adds a new port, sysutils/jail_exporter. A Prometheus exporter for jail metrics, written in Rust.

Upstream and basic documentation is located at https://github.com/phyber/jail_exporter

The port passes `portlint` and `poudriere testport`.

-David
Comment 1 Michael Zhilin 2019-06-10 08:24:32 UTC
Hi,

It looks interesting, but I would like to get more details how it works. Does it export sysctl variables? Does it just straigh-forward export or transformed somehow?

Thanks!
Comment 2 David O'Rourke 2019-06-11 10:37:36 UTC
Hi,

sysctl variables aren't exported by this exporter. For each jail it takes it's metrics from those listed under the RESOURCES section in rctl(8), no transformations are performed. On a given scrape, whatever rctl_get_racct (via the rctl crate) reports is what the exporter will show.

The man page and README hopefully cover enough to let users know where the information is coming from :)

-David