Skip to content

Commit

Permalink
Enable loki and set loki.chunksCache.to 128 to limits memory useage.
Browse files Browse the repository at this point in the history
Here’s a temporary solution; refer to this issue for details.
grafana/loki#12809
  • Loading branch information
shu-unifra committed Nov 5, 2024
1 parent 472aefb commit 8d89aae
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/scroll-monitor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: helm chart to deploy grafana, prometheus and loki to monitor scroll-sdk
name: scroll-monitor
version: 0.1.0
version: 0.1.1
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down
6 changes: 2 additions & 4 deletions charts/scroll-monitor/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scroll-monitor

![Version: 0.1.0](https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)
![Version: 0.1.1](https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square) ![AppVersion: v0.1.0](https://img.shields.io/badge/AppVersion-v0.1.0-informational?style=flat-square)

helm chart to deploy grafana, prometheus and loki to monitor scroll-sdk

Expand Down Expand Up @@ -80,7 +80,7 @@ Kubernetes: `>=1.22.0-0`
| kube-prometheus-stack.prometheus.prometheusSpec.serviceMonitorSelector.matchExpressions[0].operator | string | `"Exists"` | |
| loki.backend.replicas | int | `0` | |
| loki.deploymentMode | string | `"SingleBinary"` | |
| loki.enabled | bool | `false` | |
| loki.enabled | bool | `true` | |
| loki.fullnameOverride | string | `"loki"` | |
| loki.loki.commonConfig.replication_factor | int | `1` | |
| loki.loki.schemaConfig.configs[0].from | string | `"2024-01-01"` | |
Expand All @@ -101,5 +101,3 @@ Kubernetes: `>=1.22.0-0`
| promtail.config.clients[0].url | string | `"http://loki:3100/loki/api/v1/push"` | |
| promtail.enabled | bool | `true` | |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
2 changes: 1 addition & 1 deletion charts/scroll-monitor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ grafana:
- "grafana.scrollsdk"

loki:
enabled: false
enabled: true
fullnameOverride: loki
deploymentMode: SingleBinary
persistence:
Expand Down
7 changes: 6 additions & 1 deletion charts/scroll-monitor/values/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ kube-prometheus-stack:
receiver: "slack-alerts"
routes:
- matchers: []
receiver: "slack-alerts"
receiver: "slack-alerts"
loki:
chunksCache:
allocatedMemory: 128
resultsCache:
allocatedMemory: 128
2 changes: 1 addition & 1 deletion examples/Makefile.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAMESPACE ?= default

install:
helm upgrade -i scroll-monitor oci://ghcr.io/scroll-tech/scroll-sdk/helm/scroll-monitor -n $(NAMESPACE) \
--version=0.1.0 \
--version=0.1.1 \
--values values/scroll-monitor-production.yaml

helm upgrade -i scroll-common oci://ghcr.io/scroll-tech/scroll-sdk/helm/scroll-common -n $(NAMESPACE) \
Expand Down
7 changes: 6 additions & 1 deletion examples/values/scroll-monitor-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ kube-prometheus-stack:
receiver: "slack-alerts"
routes:
- matchers: []
receiver: "slack-alerts"
receiver: "slack-alerts"
loki:
chunksCache:
allocatedMemory: 128
resultsCache:
allocatedMemory: 128

0 comments on commit 8d89aae

Please sign in to comment.