feat: set retention period, more frequent scraping, data volumes
This commit is contained in:
parent
1ca7341848
commit
9e849a8b9d
3 changed files with 15 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
global:
|
||||||
|
scrape_interval: '30s'
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
- job_name: 'bitwarden-exporter'
|
- job_name: 'bitwarden-exporter'
|
||||||
static_configs:
|
static_configs:
|
||||||
|
|
11
start.sh
11
start.sh
|
@ -6,10 +6,14 @@ podman pod create \
|
||||||
--replace \
|
--replace \
|
||||||
panopticon
|
panopticon
|
||||||
|
|
||||||
|
podman volume create panopticon_grafana-storage
|
||||||
|
podman volume create panopticon_prometheus-storage
|
||||||
|
|
||||||
podman run -d \
|
podman run -d \
|
||||||
--name=grafana \
|
--name=grafana \
|
||||||
--replace \
|
--replace \
|
||||||
--pod panopticon \
|
--pod panopticon \
|
||||||
|
-v panopticon_grafana-storage:/var/lib/grafana \
|
||||||
grafana/grafana
|
grafana/grafana
|
||||||
|
|
||||||
podman run \
|
podman run \
|
||||||
|
@ -17,4 +21,9 @@ podman run \
|
||||||
-d \
|
-d \
|
||||||
--replace \
|
--replace \
|
||||||
--pod panopticon \
|
--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
3
stop.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
podman pod stop panopticon
|
Loading…
Reference in a new issue