Bug 278446

Summary: net-mgmt/geom-exporter: new port: export libgeom statistics to Prometheus
Product: Ports & Packages Reporter: Alan Somers <asomers>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me CC: lapo
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
add the new port none

Description Alan Somers freebsd_committer freebsd_triage 2024-04-19 00:16:13 UTC
The geom-exporter exports libgeom statistics to Prometheus.  It provides basically the same information as net-mgmt/gstat-exporter, but more accurately since it bypasses gstat and accesses libgeom directly.
Comment 1 Alan Somers freebsd_committer freebsd_triage 2024-04-19 00:17:40 UTC
Created attachment 250072 [details]
add the new port
Comment 2 Lapo Luchini 2024-04-19 15:17:57 UTC
Niiiice! I didn't really like all the python dependencies.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-05-22 20:26:21 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3dae89d81ed53e92b56db78a4e41787f5f312934

commit 3dae89d81ed53e92b56db78a4e41787f5f312934
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2024-04-18 21:59:26 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2024-05-22 20:26:03 +0000

    net-mgmt/geom-exporter: new port

    The geom-exporter exports libgeom statistics to Prometheus.  It provides
    basically the same information as net-mgmt/gstat-exporter, but more
    accurately since it bypasses gstat and accesses libgeom directly.

    PR:             278446
    Sponsored by:   Axcient

 net-mgmt/Makefile                                  |   1 +
 net-mgmt/geom-exporter/Makefile (new)              |  34 ++++
 net-mgmt/geom-exporter/Makefile.crates (new)       | 101 ++++++++++
 net-mgmt/geom-exporter/distinfo (new)              | 205 +++++++++++++++++++++
 .../geom-exporter/files/geom_exporter.in (new)     |  48 +++++
 net-mgmt/geom-exporter/pkg-descr (new)             |   4 +
 6 files changed, 393 insertions(+)
Comment 4 Lapo Luchini 2024-06-17 07:39:53 UTC
JTLUK this is currently conflicting with gstat_exporter by re-using the TCP port reserved to that, I suggested upstream to register a new port and use that as default:
https://github.com/asomers/gstat-rs/issues/43