[New Port] sysutils/dwatch-json: FreeBSD dwatch profiles to produce JSON logs

DTrace module for FreeBSD dwatch(1) to produce JSON logs. JSON (JavaScript
Object Notation) is easily consumed by log aggregators such as Kafka and
Telegraf and visualizers like Vizceral. With these modules you can get
data out of the kernel/userland for use in such aggregators/visualizers.

Reviewed by:	mat (previous version)
Approved by:	mat (mentor)
Sponsored by:	Smule, Inc.
Differential Revision:	https://reviews.freebsd.org/D17316
This commit is contained in:
Devin Teske 2018-10-02 22:12:18 +00:00
parent 060ac59669
commit 1a8047da39
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=481138
5 changed files with 55 additions and 0 deletions

View File

@ -296,6 +296,7 @@
SUBDIR += dvtm
SUBDIR += dwatch
SUBDIR += dwatch-gource
SUBDIR += dwatch-json
SUBDIR += dwatch-pwsnoop
SUBDIR += e2fsprogs
SUBDIR += ec2-scripts

View File

@ -0,0 +1,38 @@
# $FreeBSD$
PORTNAME= dwatch-json
DISTVERSION= 0.4.1
CATEGORIES= sysutils
MAINTAINER= dteske@FreeBSD.org
COMMENT= FreeBSD dwatch profiles to produce JSON logs
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
USE_GITHUB= yes
GH_ACCOUNT= FrauBSD
NO_ARCH= yes
NO_BUILD= yes
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
.if ${OSVERSION} < 1101516 || (${OSVERSION} >= 1200000 && ${OSVERSION} < 1200065)
IGNORE= requires dwatch available in recent FreeBSD 11 or 12
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/dwatch
${INSTALL_DATA} ${WRKSRC}/json-* ${STAGEDIR}${PREFIX}/libexec/dwatch
${INSTALL_DATA} ${WRKSRC}/dwatch-json-net.conf ${STAGEDIR}${PREFIX}/etc/dwatch-json-net.conf.sample
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1538436525
SHA256 (FrauBSD-dwatch-json-0.4.1_GH0.tar.gz) = 49e5f6ca8a2254f61a64b30d629b1f858cd6c2cd757ae22c996343dde048f6fd
SIZE (FrauBSD-dwatch-json-0.4.1_GH0.tar.gz) = 9000

View File

@ -0,0 +1,6 @@
DTrace module for FreeBSD dwatch(1) to produce JSON logs. JSON (JavaScript
Object Notation) is easily consumed by log aggregators such as Kafka and
Telegraf and visualizers like Vizceral. With these modules you can get
data out of the kernel/userland for use in such aggregators/visualizers.
WWW: https://fraubsd.org/dwatch-json/

View File

@ -0,0 +1,7 @@
etc/dwatch-json-net.conf.sample
libexec/dwatch/json-net
libexec/dwatch/json-net-config
libexec/dwatch/json-net-config-raw
libexec/dwatch/json-net-raw
libexec/dwatch/json-net-top
libexec/dwatch/json-net-top-raw