add grafana and graphite to podman incubating
All checks were successful
Reese's Arch Toolbox / build-and-push-arch-toolbox (push) Successful in 44m47s

This commit is contained in:
2025-03-09 19:27:22 -04:00
parent 74d1f7364a
commit ecf66a5fb2
5 changed files with 96 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# grafana.container
[Unit]
Description=Grafana
[Container]
ContainerName=grafana
Image=grafana/grafana-enterprise
Network=systemd-graphite
PublishPort=3000:3000
Volume=grafana-storage:/var/lib/grafana

View File

@@ -0,0 +1,28 @@
# Grafana
## Install
<https://grafana.com/docs/grafana/latest/setup-grafana/installation/docker/>
Generate the quadlet:
```bash
podman run ghcr.io/containers/podlet --description Grafana \
podman run \
-p 3000:3000 \
--name=grafana \
--volume grafana-storage:/var/lib/grafana \
--network=systemd-graphite \
grafana/grafana-enterprise > podman/incubating/grafana/grafana.container
```
Copy the graphite.container and graphite.network file to the server you want to run it on
```bash
export PODMAN_SERVER=
scp podman/incubating/grafana/grafana.container $PODMAN_SERVER:/etc/containers/systemd/
ssh $PODMAN_SERVER systemctl daemon-reload
ssh $PODMAN_SERVER systemctl enable --now grafana.service
```