Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 30, 2024

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/grafana/loki/pkg/push v0.0.0-20231127162423-bd505f8e2d37 -> v2.9.4 age adoption passing confidence

⚠️ MAJOR VERSION UPDATE ⚠️ - please manually update this package


Release Notes

grafana/loki (github.com/grafana/loki/pkg/push)

v2.9.4

Compare Source

This is release v2.9.4 of Loki.

Notable changes:
  • Fixed a couple of data races that can cause panics due to concurrent read-write access of tenant configs.
  • Fixed a bug in the log results cache.
  • Fixed the cache to atomically check background cache size limit correctly.
  • Fixed the discrepancy between the semantics of logs and metrics queries.
  • Fixed promtail default scrape config causing CPU and memory load
  • Update golang.org/x/crypto to v0.18.0

For a full list of changes, please refer to the CHANGELOG!

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.9.4"
$ docker pull "grafana/promtail:2.9.4"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.9.4/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.9.3

Compare Source

This is release v2.9.3 of Loki.

Notable changes:

This release includes a few small fixes and CVE patches

  • Upgrade otelhttp from 0.40.0 -> 0.44.0 and base alpine image from 3.18.3 -> 3.18.5 to fix a few CVES (CVE-2023-45142, CVE-2022-21698, CVE-2023-5363).
  • Fix querying ingester for label values with a matcher (previously didn't respect the matcher).
  • Ensure all lifecycler cfgs ref a valid IPv6 addr and port combination
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.9.3"
$ docker pull "grafana/promtail:2.9.3"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.9.3/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.9.2

Compare Source

This is release v2.9.2 of Loki.

Notable changes:

Patches CVE-2023-39325 / CVE-2023-44487 by upgrading go to v1.21.3, golang.org/x/net to v0.17.0 and grpc-go to v1.56.3.

For a full list of changes, please refer to the CHANGELOG!

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.9.2"
$ docker pull "grafana/promtail:2.9.2"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.9.2/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.9.1

Compare Source

This is release v2.9.1 of Loki.

Notable changes:

This release contains a patch for a vulnerability and bug fixes for the "single store" storage (tsdb and boltdb-shipper).

  • Updated all Docker base images to Alpine 3.18.3 to mitigate CVE-2022-48174 (#​10573 )
  • Fix a race condition in the table cache of the indexshipper (#​10586 )
  • Fix a bug in the cache of the object storage client of the indexshipper that could manifest in missing results when querying logs older than what is kept on the ingester. (#​10585 )
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.9.1"
$ docker pull "grafana/promtail:2.9.1"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.9.1/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.9.0: Loki 2.9.0

Compare Source

Grafana Labs is excited to announce the release of Loki 2.9. 🎉

Notable changes:
  • Query Language Improvements: Several improvements to the query language that speed up line parsing and regex matching.
  • Remote rule evaluation: Rule evaluation can now be handled by queriers to improve speed.
  • Multi-store Index support: Loki now supports reading/writing indexes to multiple object stores which enables the use of different storage buckets across periods for storing index.
  • New volume and volume_range endpoints: Two new endoints, index/volume and index/volume_range, have been added to Loki. They return aggregate volume information from the TSDB index for all streams matching a provided stream selector.
  • New Storage Client: Add support for IBM cloud object storage as storage client.
  • Block queries by hash: Queries can now be blocked by a query hash.
  • logfmt stage improvements: logfmt parser now performs non-strict parsing by default which helps scan semi-structured log lines

For a full list of all changes please look at the CHANGELOG.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.9.0"
$ docker pull "grafana/promtail:2.9.0"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.9.0/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"
Upgrade Considerations

As always, please read the upgrade guide before upgrading Loki.

v2.8.8

Compare Source

This is release v2.8.8 of Loki.

Notable changes:
  • Fixed a couple of data races that can cause panics due to concurrent read-write access of tenant configs.
  • Fixed a bug in the log results cache.
  • Fixed the cache to atomically check background cache size limit correctly.
  • Update golang.org/x/crypto to v0.18.0

For a full list of changes, please refer to the CHANGELOG!

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.8"
$ docker pull "grafana/promtail:2.8.8"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.8/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.7

Compare Source

This is release v2.8.7 of Loki.

Notable changes:

This release updates a few dependencies to bring in various security patches (see CHANGELOG for specifics).

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.7"
$ docker pull "grafana/promtail:2.8.7"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.7/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.6

Compare Source

This is release v2.8.6 of Loki.

Notable changes:

Patches CVE-2023-39325 / CVE-2023-44487 by upgrading go to v1.20.10, golang.org/x/net to v0.17.0 and grpc-go to v1.56.3

For a full list of changes, please refer to the CHANGELOG!

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.6"
$ docker pull "grafana/promtail:2.8.6"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.6/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.5

Compare Source

This is release v2.8.5 of Loki.

Notable changes:

This release fixes a notable vulnerability to our published images.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.5"
$ docker pull "grafana/promtail:2.8.5"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.5/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.4

Compare Source

This is release v2.8.4 of Loki.

Notable changes:

This release fixes a few vulnerabilities in Loki and our published images.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.4"
$ docker pull "grafana/promtail:2.8.4"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.4/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.3

Compare Source

This is release v2.8.3 of Loki.

Notable changes:

Loki:

  • Upgrade go version to 1.20.6
  • Querier: configurable chunk cache writeback queue bytes size
  • Query-scheduler: fix query distribution in SSD mode
  • Fix duplicate label values from ingester streams.

Promtail:

  • Break on iterate journal failure
  • Prevent logging errors on normal shutdown
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.3"
$ docker pull "grafana/promtail:2.8.3"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.3/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.2

Compare Source

This is release v2.8.2 of Loki.

Notable changes:
  • Upgrade to go 1.20.4 to address security vulnerabilities in the previous go version.
  • Promtail: Add new decompression configuration to customize the decompressor behavior.
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.2"
$ docker pull "grafana/promtail:2.8.2"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.2/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.1

Compare Source

We're excited to announce release v2.8.1 of Loki. This release brings a few bug fixes and security improvements.

Notable changes:
  • Fix bug that was dropping index if period is a zero value.
  • Fix redis client to prevent it from incorrectly choosing cluster mode with local address.
  • Update go to 1.20.3 to address security vulnerabilities in the previous go version.
  • Update alpine image to 3.16.5 to address security vulnerabilities in the previous version.
  • Promtail: Fix journald support in amd64 binary build.

For a full list of all changes please look at the CHANGELOG.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.1"
$ docker pull "grafana/promtail:2.8.1"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.1/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.8.0: Loki 2.8.0

Compare Source

Grafana Labs is excited to announce the release of Loki 2.8. 🎉

Notable changes:
  • TSDB index no longer experimental After extensive testing of the new TSDB index in our Grafana Cloud Logs offering, we can safely announce that it is no longer experimental and encourage all Loki deployments to use it!
  • Query blocker Queries can now be blocked in the Querier/Ruler via a per-tenant runtime configuration.
  • New backend target A new, third target was added to Loki's scalable configuration, which is the default configuration used in the Loki helm chart. This allows Loki to be run as 3 targets (read, write, and backend) and makes the read target stateless and therefore able to be run as a Kubernetes deployment that can be scaled automatically.

For a full list of all changes please look at the CHANGELOG.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.8.0"
$ docker pull "grafana/promtail:2.8.0"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.8.0/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"
Upgrade Considerations

As always, please read the upgrade guide before upgrading Loki.

v2.7.7

Compare Source

This is release v2.7.7 of Loki.

Notable changes:

This release fixes a few vulnerabilities in Loki and our published images.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.7"
$ docker pull "grafana/promtail:2.7.7"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.7/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.7.6

Compare Source

This is release v2.7.6 of Loki.

Notable changes:
  • Upgrade go version to 1.20.6
  • Prevent redis client from incorrectly choosing cluster mode with local address
  • Expose optional label matcher for label values handler
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.6"
$ docker pull "grafana/promtail:2.7.6"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.6/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.7.5

Compare Source

This is release v2.7.5 of Loki, a patch release of the v2.7 minor release.

Notable changes:
  • Flush buffered logger on exit: this makes sure logs are printed if Loki crashes on startup.
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.5"
$ docker pull "grafana/promtail:2.7.5"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.5/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.7.4

Compare Source

This is release v2.7.4 of Loki, a patch release of the v2.7 minor release.

Notable changes:
  • Go version upgraded to 1.20.1
  • Fixed different streams for cri tags ending on the same stream.
  • Fixed the userdata field (from Windows Event Log) being scraped incorrectly.
  • Fixed vector() function producing wrong timestamp.
  • Fixed behavior for overlapping chunks with multiple stores.
  • Fixed logs results caching causing query-frontend to return logs outside of query window.
  • Fixed panics when:
    • /scheduler/ring endpoint is requested with scheduler ring disabled.
    • LogQL clones a specific query.
    • Promtail deals with invalid calls to Details().
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.4"
$ docker pull "grafana/promtail:2.7.4"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.4/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.7.3

Compare Source

This is release v2.7.3 of Loki, a patch release of the v2.7 minor release.

Notable changes:
  • Fixed a bug in compactor that caused divide-by-zero panics when startTime and endTime of a delete request were equal.
  • Fixed the output of the --version command that showed an incorrect version information.
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.3"
$ docker pull "grafana/promtail:2.7.3"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.3/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.7.2

Compare Source

This is release v2.7.2 of Loki, a patch release of the v2.7 minor release.

Notable bug fixes:
  • Fixed bug in validation of pattern and regexp parsers where missing or empty parameters for these parsers caused panics.
  • Fixed bugs in processing delete requests with line filters:
    • Whole chunks covered by delete requests with a line filter were incorrectly skipped.
    • Chunks partially covered by delete requests with a line filter were not properly processed.
      The part that was not covered by the delete request was rewritten with a line filter, while the part that was covered by the delete request was completely deleted.
  • Fixed bug in multi-tenant querying that caused HTTP 400 responses when multiple tenants where used in X-Scope-OrgID header like so tenant-a|tenant-b.
  • Upgraded Go build version and Docker container base images to 1.19.5 to mitigate GO-2022-1144 vulnerability.
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.2"
$ docker pull "grafana/promtail:2.7.2"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.2/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.7.1

Compare Source

This is release v2.7.1 of Loki.

Notable changes:
  • Add single compactor http client for delete and gennumber clients. This fixes a bug caused by the accidental introduction of different HTTP clients for compactor and gennumber operations that resulted in 404s when only the gennumber middlewares were enabled: ■ Unordered list style [Expected: dash; Actua
console  Grot (@​grafanabot), 2022-12-09 - [release-2.7.x] Prepare changelog and release notes for 2.7.1 (#​7897)
     level=error ts=2022-10-18T14:13:41.598649348Z caller=delete_requests_client.go:211 msg="error getting delete requests from the store" err="unexpected status code: 404"
     ts=2022-10-18T14:13:41.598697295Z caller=spanlogger.go:80 user=application level=error msg="failed loading deletes for user" err="unexpected status code: 404"
  • Change default deletion mode to filter-only on account of the bug (see below).
  • Delete can now be performed over GRPC.
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.1"
$ docker pull "grafana/promtail:2.7.1"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.1/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.7.0

Compare Source

🦅 Loki 2.7.0 🦅

This is release v2.7.0 of Loki.

Notable changes:
  • New Internal Server and TLS TLS can now be configured everywhere and there is an internal server to allow ring, memberlist, and readiness handlers to continue to work without TLS.
  • Better Support for Azure Blob Storage thanks to the ability to use Azure's Service Principal Credentials.
  • Logs can now be pushed from the Loki canary so you don't have to rely on a scraping service to use the canary.
  • Additional label_format fields __timestamp__ and __line__.
  • New embedded cache which is an in-process cache system that runs loki without the need for an external cache (like memcached, redis, etc).
  • New HTTP endpoint for Ingester shutdown that will also delete the ring token.
  • Faster label queries thanks to new parallization.
  • Introducing Stream Sharding an experimental new feature to help deal with very large streams.
  • Promtail
    • support for max stream limit
    • config reload endpoint / signal
    • compressed file support
    • lambda-promtail now supports Kinesis data stream events
    • matches for the journal reader
    • basic tracing support

Upgrade Considerations

As always, please read the upgrade guide before upgrading Loki.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.7.0"
$ docker pull "grafana/promtail:2.7.0"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.7.0/loki-linux-amd64.zip"

### extract the binary
$ unzip "loki-linux-amd64.zip"

### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.6.1

Compare Source

Loki 2.6.1 is a patch fix release on 2.6.0

Notable changes:
  • PR 6658 JordanRushing: Updated the versions of dskit and memberlist to allow configuring cluster labels for memberlist. Cluster labels prevent mixing the members between two consistent hash rings of separate applications that are run on the same Kubernetes cluster.
  • PR 6681 MasslessParticle Fixed an HTTP connection leak between the querier and the compactor when the log entry deletion feature is enabled.
  • PR 6583 MasslessParticle Fixed noisy error messages when the log entry deletion feature is disabled for a tenant
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.6.1"
$ docker pull "grafana/promtail:2.6.1"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.6.1/loki-linux-amd64.zip"

### extract the binary
$ unzip "loki-linux-amd64.zip"

### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.6.0

Compare Source

💪 Loki 2.6.0 💪
         🦵:leg:
Features and enhancements
  • Query multiple tenants at once. We've introduced cross-tenant query federation, which allows you to issue one query to multiple tenants and get a single, consolidated result. This is great for scenarios where you need a global view of logs within your multi-tenant cluster. For more information on how to enable this feature, see Multi-Tenancy.
  • Filter out and delete certain log lines from query results. This is particularly useful in cases where users may accidentally write sensitive information to Loki that they do not want exposed. Users craft a LogQL query that selects the specific lines they're interested in, and then can choose to either filter out those lines from query results, or permanently delete them from Loki's storage. For more information, see Logs Deletion.
  • Improved query performance on instant queries. Loki now splits instant queries with a large time range (for example, sum(rate({app="foo"}[6h]))) into several smaller sub-queries and executes them in parallel. Users don't need to take any action to enjoy this performance improvement; however, they can adjust the number of sub-queries generated by modifying the split_queries_by_interval configuration parameter, which currently defaults to 30m.
  • Support Baidu AI Cloud as a storage backend. Loki users can now use Baidu Object Storage (BOS) as their storage backend. See bos_storage_config for details.

For a full list of all changes please look at the CHANGELOG.

Upgrade Considerations

As always, please read the upgrade guide before upgrading Loki.

Bug fixes
2.6.0 bug fixes

V2.6.0 fixes numerous bugs.

A summary of some of the more important fixes:

  • PR 6152 Fixed a scenario where live tailing of logs could cause unbounded ingester memory growth.
  • PR 5685 Fixed a bug in Loki's push request parser that allowed users to send arbitrary non-string data as a log line. We now test that the pushed values are valid strings and return an error if values are not valid strings.
  • PR 5799 Fixed incorrect deduplication logic for cases where multiple log entries with the same timestamp exist.
  • PR 5888 Fixed a bug in the common configuration where the instance_interface_names setting was getting overwritten by the default ring configuration.
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.6.0"
$ docker pull "grafana/promtail:2.6.0"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.6.0/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.5.0

Compare Source

🦖 🧡 Loki 2.5.0 🧡 🦖

It has been nearly 6 months since Loki 2.4 was released, and we’ve been busy making Loki better than ever. Here's a summary of new enhancements and important fixes.

Features and enhancements

For a full list of all changes please look at the CHANGELOG.

Upgrade Considerations

As always, please read the upgrade guide before upgrading Loki.

Changes to the config split_queries_by_interval

The most likely impact many people will see is Loki failing to start because of a change in the YAML configuration for split_queries_by_interval. It was previously possible to define this value in two places.

query_range:
  split_queries_by_interval: 10m

and/or

limits_config:
  split_queries_by_interval: 10m

In 2.5.0 it can only be defined in the limits_config section.

Loki will fail to start if you do not remove the split_queries_by_interval configuration parameter from the query_range section.

Additionally, it has a new default value of 30m rather than 0.

The CLI flag is not changed and remains querier.split-queries-by-interval.

More parallelism by default

We continue to move defaults in Loki to leverage parallelism in all configurations, including the single binary.

In v2.5, all queries will be split and sharded by default. This will likely result in increased memory and CPU usage for Loki processes during queries, if you didn’t previously have these values enabled.

Usage reporting

Loki 2.5 includes code we added to report anonymous usage statistics back to Grafana Labs, an issue was created to outline the intent, and what went into the final implementation can be seen here in the source.

Usage reporting helps provide anonymous information on how people use Loki and what the Loki team should focus on for features and documentation. No private information is collected, and all reports are completely anonymous.

If possible, we ask you to leave the usage reporting feature enabled and help us understand more about Loki! We are also working to figure out how we can share this info with the community so everyone can watch Loki grow.

If you would rather not participate in usage stats reporting, the feature can be disabled in config

analytics:
  reporting_enabled: false

Bug fixes

2.5.0 bug fixes

V2.5.0 fixes numerous bugs. The CHANGELOG has the complete list.

A summary of some of the more important fixes:

  • Query correctness:
    • PR 5474 cyriltovena: Disable sharding of count/avg when labels are mutated
    • PR 5444 cyriltovena: Do not insert missing point when sharding
    • PR 5423 cyriltovena: Correctly sets hash value for headblock iterator
    • PR 5289 cyriltovena: Fixes log deduplication when mutating Labels using LogQL
    • PR 5006 sandeepsukhani: Fix splitting of queries when step is larger than split interval
  • PR 5413 owen-d: A deadlock in the Azure blob client
  • PR 5334 kavirajk: A fix in live tailing that could lead to exploding memory usage
  • PR 5144 owen-d: A fix for the ruler when trying to use Basic Auth for remote write
  • Query cancellation:
    • PR 5113 kavirajk: Fix cancel issue between query-frontend and query scheduler
    • PR 5080 kavirajk: Handle context cancellation in some of the querier downstream requests
    • PR 5075 cyriltovena: Fixes a possible cancellation issue in the frontend
  • PR 4741 sandeepsukhani: An issue where retention didn't cleanup the index completely

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.5.0"
$ docker pull "grafana/promtail:2.5.0"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.5.0/loki-linux-amd64.zip"

### extract the binary
$ unzip "loki-linux-amd64.zip"

### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.4.2

Compare Source

Loki 2.4.2

Loki 2.4.2 is a patch fix release on 2.4.x

Defaults changes

2.4.2 makes the following changes to Loki defaults to improve usability, see PR 5077:

config new default old default
parallelise_shardable_queries true false
split_queries_by_interval 30m 0s
query_ingesters_within 3h 0s
max_chunk_age 2h 1h
max_concurrent 10 20
Bug fixes

2.4.2 fixes these bugs:

  • PR 4968 trevorwhitney: Fixes a bug in which querying ingesters wrongly returns a ruler,
    causing the internal server error code = Unimplemented.
  • PR 4875 trevorwhitney: Honor the replication factor specified in the common configuration block when memberlist is the consistent hash ring store.
  • PR 4792 AndreZiviani: Corrects the default values of configuration options in the documentation for:
    • scheduler_dns_lookup_period
    • min_ready_duration
    • final_sleep
    • max_transfer_retries
    • chunk_retain_period
    • chunk_target_size
    • batch_size
    • timeout (for Redis requests)
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.4.2"
$ docker pull "grafana/promtail:2.4.2"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.4.2/loki-linux-amd64.zip"

##### extract the binary
$ unzip "loki-linux-amd64.zip"

##### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.4.1

Compare Source

Loki 2.4.1

This is a patch fix release which fixes two important bugs found in the 2.4.0 release:

  • PR 4687 owen-d: Fixes a compactor panic when not using a tenant overrides file.
  • PR 4681 slim-bean: Fixes an incorrect initialization of the read target resulting in query gaps after a chunk is flushed and before the querier would download new index tables.
Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.4.1"
$ docker pull "grafana/promtail:2.4.1"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.
Example for Loki on the linux operating system and amd64 architecture:

$ curl -O -L "https://github.com/grafana/loki/releases/download/v2.4.1/loki-linux-amd64.zip"

### extract the binary
$ unzip "loki-linux-amd64.zip"

### make sure it is executable
$ chmod a+x "loki-linux-amd64"

v2.4.0

Compare Source

🎊 🌮 Loki 2.4.0 🌮 🎊

With Loki 2.4 we’ve focused on 2 main things:

  1. Making it easier than ever to get your logs into Loki.
  2. Making it easier to run and operate, anyone not using Kubernetes or allergic to microservices should pay close attention, this release has a lot for you.

Features and enhancements

  • Loki no longer requires logs to be sent in perfect chronological order. Support for out of order logs is one of the most highly requested features for Loki and in 2.4 the strict ordering constraint has been removed.
  • Scaling Loki is now much easier with a hybrid mode between a single binary and microservices we are calling the Simple Scalable Deployment. It’s now possible to scale Loki with new read and write targets. Where previously you would have needed Kubernetes and the microservices approach to start tapping into Loki’s potential, it’s now possible to do this in a much simpler way.
  • We introduced a common config section and updated and updated a lot of defaults. This results in a 70% smaller Loki config and comes out of the box with more appropriate defaults and limits. Check out the example local config as the new reference for running Loki.
  • Recording rules are no longer marked experimental and have a much more resilient implementation which leverages the existing write ahead log code in Prometheus.
  • Do you use Kafka for your logs? You should check out the new Promtail Kafka Consumer which can easily get your logs out of Kafka and into Loki.
  • LogQL has received some nice enhancements thanks to the amazing Loki community in the form of group_left and group_right as well as the label_format and line_formatfunctions now support working with dates and times
  • Another great community contribution to Promtail allows it to accept ndjson and plaintext log files over HTTP.

All in all about 260 PR’s went into Loki 2.4 and we thank everyone for helping us make the best Loki yet.

For a full list of all changes please look at the CHANGELOG

Upgrade Considerations

Please read the upgrade guide before updating Loki.

We made a lot of changes to Loki’s configuration as part of this release, we have tried our best to make sure changes are compatible with existing configurations however some changes to default limits may impact users who didn't have values explicitly set for these limits in their config files.

Here is a list of limits changed:

config new default old default
ingestion_rate_strategy "global" "local"
max_global_streams_per_user 5000 0 (no limit)
max_query_length "721h" "0h" (no limit)
max_query_parallelism 32 14
max_streams_per_user 0 (no limit) 10000
reject_old_samples true false
reject_old_samples_max_age "168h" "336h"
per_stream_rate_limit 3MB -
per_stream_rate_limit_burst 15MB -

Also we have enabled the in-memory FIFO cache by default when no existing external cache is configured. This helps improve Loki's performance however it will also allow Loki to consume more memory.

Bug fixes

Lists of bug fixes for 2.4.x.

2.4.0 bug fixes

Here is a list of some of the more important fixes in 2.4.0:

  • 4598 kavirajk: Fix ip matcher lexer to differentiate filter from identifier
  • 4563 cyriltovena: Fixes the Series function to handle properly sharding.
  • 4518 slim-bean: Loki: Fix bug where items are returned to a sync.Pool incorrectly
  • 4411 slim-bean: Loki: Bug: frontend waiting on results which would never come
  • 4238 liguozhong: [fix] distributor: fix goroutine leak

Security fixes

List of security fixes for 2.4.x

2.4.0 security fixes

2.4.0 contains one fix which is security related

4627 Loki: Explicitly define allowed HTTP methods on HTTP endpoints

A community user noticed that all Loki endpoints would respond to HTTP OPTIONS requests, and the proxy they placed in front of Loki responsible for HTTP authentication would pass OPTIONS requests unauthenticated to Loki allowing users to make unauthenticated/unauthorized queries to Loki. This PR restricts the type of HTTP methods allowed on each endpoint and disallows OPTIONS requests.

Installation:

The components of Loki are currently distributed in plain binary form and as Docker container images. Choose what fits your use-case best.

Docker container:
$ docker pull "grafana/loki:2.4.0"
$ docker pull "grafana/promtail:2.4.0"
Binary

We provide pre-compiled binary executables for the most common operating systems and architectures.
Choose from the assets below for the application and architecture matching your system.


Configuration

📅 Schedule: Branch creation - "on tuesday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from jpkrohling as a code owner January 30, 2024 19:06
@renovate renovate bot requested a review from a team January 30, 2024 19:06
@renovate renovate bot added the dependency-major-update Indicates a dependency major version bump label Jan 30, 2024
Copy link
Contributor Author

renovate bot commented Jan 30, 2024

⚠ Artifact update problem

Renovate failed to update artifacts related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: receiver/lokireceiver/go.sum
Command failed: go get -d -t ./...
go: errors parsing go.mod:
/tmp/renovate/repos/github/open-telemetry/opentelemetry-collector-contrib/receiver/lokireceiver/go.mod:9:2: require github.com/grafana/loki/pkg/push: version "v2.9.4" invalid: should be v0 or v1, not v2

File name: pkg/translator/loki/go.sum
Command failed: go get -d -t ./...
go: errors parsing go.mod:
/tmp/renovate/repos/github/open-telemetry/opentelemetry-collector-contrib/pkg/translator/loki/go.mod:7:2: require github.com/grafana/loki/pkg/push: version "v2.9.4" invalid: should be v0 or v1, not v2

File name: exporter/lokiexporter/go.sum
Command failed: go get -d -t ./...
go: errors parsing go.mod:
/tmp/renovate/repos/github/open-telemetry/opentelemetry-collector-contrib/exporter/lokiexporter/go.mod:9:2: require github.com/grafana/loki/pkg/push: version "v2.9.4" invalid: should be v0 or v1, not v2

@renovate renovate bot force-pushed the renovate/github.com-grafana-loki-pkg-push-2.x branch from faff746 to 150483c Compare January 31, 2024 20:41
@renovate renovate bot changed the title fix(deps): update module github.com/grafana/loki/pkg/push to v2 Update module github.com/grafana/loki/pkg/push to v2 Feb 1, 2024
@jpkrohling jpkrohling closed this Feb 1, 2024
@jpkrohling
Copy link
Member

Loki dependencies should use a hash instead of tags.

Copy link
Contributor Author

renovate bot commented Feb 1, 2024

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 2.x releases. But if you manually upgrade to 2.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate renovate bot deleted the renovate/github.com-grafana-loki-pkg-push-2.x branch February 1, 2024 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants