summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2018-03-30 19:02:16 +0200
committerManuel Rüger <mrueg@gentoo.org>2018-03-30 19:02:16 +0200
commitb161af0782fba4250a93e74cd580bd0fc582c0bc (patch)
tree4d2ffc0e66c6b6a0ba0782a0138441155c460a42 /net-analyzer/prometheus-uwsgi_exporter
parentapp-metrics/redis_exporter: Move package from net-analyzer/prometheus-redis_e... (diff)
downloadgentoo-b161af0782fba4250a93e74cd580bd0fc582c0bc.tar.gz
gentoo-b161af0782fba4250a93e74cd580bd0fc582c0bc.tar.bz2
gentoo-b161af0782fba4250a93e74cd580bd0fc582c0bc.zip
app-metrics/uwsgi_exporter: Move package from net-analyzer/prometheus-uwsgi_exporter
Diffstat (limited to 'net-analyzer/prometheus-uwsgi_exporter')
-rw-r--r--net-analyzer/prometheus-uwsgi_exporter/Manifest1
-rw-r--r--net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.confd16
-rw-r--r--net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.initd19
-rw-r--r--net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.logrotated7
-rw-r--r--net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.service16
-rw-r--r--net-analyzer/prometheus-uwsgi_exporter/metadata.xml11
-rw-r--r--net-analyzer/prometheus-uwsgi_exporter/prometheus-uwsgi_exporter-0.7.0.ebuild54
7 files changed, 0 insertions, 124 deletions
diff --git a/net-analyzer/prometheus-uwsgi_exporter/Manifest b/net-analyzer/prometheus-uwsgi_exporter/Manifest
deleted file mode 100644
index 63942cda2bb2..000000000000
--- a/net-analyzer/prometheus-uwsgi_exporter/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST prometheus-uwsgi_exporter-0.7.0.tar.gz 3039893 BLAKE2B a6efdae7f9a19ad21a283b586b5667bd99456274ed419d1b64aaf4cdb4df1e1c4fb2a08edf6df2b15813d21311fe54c2f2394f0bf25ac11c49db8a924596da05 SHA512 380ef4515eaa81d4dee853682efa7a5e82af2ec00c096e7471028c9932d46e0a7406b75cb40f0f8efec15cd77b06c5477a07919d0b44720e3e194b5bb023b593
diff --git a/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.confd b/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.confd
deleted file mode 100644
index 6db54fb3cc0e..000000000000
--- a/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.confd
+++ /dev/null
@@ -1,16 +0,0 @@
-# --web.listen-address=":9117"
-# Address on which to expose metrics and web interfaces.
-# --web.telemetry-path="/metrics"
-# Path under which to expose metrics.
-# --stats.uri="" URI for accessing uwsgi stats.
-# --stats.timeout=5s Timeout for trying to get stats from uwsgi.
-# --collect.cores Collect cores information per uwsgi worker.
-# --log.level="info" Only log messages with the given severity or above.
-# Valid levels: [debug, info, warn, error, fatal]
-# --log.format="logger:stderr"
-# Set the log target and format. Example:
-# "logger:syslog?appname=bob&local=7" or
-# "logger:stdout?json=true"
-# --version Show application version.
-
-#command_args="--web.listen-address=:9117 --stats.uri=http://localhost:1717"
diff --git a/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.initd b/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.initd
deleted file mode 100644
index b456a0b10505..000000000000
--- a/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_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="uWSGI metrics exporter for prometheus.io"
-pidfile=${pidfile:-"/run/${RC_SVCNAME}.pid"}
-user=${user:-${RC_SVCNAME}}
-group=${group:-${RC_SVCNAME}}
-
-command="/usr/bin/uwsgi_exporter"
-command_args="${command_args:---web.listen-address=:9117 --stats.uri=http://localhost:1717}"
-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-uwsgi_exporter/files/prometheus-uwsgi_exporter.logrotated b/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.logrotated
deleted file mode 100644
index 8703cb2be385..000000000000
--- a/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.logrotated
+++ /dev/null
@@ -1,7 +0,0 @@
-/var/log/prometheus-uwsgi_exporter/prometheus-uwsgi_exporter.log {
- missingok
- size 5M
- rotate 3
- compress
- copytruncate
-}
diff --git a/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.service b/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.service
deleted file mode 100644
index 39824c7efe7e..000000000000
--- a/net-analyzer/prometheus-uwsgi_exporter/files/prometheus-uwsgi_exporter.service
+++ /dev/null
@@ -1,16 +0,0 @@
-[Unit]
-Description=uWSGI metrics exporter for prometheus.io
-Documentation=https://github.com/timonwong/uwsgi_exporter/
-After=network-online.target
-
-[Service]
-User=prometheus-uwsgi_exporter
-Restart=on-failure
-Environment=UWSGI_EXPORTER_ARGS="--web.listen-address=:9117 --stats.uri=http://localhost:1717"
-ExecStart=/usr/bin/uwsgi_exporter $UWSGI_EXPORTER_ARGS
-ExecReload=/bin/kill -HUP $MAINPID
-TimeoutStopSec=20s
-SendSIGKILL=no
-
-[Install]
-WantedBy=multi-user.target
diff --git a/net-analyzer/prometheus-uwsgi_exporter/metadata.xml b/net-analyzer/prometheus-uwsgi_exporter/metadata.xml
deleted file mode 100644
index ba98a1a69cd7..000000000000
--- a/net-analyzer/prometheus-uwsgi_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">timonwong/uwsgi_exporter</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/net-analyzer/prometheus-uwsgi_exporter/prometheus-uwsgi_exporter-0.7.0.ebuild b/net-analyzer/prometheus-uwsgi_exporter/prometheus-uwsgi_exporter-0.7.0.ebuild
deleted file mode 100644
index 26946cce453c..000000000000
--- a/net-analyzer/prometheus-uwsgi_exporter/prometheus-uwsgi_exporter-0.7.0.ebuild
+++ /dev/null
@@ -1,54 +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/timonwong/uwsgi_exporter"
-EGIT_COMMIT="v${PV/_rc/-rc.}"
-UWSGI_EXPORTER_COMMIT="20e35a9"
-ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
-KEYWORDS="~amd64"
-
-DESCRIPTION="uWSGI metrics exporter for prometheus.io"
-HOMEPAGE="https://github.com/timonwong/uwsgi_exporter"
-SRC_URI="${ARCHIVE_URI}"
-LICENSE="Apache-2.0"
-SLOT="0"
-IUSE=""
-
-DEPEND="dev-util/promu"
-
-pkg_setup() {
- enewgroup ${PN}
- enewuser ${PN} -1 -1 -1 ${PN}
-}
-
-src_prepare() {
- default
- sed -i -e "s/{{.Revision}}/${UWSGI_EXPORTER_COMMIT}/" src/${EGO_PN}/.promu.yml || die
-}
-
-src_compile() {
- pushd src/${EGO_PN} || die
- mkdir -p bin || die
- GOPATH="${S}" promu build -v --prefix uwsgi_exporter || die
- popd || die
-}
-
-src_install() {
- pushd src/${EGO_PN} || die
- dobin uwsgi_exporter/uwsgi_exporter
- dodoc README.md
- popd || die
- 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"
-}