Page MenuHomePhabricator

Provision object storage volumes for Loki
Closed, ResolvedPublic

Description

I'd like to deploy Loki to collect Toolsbeta tool and infrastructure logs next. It will persist data in our object storage service.

This task is to figure out bucket provisioning, setting some initial per-bucket limits, and credentials for the Loki service (in K8s) to talk to the object storage service. Preferrably the bucket config would happen via Tofu.

upstream docs: https://grafana.com/docs/loki/latest/configure/storage/

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
logging: Use separate app creds for separate projectsrepos/cloud/toolforge/tofu-provisioning!52taavimain-Ib3fcc96e3ede553ef003d9062513016b1b2511edmain
Revert "shared: Provision storage buckets for Loki"repos/cloud/toolforge/tofu-provisioning!51taavimain-I99a5f3cb7f00f65a9f10a03ee1e082fdc7cfafb8main
Provision log storage buckets in a separate projectrepos/cloud/toolforge/tofu-provisioning!50taavimain-I1384635fe4afe95f8ba034f20fe8ce61efe1ff4bmain
shared: Provision storage buckets for Lokirepos/cloud/toolforge/tofu-provisioning!49taavimain-I2123be8109ae73e3e9944cb69fbd7a00f596f99bmain
Customize query in GitLab

Related Objects

Event Timeline

taavi triaged this task as High priority.Jun 11 2025, 9:30 AM

@Andrew do you happen to know if individual buckets can be configured to have a storage limit applied to them without having to go through the Rados admin CLI?

There is an API as well as a CLI:

https://docs.ceph.com/en/latest/radosgw/adminops/

So it should be possible, although I have never tried to use it.

I'm still a bit attached to the idea of mapping tools to keystone projects, at which point users could have a shared quota used for tool-specific objects or logs (and decide if they love their logs or their media more.) but that may be way out of scope for what you're planning.

taavi lowered the priority of this task from High to Medium.Jun 13 2025, 9:31 AM