mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 06:59:40 -08:00
b24e5d63bc
This adds a flag -storage.local.engine which allows turning off local storage in Prometheus. Instead of adding if-conditions and nil checks to all parts of Prometheus that deal with Prometheus's local storage (including the web interface), disabling local storage simply means replacing the normal local storage with a noop version that throws samples away and returns empty query results. We also don't add the noop storage to the fanout appender to decrease internal overhead. Instead of returning empty results, an alternate behavior could be to return errors on any query that point out that the local storage is disabled. Not sure which one is more preferable, so I went with the empty result option for now. |
||
---|---|---|
.. | ||
codable | ||
fixtures/b0 | ||
index | ||
storagetool | ||
chunk.go | ||
crashrecovery.go | ||
delta.go | ||
delta_helpers.go | ||
delta_test.go | ||
doubledelta.go | ||
heads.go | ||
instrumentation.go | ||
interface.go | ||
locker.go | ||
locker_test.go | ||
mapper.go | ||
mapper_test.go | ||
noop_storage.go | ||
persistence.go | ||
persistence_test.go | ||
series.go | ||
series_test.go | ||
storage.go | ||
storage_test.go | ||
test_helpers.go | ||
varbit.go | ||
varbit_helpers.go | ||
varbit_test.go |