Skip to content

Conversation

@amaypatil02
Copy link

Issue: 47079

Update Query to Fix Query Node TimeTick utilization

Metrics for Query node is not appearing correctly. Query needs to be updated. Already confirmed with James on a separate thread.

Currently, query shows No data.

image

Post fix, Data is available.

image

@sre-ci-robot
Copy link
Contributor

Welcome @amaypatil02! It looks like this is your first PR to milvus-io/milvus 🎉

@gemini-code-assist
Copy link

Summary of Changes

Hello @amaypatil02, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request resolves an issue where critical Query Node TimeTick utilization metrics were not being displayed correctly in the Grafana dashboard. By adjusting the message type used in the underlying Prometheus queries, this change ensures that the relevant performance data is now accurately collected and visualized, providing better observability for the Query Node's operation.

Highlights

  • Corrected Grafana Dashboard Queries: Updated Prometheus queries within the Grafana dashboard to accurately display Query Node TimeTick utilization metrics.
  • Metric Type Adjustment: Changed the 'msg_type' label from 'insert' to 'timetick' in the 'milvus_querynode_consume_tt_lag_ms' metric expressions.
  • Resolved Data Display Issue: Fixed an issue where Query Node metrics were showing 'No data' in Grafana, ensuring proper visualization of time-tick consumption lag.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@sre-ci-robot sre-ci-robot added the size/XS Denotes a PR that changes 0-9 lines. label Jan 15, 2026
@sre-ci-robot
Copy link
Contributor

[ci-v2-notice]
Notice: New ci-v2 system is enabled for this PR.

To rerun ci-v2 checks, comment with:

  • /ci-rerun-code-check // for ci-v2/code-check
  • /ci-rerun-build // for ci-v2/build
  • /ci-rerun-ut-integration // for ci-v2/ut-integration, will rerun ci-v2/build
  • /ci-rerun-ut-go // for ci-v2/ut-go, will rerun ci-v2/build
  • /ci-rerun-ut-cpp // for ci-v2/ut-cpp
  • /ci-rerun-ut // for all ci-v2/ut-integration, ci-v2/ut-go, ci-v2/ut-cpp, will rerun ci-v2/build
  • /ci-rerun-e2e-arm // for ci-v2/e2e-arm
  • /ci-rerun-e2e-default // for ci-v2/e2e-default

If you have any questions or requests, please contact @zhikunyao.

@mergify
Copy link
Contributor

mergify bot commented Jan 15, 2026

@amaypatil02 Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.

@mergify mergify bot added the needs-dco DCO is missing in this pull request. label Jan 15, 2026
@mergify
Copy link
Contributor

mergify bot commented Jan 15, 2026

@amaypatil02

Invalid PR Title Format Detected

Your PR submission does not adhere to our required standards. To ensure clarity and consistency, please meet the following criteria:

  1. Title Format: The PR title must begin with one of these prefixes:
  • feat: for introducing a new feature.
  • fix: for bug fixes.
  • enhance: for improvements to existing functionality.
  • test: for add tests to existing functionality.
  • doc: for modifying documentation.
  • auto: for the pull request from bot.
  • build(deps): for dependency updates from Dependabot.
  1. Description Requirement: The PR must include a non-empty description, detailing the changes and their impact.

Required Title Structure:

[Type]: [Description of the PR]

Where Type is one of feat, fix, enhance, test or doc.

Example:

enhance: improve search performance significantly 

Please review and update your PR to comply with these guidelines.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly updates Grafana dashboard queries for the milvus_querynode_consume_tt_lag_ms metric, changing the msg_type from insert to timetick to resolve an issue where no data was being displayed. The change is logical and addresses the problem described. I have one suggestion to improve clarity: the title of the affected panel should be updated to reflect the new data source, as it currently still refers to 'Insert'.

},
"exemplar": true,
"expr": "avg(milvus_querynode_consume_tt_lag_ms{app_kubernetes_io_instance=~\"$instance\", app_kubernetes_io_name=\"$app_name\", namespace=\"$namespace\", msg_type=\"insert\"}) by (pod, node_id)",
"expr": "avg(milvus_querynode_consume_tt_lag_ms{app_kubernetes_io_instance=~\"$instance\", app_kubernetes_io_name=\"$app_name\", namespace=\"$namespace\", msg_type=\"timetick\"}) by (pod, node_id)",

Choose a reason for hiding this comment

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

medium

While the query is now correctly filtering for msg_type="timetick", the panel's title on line 7390 is still TimeTick Lag Behind Now (Consumed Insert). This is now misleading. To avoid confusion, please update the title to align with the data being shown, for example, to TimeTick Lag Behind Now (Consumed TimeTick) or simply TimeTick Lag Behind Now.

@amaypatil02 amaypatil02 changed the title Update Grafana dashboard: change msg_type from insert to timetick fix:Update Grafana dashboard: change msg_type from insert to timetick Jan 15, 2026
@amaypatil02 amaypatil02 changed the title fix:Update Grafana dashboard: change msg_type from insert to timetick fix: update grafana dashboard: change msg_type from insert to timetick Jan 15, 2026
@mergify mergify bot added kind/bug Issues or changes related a bug and removed do-not-merge/invalid-pr-format labels Jan 15, 2026
@mergify
Copy link
Contributor

mergify bot commented Jan 15, 2026

@amaypatil02 Please associate the related issue to the body of your Pull Request. (eg. "issue: #")

@amaypatil02 amaypatil02 force-pushed the fix/grafana-dashboard-timetick branch from 78480df to e6c0c7c Compare January 15, 2026 03:51
@mergify mergify bot added dco-passed DCO check passed. and removed needs-dco DCO is missing in this pull request. labels Jan 15, 2026
@amaypatil02 amaypatil02 changed the title fix: update grafana dashboard: change msg_type from insert to timetick fix: query node timetick metrics : change msg_type from insert to timetick Jan 15, 2026
@yanliang567
Copy link
Contributor

/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amaypatil02, yanliang567

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Linkwei
Copy link
Contributor

Linkwei commented Jan 15, 2026

/lgtm

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

Labels

approved dco-passed DCO check passed. do-not-merge/missing-related-issue kind/bug Issues or changes related a bug lgtm size/XS Denotes a PR that changes 0-9 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants