Skip to content

feat: support special labels parsing in prom remote write #6302

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

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

Conversation

shuiyisong
Copy link
Contributor

@shuiyisong shuiyisong commented Jun 11, 2025

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

#6156

What's changed and what's your intention?

This PR adds support for parsing and setting the schema and physical table options from the Prom remote write's label value.

  • __database__ for setting the schema
  • __physical_table__ for setting the physical table info

Note: __physical_table__ only takes effect upon first insertion(which is create-table-upon-insert process).

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.

@sunng87
Copy link
Member

sunng87 commented Jun 12, 2025

@waynexia @v0y4g3r please confirm this, we have user waiting for this feature. thanks!

Copy link
Contributor

@killme2008 killme2008 left a comment

Choose a reason for hiding this comment

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

Almost LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-required This change requires docs update.
Projects
None yet
3 participants