svn commit: r534336 - in head/devel: . p5-Metrics-Any
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Fri May 8 08:46:50 UTC 2020
Author: sunpoet
Date: Fri May 8 08:46:49 2020
New Revision: 534336
URL: https://svnweb.freebsd.org/changeset/ports/534336
Log:
Add p5-Metrics-Any 0.03
Metrics::Any provides a central location for modules to report monitoring
metrics, such as counters of the number of times interesting events have
happened, and programs to collect up and send those metrics to monitoring
services.
Inspired by Log::Any, this module splits the overall problem into two sides.
Modules wishing to provide metrics for monitoring purposes can use the use
Metrics::Any statement to obtain a collector into which they can report metric
events. By default this collector doesn't actually do anything, so modules can
easily use it without adding extra specific dependencies for specific reporting.
A program using one or more such modules can apply a different policy and
request a particular adapter implementation in order to actually report these
metrics to some external system, by using the use Metrics::Any::Adapter
statement.
This separation of concerns allows module authors to write code which will
report metrics without needing to care about the exact mechanism of that
reporting (as well as to write code which does not itself depend on the code
required to perform that reporting).
WWW: https://metacpan.org/release/Metrics-Any
Added:
head/devel/p5-Metrics-Any/
head/devel/p5-Metrics-Any/Makefile (contents, props changed)
head/devel/p5-Metrics-Any/distinfo (contents, props changed)
head/devel/p5-Metrics-Any/pkg-descr (contents, props changed)
head/devel/p5-Metrics-Any/pkg-plist (contents, props changed)
Modified:
head/devel/Makefile
Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile Fri May 8 08:38:50 2020 (r534335)
+++ head/devel/Makefile Fri May 8 08:46:49 2020 (r534336)
@@ -2694,6 +2694,7 @@
SUBDIR += p5-Method-Alias
SUBDIR += p5-Method-Signatures
SUBDIR += p5-Method-Signatures-Simple
+ SUBDIR += p5-Metrics-Any
SUBDIR += p5-Minilla
SUBDIR += p5-Minion
SUBDIR += p5-Mixin-Event-Dispatch
Added: head/devel/p5-Metrics-Any/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Metrics-Any/Makefile Fri May 8 08:46:49 2020 (r534336)
@@ -0,0 +1,23 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= Metrics-Any
+PORTVERSION= 0.03
+CATEGORIES= devel perl5
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:PEVANS
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= sunpoet at FreeBSD.org
+COMMENT= Abstract collection of monitoring metrics
+
+LICENSE= ART10 GPLv1+
+LICENSE_COMB= dual
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= perl5
+USE_PERL5= modbuild
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
Added: head/devel/p5-Metrics-Any/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Metrics-Any/distinfo Fri May 8 08:46:49 2020 (r534336)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1588777605
+SHA256 (Metrics-Any-0.03.tar.gz) = 062e3d9e285108ca44023b2f8f2e4cacfeabad3d75e2f0877e2c8d74f6b90284
+SIZE (Metrics-Any-0.03.tar.gz) = 18875
Added: head/devel/p5-Metrics-Any/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Metrics-Any/pkg-descr Fri May 8 08:46:49 2020 (r534336)
@@ -0,0 +1,22 @@
+Metrics::Any provides a central location for modules to report monitoring
+metrics, such as counters of the number of times interesting events have
+happened, and programs to collect up and send those metrics to monitoring
+services.
+
+Inspired by Log::Any, this module splits the overall problem into two sides.
+Modules wishing to provide metrics for monitoring purposes can use the use
+Metrics::Any statement to obtain a collector into which they can report metric
+events. By default this collector doesn't actually do anything, so modules can
+easily use it without adding extra specific dependencies for specific reporting.
+
+A program using one or more such modules can apply a different policy and
+request a particular adapter implementation in order to actually report these
+metrics to some external system, by using the use Metrics::Any::Adapter
+statement.
+
+This separation of concerns allows module authors to write code which will
+report metrics without needing to care about the exact mechanism of that
+reporting (as well as to write code which does not itself depend on the code
+required to perform that reporting).
+
+WWW: https://metacpan.org/release/Metrics-Any
Added: head/devel/p5-Metrics-Any/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/devel/p5-Metrics-Any/pkg-plist Fri May 8 08:46:49 2020 (r534336)
@@ -0,0 +1,9 @@
+%%SITE_PERL%%/Metrics/Any.pm
+%%SITE_PERL%%/Metrics/Any/Adapter.pm
+%%SITE_PERL%%/Metrics/Any/Adapter/Null.pm
+%%SITE_PERL%%/Metrics/Any/Adapter/Test.pm
+%%SITE_PERL%%/Metrics/Any/Collector.pm
+%%PERL5_MAN3%%/Metrics::Any.3.gz
+%%PERL5_MAN3%%/Metrics::Any::Adapter::Null.3.gz
+%%PERL5_MAN3%%/Metrics::Any::Adapter::Test.3.gz
+%%PERL5_MAN3%%/Metrics::Any::Collector.3.gz
More information about the svn-ports-all
mailing list