FreeBSD Bugzilla – Attachment 191091 Details for
Bug 224455
[NEW PORT] sysutils/grok_exporter: Export Prometheus metrics from arbitrary unstructured log data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
shar file
grok_exporter_0.2.3.shar (text/plain), 18.03 KB, created by
Gasol Wu
on 2018-03-01 07:31:21 UTC
(
hide
)
Description:
shar file
Filename:
MIME Type:
Creator:
Gasol Wu
Created:
2018-03-01 07:31:21 UTC
Size:
18.03 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># grok_exporter ># grok_exporter/Makefile ># grok_exporter/distinfo ># grok_exporter/pkg-descr ># grok_exporter/files ># grok_exporter/files/config.yml.in ># grok_exporter/files/grok_exporter.in ># grok_exporter/.Makefile.swp ># grok_exporter/pkg-plist ># >echo c - grok_exporter >mkdir -p grok_exporter > /dev/null 2>&1 >echo x - grok_exporter/Makefile >sed 's/^X//' >grok_exporter/Makefile << 'dc85aeb4e53f25957316ad4842a408cb' >X# Created by: Gasol Wu <gasol.wu@gmail.com> >X# $FreeBSD$ >X >XPORTNAME= grok_exporter >XPORTVERSION= 0.2.3 >XDISTVERSIONPREFIX=v >XCATEGORIES= sysutils >X >XMAINTAINER= gasol.wu@gmail.com >XCOMMENT= Export Prometheus metrics from arbitrary unstructured log data >X >XLICENSE= APACHE20 >XLICENSE_FILE= ${WRKSRC}/LICENSE >X >XONLY_FOR_ARCHS= amd64 >X >XLIB_DEPENDS= libonig.so:devel/oniguruma >X >XUSES= go >XUSE_GITHUB= yes >XGH_ACCOUNT= fstab logstash-plugins:plugins >XGH_PROJECT= logstash-patterns-core:plugins >XGH_TAGNAME= 6d25c13:plugins >X >XGO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} >XUSE_RC_SUBR= grok_exporter >XSUB_FILES= config.yml >X >Xdo-build: >X ${LN} -sf ${WRKSRC}/tailer/fileTailer_darwin.go ${WRKSRC}/tailer/fileTailer_freebsd.go >X @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build -o ${PORTNAME} .) >X >Xdo-install: >X ${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} >X ${MKDIR} ${STAGEDIR}${ETCDIR} >X ${INSTALL_DATA} ${WRKDIR}/config.yml ${STAGEDIR}${ETCDIR} >X @(cd ${WRKSRC} && ${COPYTREE_SHARE} example ${STAGEDIR}${DATADIR}) >X @(cd ${WRKSRC_plugins} && ${COPYTREE_SHARE} patterns ${STAGEDIR}${DATADIR}) >X >X.include <bsd.port.mk> >dc85aeb4e53f25957316ad4842a408cb >echo x - grok_exporter/distinfo >sed 's/^X//' >grok_exporter/distinfo << '769ecda7cc028b1ca13abd11b01d09cc' >XTIMESTAMP = 1513652246 >XSHA256 (fstab-grok_exporter-v0.2.3_GH0.tar.gz) = 2dd92d93b59979d409e11c2e5ca3fce28299529f63dde3423234264c0a846338 >XSIZE (fstab-grok_exporter-v0.2.3_GH0.tar.gz) = 470262 >XSHA256 (logstash-plugins-logstash-patterns-core-6d25c13_GH0.tar.gz) = 7f4986b695d82bcfd585b47635607267ce473a601df504672072b242ae7c607f >XSIZE (logstash-plugins-logstash-patterns-core-6d25c13_GH0.tar.gz) = 27383 >769ecda7cc028b1ca13abd11b01d09cc >echo x - grok_exporter/pkg-descr >sed 's/^X//' >grok_exporter/pkg-descr << '8ee0ad687ab2fb1bc17358f2ec2d347f' >XGrok is a tool to parse crappy unstructured log data into something structured >Xand queryable. Grok is heavily used in Logstash to provide log data as input for >XElasticSearch. >X >XGrok ships with about 120 predefined patterns for syslog logs, apache and other >Xwebserver logs, mysql logs, etc. It is easy to extend Grok with custom patterns. >X >XThe grok_exporter aims at porting Grok from the ELK stack to Prometheus >Xmonitoring. The goal is to use Grok patterns for extracting Prometheus metrics >Xfrom arbitrary log files. >X >XWWW: https://github.com/fstab/grok_exporter >8ee0ad687ab2fb1bc17358f2ec2d347f >echo c - grok_exporter/files >mkdir -p grok_exporter/files > /dev/null 2>&1 >echo x - grok_exporter/files/config.yml.in >sed 's/^X//' >grok_exporter/files/config.yml.in << '0c89ea0dc663246162812d2df49b82f8' >Xglobal: >X config_version: 2 >X >Xgrok: >X patterns_dir: %%DATADIR%%/patterns >X >Xmetrics: >X - type: counter >X name: log_messages_total >X help: Number of lines in /var/log/messages >X match: '%{GREEDYDATA}' >X >Xserver: >X host: localhost >X port: 9144 >0c89ea0dc663246162812d2df49b82f8 >echo x - grok_exporter/files/grok_exporter.in >sed 's/^X//' >grok_exporter/files/grok_exporter.in << '77cca3fb20f5ba4494bd28a3dfce947a' >X#!/bin/sh >X >X# PROVIDE: grok_exporter >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X# >X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf >X# to enable this service: >X# >X# grok_exporter_enable (bool): Set to NO by default. >X# Set it to YES to enable grok_exporter. >X# grok_exporter_config (string): Set path to config file >X# Default is "%%ETCDIR%%/config.yml". >X# grok_exporter_user (string): Set user that grok_exporter will run under >X# Default is "nobody". >X# grok_exporter_group (string): Set group that grok_exporter will run under >X# Default is "nobody". >X >X. /etc/rc.subr >X >Xname=grok_exporter >Xrcvar=grok_exporter_enable >X >Xload_rc_config $name >X >X: ${grok_exporter_enable:="NO"} >X: ${grok_exporter_config:="%%ETCDIR%%/config.yml"} >X: ${grok_exporter_user:="nobody"} >X: ${grok_exporter_group:="nobody"} >X >Xpidfile=/var/run/grok_exporter.pid >Xcommand="/usr/sbin/daemon" >Xprocname="%%PREFIX%%/bin/grok_exporter" >Xcommand_args="-p ${pidfile} /usr/bin/env ${procname} -config ${grok_exporter_config}" >X >Xstart_precmd=grok_exporter_startprecmd >X >Xgrok_exporter_startprecmd() >X{ >X if [ ! -e ${pidfile} ]; then >X install -o ${grok_exporter_user} -g ${grok_exporter_group} /dev/null ${pidfile}; >X fi >X} >X >Xload_rc_config $name >Xrun_rc_command "$1" >77cca3fb20f5ba4494bd28a3dfce947a >echo x - grok_exporter/.Makefile.swp >sed 's/^X//' >grok_exporter/.Makefile.swp << 'aad9964ac31446320341054244e86421' >Xb0VIM 8.0AÌZ) 7Pgasolwubeastie~gasolwu/Code/freebsd-ports/sysutils/grok_exporter/Makefileutf-8 3210#"! Utp(adÑ >X(ÔÈǯsrS >XøØ×ÁÀ}R' >XÙ ¾ ¨ § E ïîâq6ò¥¤.include <bs.include <bsd.port.mk> @(cd ${WRKSRC_plugins} && ${COPYTREE_SHARE} patterns ${STAGEDIR}${DATADIR}) @(cd ${WRKSRC} && ${COPYTREE_SHARE} example ${STAGEDIR}${DATADIR}) ${INSTALL_DATA} ${WRKDIR}/config.yml ${STAGEDIR}${ETCDIR} ${MKDIR} ${STAGEDIR}${ETCDIR} ${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}do-install: @(cd ${GO_WRKSRC}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build -o ${PORTNAME} .) ${LN} -sf ${WRKSRC}/tailer/fileTailer_darwin.go ${WRKSRC}/tailer/fileTailer_freebsd.godo-build:SUB_FILES= config.ymlUSE_RC_SUBR= grok_exporterGO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}GH_TAGNAME= 6d25c13:pluginsGH_PROJECT= logstash-patterns-core:pluginsGH_ACCOUNT= fstab logstash-plugins:pluginsUSE_GITHUB= yesUSES= goLIB_DEPENDS= libonig.so:devel/onigurumaONLY_FOR_ARCHS= amd64LICENSE_FILE= ${WRKSRC}/LICENSELICENSE= APACHE20COMMENT= Export Prometheus metrics from arbitrary unstructured log dataMAINTAINER= gasol.wu@gmail.comCATEGORIES= sysutilsDISTVERSIONPREFIX=vPORTVERSION= 0.2.3PORTNAME= grok_exporter# $FreeBSD$# Created by: Gasol Wu <gasol.wu@gmail.com> >aad9964ac31446320341054244e86421 >echo x - grok_exporter/pkg-plist >sed 's/^X//' >grok_exporter/pkg-plist << '40fd5fb1357b083df95975cfce592d50' >Xbin/grok_exporter >X%%ETCDIR%%/config.yml >X%%DATADIR%%/example/config.yml >X%%DATADIR%%/example/exim-rejected-RCPT-examples.log >X%%DATADIR%%/patterns/aws >X%%DATADIR%%/patterns/bacula >X%%DATADIR%%/patterns/bro >X%%DATADIR%%/patterns/exim >X%%DATADIR%%/patterns/firewalls >X%%DATADIR%%/patterns/grok-patterns >X%%DATADIR%%/patterns/haproxy >X%%DATADIR%%/patterns/java >X%%DATADIR%%/patterns/junos >X%%DATADIR%%/patterns/linux-syslog >X%%DATADIR%%/patterns/mcollective >X%%DATADIR%%/patterns/mcollective-patterns >X%%DATADIR%%/patterns/mongodb >X%%DATADIR%%/patterns/nagios >X%%DATADIR%%/patterns/postgresql >X%%DATADIR%%/patterns/rails >X%%DATADIR%%/patterns/redis >X%%DATADIR%%/patterns/ruby >40fd5fb1357b083df95975cfce592d50 >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 224455
:
188960
|
188961
|
188962
|
191013
|
191091
|
191334