claudio a28b353b47 Prometheus is an open-source systems monitoring and alerting toolkit.
Its main features are:
- a multi-dimensional data model with time series data identified by
  metric name and key/value pairs
  - a flexible query language to leverage this dimensionality
  - no reliance on distributed storage; single server nodes are autonomous
  - time series collection happens via a pull model over HTTP
  - pushing time series is supported via an intermediary gateway
  - targets are discovered via service discovery or static configuration
  - multiple modes of graphing and dashboarding support

Input and OK sthen@
2018-01-10 16:26:19 +00:00

22 lines
484 B
Bash

#!/bin/sh
#
# $OpenBSD: prometheus.rc,v 1.1.1.1 2018/01/10 16:26:19 claudio Exp $
daemon="${TRUEPREFIX}/bin/prometheus"
daemon_flags="--config.file ${SYSCONFDIR}/prometheus/prometheus.yml"
daemon_flags="${daemon_flags} --storage.tsdb.path '${LOCALSTATEDIR}/prometheus'"
daemon_user=_prometheus
. /etc/rc.d/rc.subr
pexp="${daemon}.*"
rc_bg=YES
rc_reload=NO
rc_start() {
${rcexec} "${daemon} ${daemon_flags} < /dev/null 2>&1 | \
logger -p daemon.info -t prometheus"
}
rc_cmd $1