29 lines
695 B
Bash
Executable file
29 lines
695 B
Bash
Executable file
#!/bin/bash
|
|
|
|
podman pod create \
|
|
-p 3100:3000 \
|
|
-p 9090:9090 \
|
|
--replace \
|
|
panopticon
|
|
|
|
podman volume create panopticon_grafana-storage
|
|
podman volume create panopticon_prometheus-storage
|
|
|
|
podman run -d \
|
|
--name=grafana \
|
|
--replace \
|
|
--pod panopticon \
|
|
-v panopticon_grafana-storage:/var/lib/grafana \
|
|
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
|