summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-metrics/prometheus-bin/files')
-rw-r--r--app-metrics/prometheus-bin/files/prometheus.confd2
-rw-r--r--app-metrics/prometheus-bin/files/prometheus.initd34
-rw-r--r--app-metrics/prometheus-bin/files/prometheus.service22
3 files changed, 0 insertions, 58 deletions
diff --git a/app-metrics/prometheus-bin/files/prometheus.confd b/app-metrics/prometheus-bin/files/prometheus.confd
deleted file mode 100644
index 93b41b31624c..000000000000
--- a/app-metrics/prometheus-bin/files/prometheus.confd
+++ /dev/null
@@ -1,2 +0,0 @@
-# arguments for Prometheus
-command_args=""
diff --git a/app-metrics/prometheus-bin/files/prometheus.initd b/app-metrics/prometheus-bin/files/prometheus.initd
deleted file mode 100644
index f7371f8ca060..000000000000
--- a/app-metrics/prometheus-bin/files/prometheus.initd
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2016-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-description="Prometheus monitoring system and time series database"
-pidfile=/var/run/${RC_SVCNAME}.pid
-user=${user:-${RC_SVCNAME}}
-group=${group:-${RC_SVCNAME}}
-command_user=${user}:${group}
-
-command="/usr/bin/prometheus"
-command_args="${command_args:---config.file=/etc/prometheus/prometheus.yml --storage.tsdb.path=/var/lib/prometheus/data}"
-command_background="true"
-error_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
-output_log=/var/log/${RC_SVCNAME}/${RC_SVCNAME}.log
-
-extra_started_commands="reload"
-
-depend() {
- after net
-}
-
-reload() {
- ebegin "Reloading configuration for ${RC_SVCNAME}"
- case "$supervisor" in
- supervise-daemon)
- supervise-daemon ${RC_SVCNAME} --signal HUP
- ;;
- *)
- start-stop-daemon --signal HUP --pidfile "${pidfile}"
- ;;
- esac
- eend $? "Failed to reload ${RC_SVCNAME}"
-}
diff --git a/app-metrics/prometheus-bin/files/prometheus.service b/app-metrics/prometheus-bin/files/prometheus.service
deleted file mode 100644
index ebd8a901d1fd..000000000000
--- a/app-metrics/prometheus-bin/files/prometheus.service
+++ /dev/null
@@ -1,22 +0,0 @@
-[Unit]
-Description=Prometheus
-Wants=network-online.target
-After=network-online.target
-
-[Service]
-Type=simple
-User=prometheus
-Group=prometheus
-ExecStart=/usr/bin/prometheus \
- --web.enable-lifecycle \
- --config.file=/etc/prometheus/prometheus.yml \
- --storage.tsdb.path="/var/lib/prometheus/data" \
- --web.console.templates=/etc/prometheus/consoles \
- --web.console.libraries=/etc/prometheus/console_libraries \
- --web.listen-address=0.0.0.0:9090 \
- --web.enable-admin-api
-
-Restart=always
-
-[Install]
-WantedBy=multi-user.target