Skip to content

refactor(otlp_metric)!: make otlp metric compatible with promql #6543

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

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

shuiyisong
Copy link
Contributor

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

In this PR, we are trying to make OTLP metric input data compatible with Prometheus and PromQL, that it can be used directly as Prometheus metrics.
This is a breaking change:

  1. we now use metric engine by default
  2. the resolution of timestamp is changed from nanosecond to millisecond
  3. only certain attributes are by default remain persistent in the table, others will be discarded.

PR Checklist

Please convert it to a draft if some of the following conditions are not met.

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR requires documentation updates.
  • API changes are backward compatible.
  • Schema or data changes are backward compatible.

@shuiyisong shuiyisong requested a review from a team as a code owner July 17, 2025 07:57
@github-actions github-actions bot added size/M docs-not-required This change does not impact docs. labels Jul 17, 2025
@shuiyisong shuiyisong added the breaking-change This pull request contains breaking changes. label Jul 17, 2025
@shuiyisong shuiyisong changed the title refactor(otlp_metric)!: make otlp metric input data compatible with prometheus refactor(otlp_metric)!: make otlp metric compatible with promql Jul 18, 2025
@shuiyisong shuiyisong marked this pull request as draft July 21, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking-change This pull request contains breaking changes. docs-not-required This change does not impact docs. size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant