I use docker where I just now added - '--persistence.file=/var/log/pushgateway.txt'
It does not seem to give persistence.
version: '3.3'
services:
pushgateway:
container_name: pushgateway
image: prom/pushgateway
ports:
- 9091:9091
volumes:
- ./pushgateway.txt:/var/log/pushgateway.txt
command:
- '--web.enable-admin-api'
- '--persistence.file=/var/log/pushgateway.txt'
prometheus:
container_name: prometheus
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
ports:
- 9090:9090
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.enable-admin-api'
- '--storage.tsdb.retention.time=1y'
grafana:
container_name: grafana
image: grafana/grafana
volumes:
- ./config/grafana.ini:/etc/grafana/grafana.ini
ports:
- 3000:3000