From fea9fa8812de4a57592a10cb18060c8e5ddf2530 Mon Sep 17 00:00:00 2001 From: "camillo.rossi@gmail.com" Date: Thu, 18 Jul 2024 09:43:46 +1000 Subject: [PATCH] chunks-cache to 1G --- .github/workflows/release.yaml | 3 ++- README.md | 6 +++++- charts/aci-monitoring-stack/values.yaml | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 750cab6..3f8725b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,4 +24,5 @@ jobs: - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 env: - CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" \ No newline at end of file + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + CR_SKIP_EXISTING: True \ No newline at end of file diff --git a/README.md b/README.md index b437995..065ee88 100644 --- a/README.md +++ b/README.md @@ -224,10 +224,14 @@ The `backend` and `write` deployments requires persistent volumes. This chart is - `3 x data-loki-backend-X` - `3 x data-loki-write-X` -The PVC Size can be easily changed if required. Check the `loki` section in the [Values](charts/aci-monitoring-stack/values.yaml) file. +The PVC Size can be easily changed if required. Loki also requires an `Object Store`. This chart is pre-configured to deploy [minio](https://min.io/). *Note:* Currently [Loki Chart](https://github.com/grafana/loki/tree/main/production/helm/loki) is deploying a very old version of `Minio` and there is a [PR open](https://github.com/grafana/loki/pull/11409) to address this already. +Loki also support `chunks-cache` via `memcached`. The default config allocates 8G of memory. I have decreased this to 1G by default. + +If you want to change any of these parameters check the `loki` section in the [Values](charts/aci-monitoring-stack/values.yaml) file. + Assuming the default parameters are acceptable the only required config for loki is to set the `rulerConfig.external_url` to point to the Grafana `ingress` URL ```yaml diff --git a/charts/aci-monitoring-stack/values.yaml b/charts/aci-monitoring-stack/values.yaml index 0792e1e..869e1f0 100644 --- a/charts/aci-monitoring-stack/values.yaml +++ b/charts/aci-monitoring-stack/values.yaml @@ -264,7 +264,8 @@ loki: enabled: true singleBinary: replicas: 0 - + chunksCache: + allocatedMemory: 1024 ingester: replicas: 0 querier: