Skip to content

prometheus: Remove unused code#640

Merged
illume merged 3 commits intomainfrom
prom-cleanup
Apr 26, 2026
Merged

prometheus: Remove unused code#640
illume merged 3 commits intomainfrom
prom-cleanup

Conversation

@skoeva
Copy link
Copy Markdown
Contributor

@skoeva skoeva commented Apr 24, 2026

No description provided.

skoeva added 2 commits April 18, 2026 14:21
Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
@skoeva skoeva self-assigned this Apr 24, 2026
@skoeva skoeva added the prometheus prometheus plugin related issues label Apr 24, 2026
Signed-off-by: Evangelos Skopelitis <eskopelitis@microsoft.com>
@skoeva skoeva requested a review from Copilot April 24, 2026 17:19
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

This PR reduces the Prometheus plugin’s public surface area by removing exports and eliminating an unused dependency.

Changes:

  • Make several helper functions/types non-exported and remove an unused utility function.
  • Remove the use-between dependency from package.json.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 8 comments.

File Description
prometheus/src/util.ts Makes getClusterConfig internal and removes isMetricsEnabled.
prometheus/src/request.tsx Makes Kubernetes response types and createPrometheusEndpoint internal.
prometheus/src/components/VisibilityButton/VisibilityButton.tsx Makes VisibilityButtonProps internal.
prometheus/package.json Removes use-between dependency.
Files not reviewed (1)
  • prometheus/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread prometheus/src/util.ts
Comment thread prometheus/src/request.tsx
Comment thread prometheus/src/request.tsx
Comment thread prometheus/src/request.tsx
Comment thread prometheus/src/request.tsx
Comment thread prometheus/src/request.tsx
Comment thread prometheus/src/request.tsx
Comment thread prometheus/package.json
Copy link
Copy Markdown
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

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

Thanks for these changes.

Can you please address the open review comments?

Copy link
Copy Markdown
Contributor

@illume illume left a comment

Choose a reason for hiding this comment

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

🎉

@illume illume merged commit 90e1971 into main Apr 26, 2026
12 of 13 checks passed
@illume illume deleted the prom-cleanup branch April 26, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prometheus prometheus plugin related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants