panopticon/start.sh

30 lines
695 B
Bash
Raw Normal View History

2024-05-31 03:53:46 +00:00
#!/bin/bash
podman pod create \
-p 3100:3000 \
2024-05-31 03:53:46 +00:00
-p 9090:9090 \
--replace \
panopticon
podman volume create panopticon_grafana-storage
podman volume create panopticon_prometheus-storage
2024-05-31 03:53:46 +00:00
podman run -d \
--name=grafana \
--replace \
--pod panopticon \
-v panopticon_grafana-storage:/var/lib/grafana \
2024-05-31 03:53:46 +00:00
grafana/grafana
podman run \
--name prometheus \
-d \
--replace \
--pod panopticon \
-v panopticon_prometheus-storage:/prometheus \
-v ./prometheus.yml:/etc/prometheus/prometheus.yml \
prom/prometheus \
--storage.tsdb.retention.time=60d \
--storage.tsdb.path=/prometheus \
--config.file=/etc/prometheus/prometheus.yml