Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Loki and set loki.chunksCache to 128 to limit memory usage #230

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
4 changes: 2 additions & 2 deletions charts/scroll-sdk/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: v2
description: scroll helm charts to deploy scroll sdk
name: scroll-sdk
version: 0.1.0
version: 0.1.1
appVersion: v0.1.0
kubeVersion: ">=1.22.0-0"
maintainers:
Expand Down Expand Up @@ -98,7 +98,7 @@ dependencies:
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: scroll-common.enabled
- name: scroll-monitor
version: 0.1.0
version: 0.1.1
repository: "oci://ghcr.io/scroll-tech/scroll-sdk/helm"
condition: scroll-monitor.enabled
- name: admin-system-backend
Expand Down
6 changes: 2 additions & 4 deletions charts/scroll-sdk/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# scroll-sdk

![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)

scroll helm charts to deploy scroll sdk

Expand Down Expand Up @@ -41,7 +41,7 @@ Kubernetes: `>=1.22.0-0`
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | rollup-node | 0.1.0 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | rpc-gateway | 0.1.0 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | scroll-common | 0.1.0 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | scroll-monitor | 0.1.0 |
| oci://ghcr.io/scroll-tech/scroll-sdk/helm | scroll-monitor | 0.1.1 |
| oci://registry-1.docker.io/bitnamicharts | postgresql | 15.5.0 |

## Values
Expand Down Expand Up @@ -145,5 +145,3 @@ Kubernetes: `>=1.22.0-0`
| scroll-monitor.loki.enabled | bool | `false` | |
| scroll-monitor.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 devnet/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ L1_RPC_HOST := l1-devnet.scrollsdk

bootstrap:
echo "Pulling helm chart..."
helm pull oci://ghcr.io/scroll-tech/scroll-sdk/helm/scroll-sdk --version 0.1.0
helm pull oci://ghcr.io/scroll-tech/scroll-sdk/helm/scroll-sdk --version 0.1.1
echo "Extracting helm chart..."
tar -xvf *.tgz
$(MAKE) config
Expand Down
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
Loading