Skip to content
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

feat: implement deployments in k8s infra monitoring #6786

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

amlannandy
Copy link
Member

@amlannandy amlannandy commented Jan 9, 2025

Summary

Implementation of deployments entity for Infra Monitoring

  • Deployments list table
  • Deployments details page

Related Issues / PR's

N/A

Screenshots

Screenshot 2025-01-09 at 1 31 06 PM Screenshot 2025-01-09 at 1 31 25 PM

Affected Areas and Manually Tested Areas

Infra Monitoring section


Important

Implement Kubernetes deployments monitoring in infrastructure monitoring with new API, UI components, and query handling.

  • API:
    • Add getK8sDeploymentsList in getK8sDeploymentsList.ts to fetch deployment data.
    • Add useGetK8sDeploymentsList hook in useGetK8sDeploymentsList.ts for querying deployment data.
  • UI Components:
    • Add K8sDeploymentsList.tsx for listing deployments with pagination and sorting.
    • Add DeploymentDetails.tsx for detailed view of a deployment with tabs for metrics, logs, traces, and events.
    • Add styles in K8sDeploymentsList.styles.scss and DeploymentDetails.styles.scss.
  • Query Handling:
    • Add query payload functions in constants.ts for deployments, logs, events, and traces.
    • Update reactQueryKeys.ts with GET_DEPLOYMENT_LIST key.
  • Misc:
    • Update InfraMonitoringK8s.tsx to include deployments in the monitoring dashboard.

This description was created by Ellipsis for 469ea25. It will automatically update as commits are pushed.

@amlannandy amlannandy requested a review from YounixM as a code owner January 9, 2025 07:29
Copy link

github-actions bot commented Jan 9, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

@github-actions github-actions bot added enhancement New feature or request docs required labels Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

❌ Changes requested. Reviewed everything up to 8afcbc8 in 1 minute and 34 seconds

More details
  • Looked at 4746 lines of code in 31 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_WC8XBc3vcToAd1op


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 12b6670 in 26 seconds

More details
  • Looked at 39 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 2 drafted comments based on config settings.
1. frontend/src/hooks/infraMonitoring/useGetK8sDeploymentsList.ts:37
  • Draft comment:
    The query key has been correctly updated to GET_DEPLOYMENT_LIST to reflect the new functionality for deployments.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The change from GET_HOST_LIST to GET_DEPLOYMENT_LIST in useGetK8sDeploymentsList.ts is correct and aligns with the new functionality for deployments.
2. frontend/src/hooks/infraMonitoring/useGetK8sNodesList.ts:37
  • Draft comment:
    The query key has been correctly updated to GET_NODE_LIST to reflect the functionality for nodes.
  • Reason this comment was not posted:
    Confidence changes required: 0%
    The change from GET_HOST_LIST to GET_NODE_LIST in useGetK8sNodesList.ts is correct and aligns with the functionality for nodes.

Workflow ID: wflow_L2HWLzwt0ykQ60Dq


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

github-actions bot commented Jan 9, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

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

👍 Looks good to me! Incremental review on 469ea25 in 48 seconds

More details
  • Looked at 18 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 drafted comments based on config settings.
1. frontend/src/container/InfraMonitoringK8s/Deployments/utils.tsx:234
  • Draft comment:
    Ensure that the new color Color.BG_SLATE_400 for the Tag component maintains sufficient contrast for accessibility. Consider using a tool to verify color contrast ratios.
  • Reason this comment was not posted:
    Confidence changes required: 50%
    The color change for the Tag component is appropriate, but it's important to ensure that the new color is accessible and maintains good contrast.

Workflow ID: wflow_2OK9ocmREA9VKhxP


You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

Copy link

github-actions bot commented Jan 9, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

1 similar comment
Copy link

github-actions bot commented Jan 9, 2025

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #<issue_id>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs not required enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant