1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

net-mgmt/p5-Prometheus-Tiny: Add new port

Prometheus::Tiny is a minimal metrics client for the Prometheus
time-series database.

Approved by:	hrs (mentor)
This commit is contained in:
Norikatsu Shigemura 2024-03-05 01:37:58 +09:00
parent 647eff0a34
commit dc54c23abc
No known key found for this signature in database
GPG Key ID: 2D010D1315CC541F
4 changed files with 45 additions and 0 deletions

View File

@ -266,6 +266,7 @@
SUBDIR += p5-NetAddr-IP-Lite
SUBDIR += p5-NetApp
SUBDIR += p5-POE-Component-SNMP
SUBDIR += p5-Prometheus-Tiny
SUBDIR += p5-RDR-Collector
SUBDIR += p5-SNMP-Info
SUBDIR += p5-SNMP-MIB-Compiler

View File

@ -0,0 +1,28 @@
PORTNAME= Prometheus-Tiny
PORTVERSION= 0.011
CATEGORIES= net-mgmt perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= nork@FreeBSD.org
COMMENT= Tiny Prometheus client
WWW= https://metacpan.org/release/Prometheus-Tiny
LICENSE= ART10 GPLv1+
LICENSE_COMB= dual
#TEST_DEPENDS= p5-HTTP-Request-Common>0:p5-HTTP-Request-Common \
# p5-Plack-Test>0:p5-Plack-Test \
# p5-Test-Exception>0:devel/p5-Test-Exception \
# p5-Test-Warn>0:devel/p5-Test-Warn
USES= perl5
USE_PERL5= configure
NO_ARCH= yes
NO_TEST= yes # not work by a lack of some ports #
PLIST_FILES= ${SITE_MAN3_REL}/Prometheus::Tiny.3.gz \
${SITE_PERL_REL}/Prometheus/Tiny.pm
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1708678167
SHA256 (Prometheus-Tiny-0.011.tar.gz) = 8db1480f3c89eb86d414cf5f47feed8df3112b38c463cb8f65b4c064e20b1e13
SIZE (Prometheus-Tiny-0.011.tar.gz) = 18129

View File

@ -0,0 +1,13 @@
Prometheus::Tiny is a minimal metrics client for the Prometheus
time-series database.
It does the following things differently to Net::Prometheus:
- No setup. You don't need to pre-declare metrics to get something useful.
- Labels are passed in a hash. Positional parameters get awkward.
- No inbuilt collectors, PSGI apps, etc. Just the metrics.
- Doesn't know anything about different metric types. You get what you ask for.
These could all be pros or cons, depending on what you need. For me,
I needed a compact base that I could back on a shared memory region.
See Prometheus::Tiny::Shared for that!