From 2ad53a575f63e010e215a8011572bbfc07179f25 Mon Sep 17 00:00:00 2001 From: Renato Aguiar Date: Mon, 22 Apr 2019 14:43:34 -0700 Subject: [PATCH] prometheus: Log to syslog and increase nofile limit --- srcpkgs/prometheus/files/prometheus/log/run | 2 ++ srcpkgs/prometheus/files/prometheus/run | 2 +- srcpkgs/prometheus/template | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100755 srcpkgs/prometheus/files/prometheus/log/run diff --git a/srcpkgs/prometheus/files/prometheus/log/run b/srcpkgs/prometheus/files/prometheus/log/run new file mode 100755 index 00000000000..d93cf9f498e --- /dev/null +++ b/srcpkgs/prometheus/files/prometheus/log/run @@ -0,0 +1,2 @@ +#!/bin/sh +exec logger -p daemon.info -t prometheus diff --git a/srcpkgs/prometheus/files/prometheus/run b/srcpkgs/prometheus/files/prometheus/run index fbc074e65d6..8311d78552f 100755 --- a/srcpkgs/prometheus/files/prometheus/run +++ b/srcpkgs/prometheus/files/prometheus/run @@ -6,4 +6,4 @@ cd "${WRKDIR}" -exec chpst -u _prometheus prometheus --config.file=/etc/prometheus/prometheus.yml $ARGS +exec chpst -o 8192 -u _prometheus prometheus --config.file=/etc/prometheus/prometheus.yml $ARGS 2>&1 diff --git a/srcpkgs/prometheus/template b/srcpkgs/prometheus/template index 7cb6556a367..6bc73ef76e5 100644 --- a/srcpkgs/prometheus/template +++ b/srcpkgs/prometheus/template @@ -1,7 +1,7 @@ # Template file for 'prometheus' pkgname=prometheus version=2.8.1 -revision=1 +revision=2 build_style=go go_import_path="github.com/prometheus/prometheus" go_package="github.com/prometheus/prometheus/cmd/prometheus github.com/prometheus/prometheus/cmd/promtool"