1 |
commit: b4b46207763db7aa02ecf1c6da7afd379fb8db95 |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jul 31 18:17:18 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 31 18:24:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4b46207 |
7 |
|
8 |
app-metrics/pushgateway: remove unused files |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/12589 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
13 |
|
14 |
app-metrics/pushgateway/files/pushgateway.confd | 14 -------------- |
15 |
app-metrics/pushgateway/files/pushgateway.initd | 19 ------------------- |
16 |
app-metrics/pushgateway/files/pushgateway.service | 16 ---------------- |
17 |
3 files changed, 49 deletions(-) |
18 |
|
19 |
diff --git a/app-metrics/pushgateway/files/pushgateway.confd b/app-metrics/pushgateway/files/pushgateway.confd |
20 |
deleted file mode 100644 |
21 |
index de9ef483723..00000000000 |
22 |
--- a/app-metrics/pushgateway/files/pushgateway.confd |
23 |
+++ /dev/null |
24 |
@@ -1,14 +0,0 @@ |
25 |
-# -log.format value |
26 |
-# If set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr. |
27 |
-# -log.level value |
28 |
-# Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]. |
29 |
-# -persistence.file string |
30 |
-# File to persist metrics. If empty, metrics are only kept in memory. |
31 |
-# -persistence.interval duration |
32 |
-# The minimum interval at which to write out the persistence file. (default 5m0s) |
33 |
-# -web.listen-address string |
34 |
-# Address to listen on for the web interface, API, and telemetry. (default ":9091") |
35 |
-# -web.telemetry-path string |
36 |
-# Path under which to expose metrics. (default "/metrics") |
37 |
- |
38 |
-#command_args="-web.listen-address localhost:9091 -persistence.file=/var/lib/${RC_SVCNAME}/persistence.gob" |
39 |
|
40 |
diff --git a/app-metrics/pushgateway/files/pushgateway.initd b/app-metrics/pushgateway/files/pushgateway.initd |
41 |
deleted file mode 100644 |
42 |
index a187e57897e..00000000000 |
43 |
--- a/app-metrics/pushgateway/files/pushgateway.initd |
44 |
+++ /dev/null |
45 |
@@ -1,19 +0,0 @@ |
46 |
-#!/sbin/openrc-run |
47 |
-# Copyright 2018 Gentoo Foundation |
48 |
-# Distributed under the terms of the GNU General Public License v2 |
49 |
- |
50 |
-description="Prometheus push acceptor for ephemeral and batch jobs" |
51 |
-pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"} |
52 |
-user=${user:-${RC_SVCNAME}} |
53 |
-group=${group:-${RC_SVCNAME}} |
54 |
- |
55 |
-command="/usr/bin/pushgateway" |
56 |
-command_args="${command_args:--web.listen-address localhost:9091 -persistence.file=/var/lib/${RC_SVCNAME}/persistence.gob}" |
57 |
-command_background="true" |
58 |
-start_stop_daemon_args="--user ${user} --group ${group} \ |
59 |
- --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \ |
60 |
- --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log" |
61 |
- |
62 |
-depend() { |
63 |
- need net |
64 |
-} |
65 |
|
66 |
diff --git a/app-metrics/pushgateway/files/pushgateway.service b/app-metrics/pushgateway/files/pushgateway.service |
67 |
deleted file mode 100644 |
68 |
index 3915fdb5b33..00000000000 |
69 |
--- a/app-metrics/pushgateway/files/pushgateway.service |
70 |
+++ /dev/null |
71 |
@@ -1,16 +0,0 @@ |
72 |
-[Unit] |
73 |
-Description=Prometheus exporter for ephemereal jobs |
74 |
-Documentation=https://prometheus.io/docs/instrumenting/pushing/ |
75 |
-After=network-online.target |
76 |
- |
77 |
-[Service] |
78 |
-User=pushgateway |
79 |
-Restart=on-failure |
80 |
-Environment=PUSHGATEWAY_ARGS="-web.listen-address localhost:9091 --persistence.file=/var/lib/pushgateway/persistence.gob" |
81 |
-ExecStart=/usr/bin/pushgateway $PUSHGATEWAY_ARGS |
82 |
-ExecReload=/bin/kill -HUP $MAINPID |
83 |
-TimeoutStopSec=20s |
84 |
-SendSIGKILL=no |
85 |
- |
86 |
-[Install] |
87 |
-WantedBy=multi-user.target |