From owner-svn-ports-all@freebsd.org Fri May 8 08:46:50 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDE5F2C7A99; Fri, 8 May 2020 08:46:50 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49JP8B5Xwwz4QY8; Fri, 8 May 2020 08:46:50 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B9A47278F9; Fri, 8 May 2020 08:46:50 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0488ko4r031956; Fri, 8 May 2020 08:46:50 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0488kn2G031949; Fri, 8 May 2020 08:46:49 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202005080846.0488kn2G031949@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 8 May 2020 08:46:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r534336 - in head/devel: . p5-Metrics-Any X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . p5-Metrics-Any X-SVN-Commit-Revision: 534336 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.32 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 May 2020 08:46:50 -0000 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 +# $FreeBSD$ + +PORTNAME= Metrics-Any +PORTVERSION= 0.03 +CATEGORIES= devel perl5 +MASTER_SITES= CPAN +MASTER_SITE_SUBDIR= CPAN:PEVANS +PKGNAMEPREFIX= p5- + +MAINTAINER= sunpoet@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 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