feat: remove instance name from metrics module#112
Conversation
Signed-off-by: Chalindu Kodikara <chalindumkodikara@gmail.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR removes the per-cluster ChangesRemove instanceName across configuration, code, and templates
Documentation updates for multi-cluster and deployment flows
🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@observability-metrics-cloudwatch/README.md`:
- Around line 476-478: The helm upgrade command shown (helm upgrade
observability-metrics-cloudwatch
oci://ghcr.io/openchoreo/helm-charts/observability-metrics-cloudwatch
--namespace "$NS" --reuse-values) must pin the chart version to avoid an
unintended chart upgrade; update both occurrences (the one at the shown snippet
and the other at lines ~839-841) to include a --version flag (e.g. --version
"$CHART_VERSION" or a literal semantic version) and document or source the
CHART_VERSION variable so recovery flows only re-run hooks/jobs rather than
upgrade the release.
- Around line 450-464: Update the restart instructions to be topology-aware by
checking for each workload before restarting: for the adapter, test existence of
the Deployment named metrics-adapter-cloudwatch (e.g. kubectl -n "$NS" get
deployment metrics-adapter-cloudwatch) and only run kubectl -n "$NS" rollout
restart deployment/metrics-adapter-cloudwatch if it exists; likewise check for
the DaemonSet observability-metrics-cloudwatch-adotcollector-agent before
running kubectl -n "$NS" rollout restart
daemonset/observability-metrics-cloudwatch-adotcollector-agent. This keeps
observability-plane-only or data-plane-only installs from attempting to restart
absent resources.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: e646892a-3d30-46e7-bef2-80043b950254
📒 Files selected for processing (13)
observability-metrics-cloudwatch/README.mdobservability-metrics-cloudwatch/helm/templates/_helpers.tplobservability-metrics-cloudwatch/helm/templates/adapter/deployment.yamlobservability-metrics-cloudwatch/helm/templates/adot-collector/env-configmap.yamlobservability-metrics-cloudwatch/helm/values.yamlobservability-metrics-cloudwatch/internal/cloudwatchmetrics/alarms_test.goobservability-metrics-cloudwatch/internal/cloudwatchmetrics/client.goobservability-metrics-cloudwatch/internal/cloudwatchmetrics/client_test.goobservability-metrics-cloudwatch/internal/cloudwatchmetrics/queries.goobservability-metrics-cloudwatch/internal/cloudwatchmetrics/queries_test.goobservability-metrics-cloudwatch/internal/config.goobservability-metrics-cloudwatch/internal/config_test.goobservability-metrics-cloudwatch/main.go
💤 Files with no reviewable changes (5)
- observability-metrics-cloudwatch/helm/templates/adapter/deployment.yaml
- observability-metrics-cloudwatch/internal/config.go
- observability-metrics-cloudwatch/internal/cloudwatchmetrics/alarms_test.go
- observability-metrics-cloudwatch/main.go
- observability-metrics-cloudwatch/internal/cloudwatchmetrics/client.go
Signed-off-by: Chalindu Kodikara <chalindumkodikara@gmail.com>
Signed-off-by: Chalindu Kodikara <chalindumkodikara@gmail.com>
Purpose
$subject
Approach
Related Issues
Checklist
Remarks
Summary by CodeRabbit
Release Notes
New Features
Documentation
Chores