Re: [prometheus-users] Pushgateway - any way to save/restore metrics

2021-01-19 Thread Peter Toft
tup the problem is that you are directly mounting > in a single file, could you try passing the surrounding directory as the > volume instead? See also > https://forums.docker.com/t/sharing-a-single-file-via-a-volume-mount-does-not-work-as-expected/57088 > > On Tue, Jan 19, 2021

Re: [prometheus-users] Pushgateway - any way to save/restore metrics

2021-01-19 Thread Peter Toft
Is anyone using this feature? Seems to be broken to mo and I cannot see any logs from this. On Friday, January 15, 2021 at 5:39:07 PM UTC+1 Peter Toft wrote: > The default is 5 minutes which is super for me. But I do not see anything > happening > > > > On Friday, January 1

Re: [prometheus-users] Pushgateway - any way to save/restore metrics

2021-01-15 Thread Peter Toft
The default is 5 minutes which is super for me. But I do not see anything happening On Friday, January 15, 2021 at 3:23:17 PM UTC+1 Julien Pivotto wrote: > I think that this is flushed on disk at regular interval: > --persistence.interval > > On 15 Jan 06:08, Peter Toft wrote: &

Re: [prometheus-users] Pushgateway - any way to save/restore metrics

2021-01-15 Thread Peter Toft
ersistence.file=/var/log/pushgateway.txt' but I tried to login to the docker instance - the /var/log/pushgateway.txt is empty :-( On Friday, January 15, 2021 at 2:00:43 PM UTC+1 Julien Pivotto wrote: > You will need to use a docker volume to save the file across restarts. > > On 1

Re: [prometheus-users] Pushgateway - any way to save/restore metrics

2021-01-15 Thread Peter Toft
mes: - ./config/grafana.ini:/etc/grafana/grafana.ini ports: - 3000:3000 On Friday, January 15, 2021 at 11:02:59 AM UTC+1 Stuart Clark wrote: > The push gateway supports a persistence file via the --persistence.file > parameter to allow cached metrics to survive rest

[prometheus-users] Pushgateway - any way to save/restore metrics

2021-01-15 Thread Peter Toft
Hi guys I use a pushgateway -> prometheus -> grafana system to display simulation metrics, and when I reboot the server I loose all the metrics I have in the pushgateway. They appear when I have rerun my external test server pushing metrics. If I know that there is a reboot of the pushgateway

Re: [prometheus-users] How to query a pushgateway for metrics via Python?

2020-11-21 Thread Peter Toft
.cl...@jahingo.com>: > On 18/11/2020 21:31, Peter Toft wrote: > > A variant that I could use - in lack of better - would be to delete all > metrics from Python > > Den ons. 18. nov. 2020 kl. 11.46 skrev Peter Toft : > >> I have a case where I probably have to push sa

Re: [prometheus-users] How to query a pushgateway for metrics via Python?

2020-11-18 Thread Peter Toft
A variant that I could use - in lack of better - would be to delete all metrics from Python Den ons. 18. nov. 2020 kl. 11.46 skrev Peter Toft : > I have a case where I probably have to push say 200 metrics from Python to > a pushgateway->prometheus->grafana system - it rocks, >

[prometheus-users] How to query a pushgateway for metrics via Python?

2020-11-18 Thread Peter Toft
I have a case where I probably have to push say 200 metrics from Python to a pushgateway->prometheus->grafana system - it rocks, However the 200 metrics might later be reduced to 170 metrics, where at that point I need to query the pushgateway for the obtained metrics - and delete the 30 ones