Prometheus Storage and Remote Storage Retention

558 views
Skip to first unread message

Marko Juričić

unread,
May 29, 2020, 8:49:55 AM5/29/20
to Prometheus Users
Greetings, 

We have set remote read and write to InfluxDB and that is working just fine, Prometheus Command-Line Flags are after the question. Path of Data is /var/lib/prometheus and as I understood it,
by retention it should be 1s or 0B by size, when we drop the InfluxDB Database there is still few hours of Data stored in var/lib/prometheus and the size is about 500MB. 

Why there is still 500MB of data in var/lib/prometheus folder? Am I doing something wrong with Flags?

Command-Line Flags


alertmanager.notification-queue-capacity10000
alertmanager.timeout10s
config.file/etc/prometheus/prometheus.yml
log.formatlogfmt
log.levelinfo
query.lookback-delta5m
query.max-concurrency20
query.max-samples50000000
query.timeout2m
rules.alert.for-grace-period10m
rules.alert.for-outage-tolerance1h
rules.alert.resend-delay1m
storage.remote.flush-deadline1m
storage.remote.read-concurrent-limit10
storage.remote.read-sample-limit50000000
storage.tsdb.max-block-duration100ms
storage.tsdb.min-block-duration2h
storage.tsdb.path/var/lib/prometheus/
storage.tsdb.retention15d
storage.tsdb.retention.size0B
storage.tsdb.retention.time1s
storage.tsdb.use-lockfilefalse
storage.tsdb.wal-segment-size0B
web.console.libraries/etc/prometheus/console_libraries
web.console.templates/etc/prometheus/consoles
web.cors.origin.*
web.enable-admin-apitrue
web.enable-lifecyclefalse
web.external-url
web.listen-address0.0.0.0:9090
web.local-assets/usr/share/prometheus/web/
web.max-connections512
web.page-titlePrometheus Time Series Collection and Processing Server
web.read-timeout5m
web.route-prefix/

Julien Pivotto

unread,
May 29, 2020, 9:51:32 AM5/29/20
to Marko Juričić, Prometheus Users
Currently Prometheus requires a WAL to send samples from. It is not possible to disable the local TSDB completely.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/551b9787-7c4a-4e3a-99ca-8d1029a8df24%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages