2024-05-31 03:53:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
podman pod create \
|
2024-05-31 04:00:41 +00:00
|
|
|
-p 3100:3000 \
|
2024-05-31 03:53:46 +00:00
|
|
|
-p 9090:9090 \
|
|
|
|
--replace \
|
|
|
|
panopticon
|
|
|
|
|
2024-06-01 03:42:27 +00:00
|
|
|
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 \
|
2024-06-01 03:42:27 +00:00
|
|
|
-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 \
|
2024-06-01 03:42:27 +00:00
|
|
|
-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
|