summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-03-30 18:58:06 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-03-30 18:58:35 +0200
commit54feaa3e14b1fd1672a34addcabec757b75f9b80 (patch)
tree87eed94a0029bf43d679aec4eaa0e427f3257faa /net-analyzer
parentdev-lang/php: Version bump for 7.1.16 (diff)
downloadgentoo-54feaa3e14b1fd1672a34addcabec757b75f9b80.tar.gz
gentoo-54feaa3e14b1fd1672a34addcabec757b75f9b80.tar.bz2
gentoo-54feaa3e14b1fd1672a34addcabec757b75f9b80.zip
app-metrics/redis_exporter: Move package from net-analyzer/prometheus-redis_exporter
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/prometheus-redis_exporter/Manifest1
-rw-r--r--net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.confd30
-rw-r--r--net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.initd19
-rw-r--r--net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.logrotated7
-rw-r--r--net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.service16
-rw-r--r--net-analyzer/prometheus-redis_exporter/metadata.xml11
-rw-r--r--net-analyzer/prometheus-redis_exporter/prometheus-redis_exporter-0.15.0.ebuild52
7 files changed, 0 insertions, 136 deletions
diff --git a/net-analyzer/prometheus-redis_exporter/Manifest b/net-analyzer/prometheus-redis_exporter/Manifest
deleted file mode 100644
index 1cdcc45ab031..000000000000
--- a/net-analyzer/prometheus-redis_exporter/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST prometheus-redis_exporter-0.15.0.tar.gz 1232990 BLAKE2B ade899ef0f21594d3bb59c379f44d941e2a42f06a5c2ba5b304cc0b8b83def12eb036e6011a7d88abe7d97104ae663cb025ca60287ec9aba7be93a734d84c959 SHA512 8892306500943ec18d8fa5110fc6f4954ec886fca4d0023cdc2134ee2498c6f39ab06bec8f998ecde796cc2053b66103146503b76a185db3da5cbab81ebd9f2a
diff --git a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.confd b/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.confd
deleted file mode 100644
index 8573aef35405..000000000000
--- a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.confd
+++ /dev/null
@@ -1,30 +0,0 @@
-# -check-keys string
-# Comma separated list of keys to export value and length/size
-# -debug
-# Output verbose debug information
-# -log-format string
-# Log format, valid options are txt and json (default "txt")
-# -namespace string
-# Namespace for metrics (default "redis")
-# -redis-only-metrics
-# Whether to export go runtime metrics also
-# -redis.addr string
-# Address of one or more redis nodes, separated by separator
-# -redis.alias string
-# Redis instance alias for one or more redis nodes, separated by separator
-# -redis.file string
-# Path to file containing one or more redis nodes, separated by newline. NOTE: mutually exclusive with redis.addr
-# -redis.password string
-# Password for one or more redis nodes, separated by separator
-# -separator string
-# separator used to split redis.addr, redis.password and redis.alias into several elements. (default ",")
-# -use-cf-bindings
-# Use Cloud Foundry service bindings
-# -version
-# Show version information and exit
-# -web.listen-address string
-# Address to listen on for web interface and telemetry. (default ":9121")
-# -web.telemetry-path string
-# Path under which to expose metrics. (default "/metrics")
-
-#command_args="--web.listen-address=:9121 --redis.addr=localhost:6379"
diff --git a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.initd b/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.initd
deleted file mode 100644
index 741a0b4e4682..000000000000
--- a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.initd
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 2016-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-description="Prometheus Exporter for Redis Metrics"
-pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
-user=${user:-${RC_SVCNAME}}
-group=${group:-${RC_SVCNAME}}
-
-command="/usr/bin/redis_exporter"
-command_args="${command_args:---web.listen-address=:9121 --redis.addr=localhost:6379}"
-command_background="true"
-start_stop_daemon_args="--user ${user} --group ${group} \
- --stdout /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log \
- --stderr /var/log/${RC_SVCNAME}/${RC_SVCNAME}.log"
-
-depend() {
- after net
-}
diff --git a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.logrotated b/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.logrotated
deleted file mode 100644
index b1252b3d13f4..000000000000
--- a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.logrotated
+++ /dev/null
@@ -1,7 +0,0 @@
-/var/log/prometheus-redis_exporter/prometheus-redis_exporter.log {
- missingok
- size 5M
- rotate 3
- compress
- copytruncate
-}
diff --git a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.service b/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.service
deleted file mode 100644
index 9d2ba756a261..000000000000
--- a/net-analyzer/prometheus-redis_exporter/files/prometheus-redis_exporter.service
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=Prometheus Exporter for Redis Metrics
-Documentation=https://github.com/oliver006/redis_exporter/
-After=network-online.target
-
-[Service]
-User=prometheus-redis_exporter
-Restart=on-failure
-Environment=REDIS_EXPORTER_ARGS="--web.listen-address=:9121 --redis.addr=localhost:6379"
-ExecStart=/usr/bin/redis_exporter $REDIS_EXPORTER_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
-TimeoutStopSec=20s
-SendSIGKILL=no
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-analyzer/prometheus-redis_exporter/metadata.xml b/net-analyzer/prometheus-redis_exporter/metadata.xml
deleted file mode 100644
index ad438766d9bb..000000000000
--- a/net-analyzer/prometheus-redis_exporter/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person">
- <email>zmedico@gentoo.org</email>
- <name>Zac Medico</name>
- </maintainer>
- <upstream>
- <remote-id type="github">oliver006/redis_exporter</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/net-analyzer/prometheus-redis_exporter/prometheus-redis_exporter-0.15.0.ebuild b/net-analyzer/prometheus-redis_exporter/prometheus-redis_exporter-0.15.0.ebuild
deleted file mode 100644
index 3e3d871df3c8..000000000000
--- a/net-analyzer/prometheus-redis_exporter/prometheus-redis_exporter-0.15.0.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-inherit user golang-build golang-vcs-snapshot systemd
-
-EGO_PN="github.com/oliver006/redis_exporter"
-EGIT_COMMIT="a0d9e4c704b4d35cd08544d395038f417716a03a"
-ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-KEYWORDS="~amd64"
-
-DESCRIPTION="Prometheus Exporter for Redis Metrics. Supports Redis 2.x, 3.x and 4.x"
-HOMEPAGE="https://github.com/oliver006/redis_exporter"
-SRC_URI="${ARCHIVE_URI}"
-LICENSE="MIT"
-SLOT="0"
-IUSE=""
-
-pkg_setup() {
- enewgroup ${PN}
- enewuser ${PN} -1 -1 -1 ${PN}
-}
-
-src_prepare() {
- default
- sed -e "s|\(^[[:space:]]*VERSION[[:space:]]*=[[:space:]]*\).*|\1\"${PV}\"|" \
- -e "s|\(^[[:space:]]*BUILD_DATE[[:space:]]*=[[:space:]]*\).*|\1\"$(LC_ALL=C date -u)\"|" \
- -e "s|\(^[[:space:]]*COMMIT_SHA1[[:space:]]*=[[:space:]]*\).*|\1\"${EGIT_COMMIT}\"|" \
- -i src/${EGO_PN}/main.go || die
-}
-
-src_compile() {
- pushd src/${EGO_PN} || die
- GOPATH="${S}" \
- go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
- popd || die
-}
-
-src_install() {
- dobin bin/redis_exporter
- dodoc src/${EGO_PN}/README.md
- local dir
- for dir in /var/{lib,log}/${PN}; do
- keepdir "${dir}"
- fowners ${PN}:${PN} "${dir}"
- done
- newinitd "${FILESDIR}"/${PN}.initd ${PN}
- newconfd "${FILESDIR}"/${PN}.confd ${PN}
- insinto /etc/logrotate.d
- newins "${FILESDIR}/${PN}.logrotated" "${PN}"
- systemd_dounit "${FILESDIR}/${PN}.service"
-}