forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-metrics/carbonapi-web: initial commit
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
Showing
4 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |