Skip to content

refactor(infra): move alloy river config to a file - #3807

Open
manamana32321 wants to merge 1 commit into
mainfrom
feat/alloy-config-file
Open

manamana32321 wants to merge 1 commit into
mainfrom
feat/alloy-config-file

Conversation

@manamana32321

@manamana32321 manamana32321 commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

Description

Alloy 설정 파일을 읽기 쉽게 분리합니다. 동작은 바뀌지 않습니다.

배포 순서 주의

머지 후 release 승급까지 production Alloy가 ArgoCD에서 빨갛게 뜹니다. 의도된 것이고 수집은 계속됩니다.

이유: ApplicationSet 매니페스트는 main에서 바로 배포되는데, 그 안의 production 설정은 파일을 release 브랜치에서 찾습니다. config.alloy가 아직 release에 없어서 production 쪽 설정 조립이 실패합니다.

Before submitting the PR, please make sure you do the following

🤖 Generated with Claude Code

@manamana32321 manamana32321 self-assigned this Oct 3, 2026
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7b96d7e6-5b22-43b5-a0cf-efa747b455e8
📥 Commits

Reviewing files that changed from the base of the PR and between 5a20011 and e3a21df.

📒 Files selected for processing (7)
  • .prettierignore
  • infra/k8s/argocd/applications/monitoring/alloy.yaml
  • infra/k8s/monitoring/alloy/README.md
  • infra/k8s/monitoring/alloy/config.alloy
  • infra/k8s/monitoring/alloy/values-production.yaml
  • infra/k8s/monitoring/alloy/values-stage.yaml
  • infra/k8s/monitoring/alloy/values.yaml
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fe98c06c40

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread infra/k8s/argocd/applications/monitoring/alloy.yaml
@manamana32321
manamana32321 force-pushed the feat/alloy-config-file branch from fe98c06 to e3a21df Compare October 3, 2026 12:01
@manamana32321

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

The River config was 89 of the 147 lines in values.yaml, inlined under
`alloy.configMap.content`. Inside a YAML string it gets no River syntax
highlighting, `alloy fmt` cannot reach it, and validating it means
rendering the ConfigMap and extracting the value again.

Move it to config.alloy and inject it through the ApplicationSet's
`helm.fileParameters`, which resolves multi-source `$ref` paths the same
way `valueFiles` does. The environment label now reads
`sys.env("ALLOY_ENVIRONMENT")` instead of `{{ .Values.environment }}`,
set per environment through `alloy.extraEnv`, so the file stays plain
River and `alloy validate` parses it directly.

`*.alloy` goes in .prettierignore because the lefthook pre-commit hook
runs prettier without `--ignore-unknown`, unlike CI.

Rendered output is unchanged apart from the environment label resolving
at runtime instead of at render time.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@manamana32321
manamana32321 force-pushed the feat/alloy-config-file branch from e3a21df to 5143249 Compare October 3, 2026 21:55
@manamana32321
manamana32321 requested a review from lshtar13 October 3, 2026 22:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant