Skip to content

Commit

Permalink
[bitnami/grafana-loki] Release 4.0.0 (bitnami#25308)
Browse files Browse the repository at this point in the history
* [bitnami/grafana-loki] Release 4.0.0 updating components versions

Signed-off-by: Bitnami Containers <[email protected]>

* [bitnami/grafana-loki] Update loki.yaml and cypress tests

Signed-off-by: Gonzalo Gomez Gracia <[email protected]>

* Update README.md with readme-generator-for-helm

Signed-off-by: Bitnami Containers <[email protected]>

* [bitnami/grafana-loki] Update readme

Signed-off-by: Gonzalo Gomez Gracia <[email protected]>

---------

Signed-off-by: Bitnami Containers <[email protected]>
Signed-off-by: Gonzalo Gomez Gracia <[email protected]>
Co-authored-by: Gonzalo Gomez Gracia <[email protected]>
Signed-off-by: Matheus Goncalves <[email protected]>
  • Loading branch information
2 people authored and Matheus Goncalves committed May 2, 2024
1 parent a7e7257 commit 2f4f35b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .vib/grafana-loki/cypress/cypress/e2e/grafana_loki.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ it('checks Loki range endpoint', () => {
form: true,
}).then((response) => {
expect(response.status).to.eq(200);
expect(response.headers['content-type']).to.eq(
expect(response.headers['content-type'].toLowerCase()).to.eq(
'application/json; charset=utf-8'
);
expect(response.body.data.stats.summary).not.to.be.empty;
Expand Down
6 changes: 3 additions & 3 deletions bitnami/grafana-loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ annotations:
licenses: Apache-2.0
images: |
- name: grafana-loki
image: docker.io/bitnami/grafana-loki:2.9.7-debian-12-r0
image: docker.io/bitnami/grafana-loki:3.0.0-debian-12-r0
- name: memcached
image: docker.io/bitnami/memcached:1.6.26-debian-12-r1
- name: nginx
Expand All @@ -16,7 +16,7 @@ annotations:
- name: promtail
image: docker.io/bitnami/promtail:3.0.0-debian-12-r0
apiVersion: v2
appVersion: 2.9.7
appVersion: 3.0.0
dependencies:
- alias: memcachedchunks
condition: memcachedchunks.enabled
Expand Down Expand Up @@ -57,4 +57,4 @@ maintainers:
name: grafana-loki
sources:
- https://github.com/bitnami/charts/tree/main/bitnami/grafana-loki
version: 3.2.1
version: 4.0.0
8 changes: 6 additions & 2 deletions bitnami/grafana-loki/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@ The [Bitnami grafana-loki](https://github.com/bitnami/containers/tree/main/bitna
| `ingester.customReadinessProbe` | Custom readinessProbe that overrides the default one | `{}` |
| `ingester.customStartupProbe` | Custom startupProbe that overrides the default one | `{}` |
| `ingester.lifecycleHooks` | for the ingester container(s) to automate configuration before or after startup | `{}` |
| `ingester.resourcesPreset` | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if ingester.resources is set (ingester.resources is recommended for production). | `nano` |
| `ingester.resourcesPreset` | Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if ingester.resources is set (ingester.resources is recommended for production). | `micro` |
| `ingester.resources` | Set container requests and limits for different resources like CPU or memory (essential for production workloads) | `{}` |
| `ingester.podSecurityContext.enabled` | Enabled Ingester pods' Security Context | `true` |
| `ingester.podSecurityContext.fsGroupChangePolicy` | Set filesystem group change policy | `Always` |
Expand Down Expand Up @@ -1538,6 +1538,10 @@ Find more information about how to deal with common errors related to Bitnami's

## Upgrading

### To 4.0.0

This major bumps the Grafana Loki version to its newest major, 3.x.x. This version includes a new storage schema, among other features like structured metadata support. These changes could potentially break your deployments. Please refer to the official [release notes](https://grafana.com/docs/loki/latest/release-notes/v3-0/) and documentation website for further details.

### To 3.0.0

This major bump changes the following security defaults:
Expand Down Expand Up @@ -1574,4 +1578,4 @@ Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
limitations under the License.
2 changes: 1 addition & 1 deletion bitnami/grafana-loki/templates/compactor/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
args:
- -target=compactor
- -config.file={{ .Values.loki.dataDir }}/conf/loki.yaml
- -boltdb.shipper.compactor.working-directory={{ .Values.loki.dataDir }}/loki/compactor
- -compactor.working-directory={{ .Values.loki.dataDir }}/loki/compactor
{{- if .Values.compactor.extraArgs }}
{{- include "common.tplvalues.render" (dict "value" .Values.compactor.extraArgs "context" $) | nindent 12 }}
{{- end }}
Expand Down
21 changes: 12 additions & 9 deletions bitnami/grafana-loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ loki:
image:
registry: docker.io
repository: bitnami/grafana-loki
tag: 2.9.7-debian-12-r0
tag: 3.0.0-debian-12-r0
digest: ""
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'
Expand Down Expand Up @@ -126,17 +126,16 @@ loki:
chunk_block_size: 262144
chunk_encoding: snappy
chunk_retain_period: 1m
max_transfer_retries: 0
wal:
dir: {{ .Values.loki.dataDir }}/wal
limits_config:
retention_period: 336h
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
max_cache_freshness_per_query: 10m
split_queries_by_interval: 15m
allow_structured_metadata: true
schema_config:
configs:
Expand All @@ -148,16 +147,22 @@ loki:
prefix: index_
period: 24h
- from: 2024-03-12
store: tsdb
object_store: filesystem
schema: v12
index:
period: 24h
prefix: index_
- from: 2024-04-23
object_store: filesystem
schema: v12
store: tsdb
schema: v13
index:
prefix: index_
period: 24h
storage_config:
boltdb_shipper:
shared_store: filesystem
active_index_directory: {{ .Values.loki.dataDir }}/loki/index
cache_location: {{ .Values.loki.dataDir }}/loki/cache
cache_ttl: 168h
Expand All @@ -184,7 +189,6 @@ loki:
index_gateway_client:
server_address: {{ (printf "dns:///%s:9095" (include "grafana-loki.index-gateway.fullname" .)) }}
{{- end }}
shared_store: filesystem
query_scheduler:
max_outstanding_requests_per_tenant: 32768
Expand All @@ -193,7 +197,6 @@ loki:
max_concurrent: 16
chunk_store_config:
max_look_back_period: 0s
{{- if .Values.memcachedchunks.enabled }}
chunk_cache_config:
memcached:
Expand Down Expand Up @@ -248,11 +251,11 @@ loki:
compactor:
working_directory: {{ .Values.loki.dataDir }}/loki/retention
shared_store: filesystem
compaction_interval: 10m
retention_enabled: true
retention_delete_delay: 2h
retention_delete_worker_count: 150
delete_request_store: filesystem
ruler:
storage:
Expand Down Expand Up @@ -2027,7 +2030,7 @@ ingester:
## @param ingester.resourcesPreset Set container resources according to one common preset (allowed values: none, nano, micro, small, medium, large, xlarge, 2xlarge). This is ignored if ingester.resources is set (ingester.resources is recommended for production).
## More information: https://github.com/bitnami/charts/blob/main/bitnami/common/templates/_resources.tpl#L15
##
resourcesPreset: "nano"
resourcesPreset: "micro"
## @param ingester.resources Set container requests and limits for different resources like CPU or memory (essential for production workloads)
## Example:
## resources:
Expand Down

0 comments on commit 2f4f35b

Please sign in to comment.