-
Notifications
You must be signed in to change notification settings - Fork 314
feat(PVO11Y-4928): Implement Otel sidecar for Konflux UI #8365
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
Merged
openshift-merge-bot
merged 13 commits into
redhat-appstudio:main
from
martysp21:Otel_Sidecar_Konflux_ui_stage
Oct 8, 2025
Merged
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8e93cea
feat(KONFLUX-5285): Implement Otel sidecar for Konflux UI
martysp21 0586584
Fix: Correct configuration location in the command section
martysp21 2f817a4
Merge branch 'redhat-appstudio:main' into Otel_Sidecar_Konflux_ui_stage
martysp21 793ba87
Merge branch 'main' into Otel_Sidecar_Konflux_ui_stage
TominoFTW a959490
Update security context to run as non root
martysp21 e15962f
Update resource limit and request
martysp21 6968bbf
Change used image. Apply truncation of logs by otel.
martysp21 6922f75
Change used image tag to a specific one
martysp21 9944313
Correct logs mount in otel. Add Config mounting in kustomization.
martysp21 91f20b1
R Renamed the conf to config for consistency.
martysp21 e904882
Merge branch 'main' into Otel_Sidecar_Konflux_ui_stage
raks-tt 6000f1a
Fix file reference in kustomization.
martysp21 0530f8f
Merge branch 'main' into Otel_Sidecar_Konflux_ui_stage
martysp21 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
43 changes: 43 additions & 0 deletions
43
components/konflux-ui/staging/base/proxy/otel-collector-conf.yaml
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 |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| receivers: | ||
| filelog/nginx: | ||
| include: | ||
| - /var/log/nginx/access.log | ||
| start_at: beginning | ||
| max_log_size: 100MiB | ||
| operators: | ||
| - type: regex_parser | ||
| regex: '^(?P<remote_addr>[^ ]*) - (?P<remote_user>[^ ]*) \[(?P<time_local>[^\]]*)\] "(?P<method>[^ ]*) (?P<path>[^ ]*) (?P<protocol>[^"]*)" (?P<status>\d+) (?P<body_bytes_sent>\d+) "(?P<http_referer>[^"]*)" "(?P<http_user_agent>[^"]*)"$' | ||
| processors: | ||
| transform/status_to_int: | ||
| log_statements: | ||
| - context: log | ||
| statements: | ||
| - set(attributes["status_int"], Int(attributes["status"])) | ||
|
|
||
| exporters: | ||
| prometheus: | ||
| endpoint: "0.0.0.0:8889" | ||
|
|
||
| connectors: | ||
| count: | ||
| logs: | ||
| nginx_otel_http_request_errors: | ||
| description: HTTP 4xx and 5xx errors from NGINX | ||
| conditions: | ||
| - 'attributes["status_int"] >= 400 and attributes["status_int"] < 600' | ||
| attributes: | ||
| - key: method | ||
| value: attributes["method"] | ||
| - key: status | ||
| value: attributes["status"] | ||
|
|
||
| service: | ||
| pipelines: | ||
| logs: | ||
| receivers: [filelog/nginx] | ||
| processors: [transform/status_to_int] | ||
| exporters: [count] | ||
| metrics: | ||
| receivers: [count] | ||
| processors: [] | ||
| exporters: [prometheus] |
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.