-
Notifications
You must be signed in to change notification settings - Fork 4
feat: switch loki deployment to loki3 chart #746
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
Open
i0n
wants to merge
19
commits into
main
Choose a base branch
from
bug/loki_upgrade
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 8 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
75f378c
feat: remove loki3 deployment and switch loki deployment to loki3 chart
i0n 7c9d5f3
feat: upgrade
cjorge-graphops d9b04a8
feat: upgrade
cjorge-graphops 3b7c5a8
feat(kube-state-prom): new v
calinah dd1a6d7
chore(monitoring): latest v update
calinah e22d4c4
chore(monitoring): updating loki chart v
calinah e0bc56e
feat: upgrade
cjorge-graphops fc582ff
feat: upgrade kube-prometheus-stack chart to 66.5.0
i0n 85551ca
feat: upgrade
cjorge-graphops 0d26430
fix: revert node-problem-detector version to latest available
cjorge-graphops 3c07a5a
feat: upgrade
cjorge-graphops a36596b
feat: update yarn deps
cjorge-graphops 38e070d
feat: upgrade
cjorge-graphops 1795d30
feat: upgrade
cjorge-graphops ea72c56
feat: upgrade
cjorge-graphops a4376aa
feat: upgrade
cjorge-graphops 4a870da
feat: upgrade
cjorge-graphops 579534f
fix: oci chart
cjorge-graphops 5014da1
fix: don't use the oci one
cjorge-graphops File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1 @@ | ||
| #!/usr/bin/env sh | ||
| . "$(dirname -- "$0")/_/husky.sh" | ||
|
|
||
| yarn commitlint --edit $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,29 +1,73 @@ | ||
| ingester: | ||
| persistence: | ||
| enabled: true # change to true to enable | ||
| claims: | ||
| - name: data | ||
| size: 20Gi | ||
| storageClass: openebs-rawfile-localpv # change if not using openebs-rawfile-localpv | ||
|
|
||
| loki: | ||
| auth_enabled: false | ||
| extraArgs: | ||
| - -config.expand-env=true | ||
| schemaConfig: | ||
| configs: | ||
| - from: 2022-01-01 | ||
| store: boltdb-shipper | ||
| object_store: filesystem | ||
| schema: v11 | ||
| - from: 2024-04-01 | ||
| store: tsdb | ||
| object_store: s3 | ||
| schema: v13 | ||
| index: | ||
| prefix: loki_index_ | ||
| period: 24h | ||
| storageConfig: | ||
| boltdb_shipper: | ||
| shared_store: filesystem | ||
| active_index_directory: /var/loki/index | ||
| cache_location: /var/loki/cache | ||
| cache_ttl: 168h | ||
| filesystem: | ||
| directory: /var/loki/chunks | ||
| ingester: | ||
| chunk_encoding: snappy | ||
| tracing: | ||
| enabled: true | ||
| querier: | ||
| # Default is 4, if you have enough memory and CPU you can increase, reduce if OOMing | ||
| max_concurrent: 4 | ||
|
|
||
| #gateway: | ||
| # ingress: | ||
| # enabled: true | ||
| # hosts: | ||
| # - host: FIXME | ||
| # paths: | ||
| # - path: / | ||
| # pathType: Prefix | ||
|
|
||
| deploymentMode: Distributed | ||
|
|
||
| ingester: | ||
| replicas: 3 | ||
| querier: | ||
| replicas: 3 | ||
| maxUnavailable: 2 | ||
| queryFrontend: | ||
| replicas: 2 | ||
| maxUnavailable: 1 | ||
| queryScheduler: | ||
| replicas: 2 | ||
| distributor: | ||
| replicas: 3 | ||
| maxUnavailable: 2 | ||
| compactor: | ||
| replicas: 1 | ||
| indexGateway: | ||
| replicas: 2 | ||
| maxUnavailable: 1 | ||
|
|
||
| bloomCompactor: | ||
| replicas: 0 | ||
| bloomGateway: | ||
| replicas: 0 | ||
|
|
||
| # Enable minio for storage | ||
| minio: | ||
| enabled: true | ||
|
|
||
| # Zero out replica counts of other deployment modes | ||
| backend: | ||
| replicas: 0 | ||
| read: | ||
| replicas: 0 | ||
| write: | ||
| replicas: 0 | ||
|
|
||
| singleBinary: | ||
| replicas: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| config: | ||
| lokiAddress: http://loki-loki-distributed-gateway/loki/api/v1/push | ||
| lokiAddress: http://loki-gateway/loki/api/v1/push | ||
| clients: | ||
| - url: http://loki-loki-distributed-gateway/loki/api/v1/push | ||
| - url: http://loki-gateway/loki/api/v1/push | ||
| containerSecurityContext: | ||
| privileged: true | ||
| allowPrivilegeEscalation: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Loki: chart switch to grafana/loki 6.36.1 — verify values migration
The rename/version bump is correct for Loki 3.x, but the values schema differs from
loki-distributed. Ensure your values no longer rely on legacy component blocks (distributor/ingester/querier/query-frontend/index-gateway/read/write/gateway) and are aligned with the new top-level keys (deploymentMode,storageConfig,schemaConfig,ruler,compactor,gateway, etc.).Run this repo-local scan to catch lingering legacy keys:
Also applies to: 192-193
🏁 Script executed:
Length of output: 1078
Loki values migration required: remove legacy component blocks
Our scan shows that your
monitoring/values/loki.yamlstill includes legacy component keys that aren’t supported by the new grafana/loki 6.36.1 chart. You’ll need to replace them with the new top-level schema (e.g.deploymentMode,storageConfig,schemaConfig,compactor,gateway,ruler, etc.).Affected file and lines:
ingester:querier:#gateway:ingester:querier:distributor:read:write:Action items:
distributor,ingester,querier,query-frontend,index-gateway,read,write,gateway) from your values.helmfile.yamlat lines 184–185 and 192–193) reference these legacy sections.Please update the values files accordingly to avoid runtime errors after the chart bump.
🤖 Prompt for AI Agents