grafana / loki

Like Prometheus, but for logs.
https://grafana.com/loki
GNU Affero General Public License v3.0
23.85k stars 3.44k forks source link

Loki 3.0; breaking changes collection #7076

Closed cstyan closed 1 week ago

cstyan commented 2 years ago

Since we've talked internally about quite a few changes we'd like to make but that would be considered breaking changes I'd like to start collecting these so that we don't lose them:

kavirajk commented 2 years ago

Wanted to bring up the long pending issue of supporting /v2 module path for Loki.

We had countless discussions before and the current state is tracked here.

I did some prototype long before and explained it here If we ever plan to do this (how can we gain confidence?) loki 3.0 is the way to go, else we have to wait for next major release.

dannykopping commented 2 years ago
  • [ ] We chatted about deprecating non-boltdb index stores. Do we still want to do that?

+1 for this. We should do this to remove lots of code & dependencies we don't need and to give folks an opinionated, single approach towards index storage. We will have to create a story around migration, though.

dannykopping commented 2 years ago

I wonder if it's also worth changing the default tenant name from fake to default (or something less weird than fake, at least), as this is a common source of confusion.

owen-d commented 2 years ago
dannykopping commented 2 years ago
  • [ ] Multiple object store configurations of the same type (s3, gcs, etc) to enable migrating from one bucket to another within the same provider.

Is this not a feature instead of a v3.0 breaking change? I've got a (hacky) branch that handles this in a backwards-compatible way

09jvilla commented 2 years ago

Building on @dannykopping's suggestion which was also previously brought up by @DylanGuedes .

https://github.com/grafana/loki/issues/7076#issuecomment-1250653744

https://github.com/grafana/loki/issues/3363#issuecomment-847930073

I suggest we mimic Mimir in:

chaudum commented 2 years ago
  • [ ] We chatted about deprecating non-boltdb index stores. Do we still want to do that?

+1 for this. We should do this to remove lots of code & dependencies we don't need and to give folks an opinionated, single approach towards index storage. We will have to create a story around migration, though.

+1 This will also allow us to remove the table-manager component, which confuses the hell out of people.

jeschkies commented 2 years ago

Shall we introduce a basic config and advanced configuration section?

kavirajk commented 1 year ago

Adding one more entry to the Issue description. /cc @cstyan

make -config.expand-env=true as default in promtail. Rationale being good default experience for promtail to understand ENV in it's config. Often people miss this and hard to send logs that needs some secrets from ENV like $USERNAME, $PASSWORD, $LOKI_URL

ssncferreira commented 1 year ago

PR https://github.com/grafana/loki/pull/7937 introduced a deprecated CLI flag -ruler.wal-cleaer.period that should also be removed on the next major Loki release

cstyan commented 1 year ago

we should fix this in 3.0 as well since we're doing metrics breaking