Skip to content

Commit

Permalink
add twemproxy binary package (#838)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueSherii authored Aug 30, 2023
1 parent 25a19a4 commit b6a9d66
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-metrics/twemproxy_exporter_bin/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST twemproxy_exporter_bin-0.1.0.tar.gz 3601953 BLAKE2B 13254af2f6beab94b4f05c8954a29069d1383b112aafb2611fd700852740ebcdf27d15b3c4e455bfdebf3db61889ab8a8903c5298c9273032a1256ba6569bf81
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# arguments for ceph exporter
command_args="-web.listen-address 0.0.0.0:9012 -twemproxy.stats-address localhost:12"
16 changes: 16 additions & 0 deletions app-metrics/twemproxy_exporter_bin/files/nutcracker_exporter.initd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/sbin/openrc-run
# Copyright 2016-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="Nutcracker metrics exporter"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
user=${user:-nobody}
group=${group:-nobody}

command="/usr/bin/nutcracker_exporter"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group}"

depend() {
after net
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# arguments for ceph exporter
command_args="-web.listen-address 0.0.0.0:9146 -twemproxy.stats-address localhost:146"
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/sbin/openrc-run
# Copyright 2016-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

description="Nutcracker metrics exporter"
pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
user=${user:-nobody}
group=${group:-nobody}

command="/usr/bin/nutcracker_exporter"
command_background="true"
start_stop_daemon_args="--user ${user} --group ${group}"

depend() {
after net
}
8 changes: 8 additions & 0 deletions app-metrics/twemproxy_exporter_bin/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Sherif Labib</name>
</maintainer>
</pkgmetadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="Prometheus exporter that scrapes metrics from a nutcracker"
HOMEPAGE="https://github.com/stuartnelson3/twemproxy_exporter"
SRC_URI="https://github.com/adjust/gentoo-overlay/releases/download/twemproxy/twemproxy_exporter_bin-0.1.0.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"

DEPEND="dev-lang/go"

src_install() {
dobin nutcracker_exporter
newconfd "${FILESDIR}"/nutcracker_exporter.confd nutcracker_exporter
newinitd "${FILESDIR}"/nutcracker_exporter.initd nutcracker_exporter
newconfd "${FILESDIR}"/nutcracker_socket_exporter.confd nutcracker_socket_exporter
newinitd "${FILESDIR}"/nutcracker_socket_exporter.initd nutcracker_socket_exporter
}

0 comments on commit b6a9d66

Please sign in to comment.