File tree Expand file tree Collapse file tree 6 files changed +123
-0
lines changed
app-metrics/unbound_exporter Expand file tree Collapse file tree 6 files changed +123
-0
lines changed Original file line number Diff line number Diff line change
1
+ command_args=""
2
+
3
+ # Prometheus-unbound-exporter supports the following options:
4
+
5
+ # -web.listen-address
6
+ # Address to listen on for web interface and telemetry. (Default: ":9167")
7
+ # -web.telemetry-path
8
+ # Path under which to expose metrics. (Default: "/metrics")
9
+ # -unbound.host
10
+ # Unbound control socket hostname and port number. (Default: "localhost:8953")
11
+ # -unbound.ca
12
+ # Unbound server certificate. (Default "/etc/unbound/unbound_server.pem")
13
+ # -unbound.cert
14
+ # Unbound client certificate. (Default: "/etc/unbound/unbound_control.pem")
15
+ # -unbound.key
16
+ # Unbound client key. (Default: "/etc/unbound/unbound_control.key")
Original file line number Diff line number Diff line change
1
+ #! /sbin/openrc-run
2
+ # Copyright 2024 Gentoo Foundation
3
+ # Distributed under the terms of the GNU General Public License v2
4
+
5
+ description=" Prometheus unbound exporter"
6
+ pidfile=${pidfile:- " /run/${SVCNAME} /${SVCNAME} .pid" }
7
+ user=${user:- prometheus}
8
+
9
+ command=" /usr/bin/${SVCNAME} "
10
+ command_args=" ${command_args} "
11
+ command_background=" true"
12
+ start_stop_daemon_args=" --user ${user} \
13
+ --stdout /var/log/prometheus/${SVCNAME} .log \
14
+ --stderr /var/log/prometheus/${SVCNAME} .err"
15
+
16
+ depend () {
17
+ need net
18
+ after net
19
+ }
20
+
21
+ start_pre () {
22
+ checkpath -d -m 0755 -o " ${user} " " ${pidfile%/* } "
23
+ }
Original file line number Diff line number Diff line change
1
+ [Unit]
2
+ Description =Prometheus unbound exporter
3
+ Documentation =https://github.com/letsencrypt/unbound_exporter
4
+ After =network-online.target
5
+
6
+ [Service]
7
+ EnvironmentFile =/etc/default/%p
8
+ User =prometheus
9
+ Restart =on-failure
10
+ ExecStart =/usr/bin/%p $ARGS
11
+ ExecReload =/bin/kill -HUP $MAINPID
12
+ TimeoutStopSec =20s
13
+ SendSIGKILL =no
14
+
15
+ [Install]
16
+ WantedBy =multi-user.target
Original file line number Diff line number Diff line change
1
+ [Service]
2
+ # Set the command-line arguments to pass to the server.
3
+ #Environment="ARGS="
4
+
5
+ # Prometheus-unbound-exporter supports the following options:
6
+
7
+ # -web.listen-address
8
+ # Address to listen on for web interface and telemetry. (Default: ":9167")
9
+ # -web.telemetry-path
10
+ # Path under which to expose metrics. (Default: "/metrics")
11
+ # -unbound.host
12
+ # Unbound control socket hostname and port number. (Default: "localhost:8953")
13
+ # -unbound.ca
14
+ # Unbound server certificate. (Default "/etc/unbound/unbound_server.pem")
15
+ # -unbound.cert
16
+ # Unbound client certificate. (Default: "/etc/unbound/unbound_control.pem")
17
+ # -unbound.key
18
+ # Unbound client key. (Default: "/etc/unbound/unbound_control.key")
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" utf-8" ?>
2
+ <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
3
+ <pkgmetadata >
4
+ <maintainer >
5
+ <email >ops@adjustcom</email >
6
+ <name >Adjust Ops Team</name >
7
+ </maintainer >
8
+ <upstream >
9
+ <remote-id type =" github" >letsencrypt/unbound_exporter</remote-id >
10
+ </upstream >
11
+ </pkgmetadata >
Original file line number Diff line number Diff line change
1
+ # Copyright 1999-2024 Gentoo Authors
2
+ # Distributed under the terms of the GNU General Public License v2
3
+
4
+ EAPI=8
5
+
6
+ inherit go-module systemd git-r3
7
+
8
+ DESCRIPTION=" Prometheus exporter for PostgreSQL metrics"
9
+ HOMEPAGE=" https://github.com/letsencrypt/unbound_exporter"
10
+ EGIT_REPO_URI=" https://github.com/letsencrypt/unbound_exporter"
11
+ LICENSE=" Apache-2.0"
12
+ SLOT=" 0"
13
+
14
+ RDEPEND="
15
+ acct-user/prometheus
16
+ acct-group/prometheus
17
+ "
18
+ DOCS=(README.md)
19
+
20
+ src_unpack () {
21
+ default
22
+ git-r3_src_unpack
23
+ go-module_live_vendor
24
+ }
25
+
26
+ src_compile () {
27
+ ego build -o " ${PN} "
28
+ }
29
+
30
+ src_install () {
31
+ dobin " ${PN} "
32
+
33
+ newinitd " ${FILESDIR} /${PN} .initd" " ${PN} "
34
+ newconfd " ${FILESDIR} /${PN} .confd" " ${PN} "
35
+ systemd_dounit " ${FILESDIR} /${PN} .service"
36
+ systemd_install_serviced " ${FILESDIR} /${PN} .service.conf"
37
+
38
+ einstalldocs
39
+ }
You can’t perform that action at this time.
0 commit comments