Shutdown Loki gracefully

Hi All,

May I know if there is any graceful way to shutdown Loki in K8S? The background is our K8S platform will be rebuilt every month and before that, we have to shutdown Loki running there to make sure those data in cache could be flushed successfully. Or, the data in cache will be flushed automatically while the pod of Loki (we are running Loki in SSD mode) is terminating?

Thanks.

@tonyswumac sorry Tony to bother you again, could you please help check this one?

See Loki HTTP API | Grafana Loki documentation.