feat: set retention period, more frequent scraping, data volumes

This commit is contained in:
Marc 2024-05-31 23:42:27 -04:00
parent 1ca7341848
commit 9e849a8b9d
Signed by: marc
GPG key ID: 048E042F22B5DC79
3 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,5 @@
global:
scrape_interval: '30s'
scrape_configs:
- job_name: 'bitwarden-exporter'
static_configs:

View file

@ -6,10 +6,14 @@ podman pod create \
--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 \
@ -17,4 +21,9 @@ podman run \
-d \
--replace \
--pod panopticon \
-v ./prometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus
-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

3
stop.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
podman pod stop panopticon