Skip to content

Commit

Permalink
app-metrics/carbonapi-web: initial commit
Browse files Browse the repository at this point in the history
This package can be used as replacement for net-analyzer/graphite-web in
deployments where app-metrics/carbonapi-booking and
app-metrics/go-carbon are used instead of the Python-based variants.

Bug: https://bugs.gentoo.org/897056
Signed-off-by: Fabian Groffen <[email protected]>
  • Loading branch information
grobian committed Apr 10, 2023
1 parent ee67b71 commit aaf40db
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-metrics/carbonapi-web/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST carbonapi-web-1.0.tar.gz 1026954 BLAKE2B e482565b103b7afcfb7e2d778e57b24610713568f7ec079247b8dbd9f1f46668f0487eefef6d34e27bb0985bf5bc9bb6edb1a1d22652ff0db575b32099586c5f SHA512 56a048d414aae2db99a29aca46ebe0c58e738acdae44ffa0b82478559dd0e2327767682941e69d5cda0c716cf7121c2f90d40b9866943b735d424c4b5b283e5c
28 changes: 28 additions & 0 deletions app-metrics/carbonapi-web/carbonapi-web-1.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit webapp

DESCRIPTION="graphite-web fork for standalone usage with carbonapi"
HOMEPAGE="https://github.com/grobian/carbonapi-web"
SRC_URI="https://github.com/grobian/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="Apache-2.0"
KEYWORDS="~amd64"

DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""

src_install() {
webapp_src_preinst

insinto "${MY_HTDOCSDIR}"
doins -r webapp/content/*

webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt

webapp_src_install
}
12 changes: 12 additions & 0 deletions app-metrics/carbonapi-web/files/postinstall-en.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
1. install and setup a Graphite resolving and rendering instance such as
app-metrics/carbonapi-booking
2. setup a vhost that:
- uses default index file browser.html
- proxies these paths down to the Graphite rendering instance:
* /render/
* /metrics/
* /info/
* /functions/
* /tags/
3. the combined setup should load the web browser and interact with your
Graphite install
11 changes: 11 additions & 0 deletions app-metrics/carbonapi-web/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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>Fabian Groffen</name>
</maintainer>
<upstream>
<remote-id type="github">grobian/carbonapi-web</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit aaf40db

Please sign in to comment.