Bug 238436 - [NEW PORT] sysutils/jail_exporter: Prometheus exporter for FreeBSD jail metrics
Summary: [NEW PORT] sysutils/jail_exporter: Prometheus exporter for FreeBSD jail metrics
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL: https://github.com/phyber/jail_exporter
Keywords: feature
Depends on:
Reported: 2019-06-09 14:08 UTC by David O'Rourke
Modified: 2020-11-02 16:20 UTC (History)
3 users (show)

See Also:

sysutils/jail_exporter: New port v0.9.10 (43.55 KB, patch)
2019-06-09 14:08 UTC, David O'Rourke
no flags Details | Diff
sysutils/jail_exporter: v0.13.0 (42.57 KB, patch)
2020-06-21 00:02 UTC, David O'Rourke
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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`.

Comment 1 Michael Zhilin freebsd_committer 2019-06-10 08:24:32 UTC

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?

Comment 2 David O'Rourke 2019-06-11 10:37:36 UTC

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 :)

Comment 3 David O'Rourke 2020-06-21 00:02:44 UTC
Created attachment 215832 [details]
sysutils/jail_exporter: v0.13.0

Update diff to Jail Exporter 0.13.0
Comment 4 Kubilay Kocak freebsd_committer freebsd_triage 2020-06-21 10:58:43 UTC
Comment on attachment 215832 [details]
sysutils/jail_exporter: v0.13.0

^Triage: New ports don't (can't) have maintainer approval yet (they're not yet in the tree)
Comment 5 commit-hook freebsd_committer 2020-11-02 16:17:22 UTC
A commit references this bug:

Author: mikael
Date: Mon Nov  2 16:16:56 UTC 2020
New revision: 553916
URL: https://svnweb.freebsd.org/changeset/ports/553916

  sysutils/jail_exporter: create ports

  Jail Exporter is a Prometheus exporter for FreeBSD jail metrics as reported by

  WWW: https://github.com/phyber/jail_exporter

  PR:		238436
  Submitted by:	David O'Rourke <dor.bsd@xm0.uk>

Comment 6 Mikael Urankar freebsd_committer 2020-11-02 16:20:32 UTC