- 
                Notifications
    You must be signed in to change notification settings 
- Fork 49
chore: update flow dev guide #2184
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: discord9 <[email protected]>
| Deploying greptime-docs with   | 
| Latest commit: | a86cc35 | 
| Status: | ✅ Deploy successful! | 
| Preview URL: | https://de1698fb.greptime-docs.pages.dev | 
| Branch Preview URL: | https://update-flow-dev-guide.greptime-docs.pages.dev | 
Signed-off-by: discord9 <[email protected]>
Signed-off-by: discord9 <[email protected]>
Signed-off-by: discord9 <[email protected]>
|  | ||
| ### Write a PromQL query | ||
|  | ||
| GreptimeDB Flow also supports using PromQL for continuous aggregation, allowing you to leverage familiar PromQL syntax for time-series analysis. When writing PromQL queries for Flow, it's crucial to specify an `eval interval` as PromQL doesn't have a fixed time window. This interval determines how frequently the PromQL query is evaluated and new aggregated results are generated. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't have a fixed time window?
does have a fixed time window?
| - `prom_aggregated` is the sink table that will store the continuously aggregated results. | ||
| - `TQL EVAL (start, end, '1m')` indicates that the PromQL query `rate(http_requests_total{job="my_service"}[1m])` is evaluated with a `step` of 1 minute. | ||
| - The `rate` function calculates the per-second average rate of increase of the `http_requests_total` metric over the last 1 minutes. | ||
| - The results, including the calculated `value` and the `timestamp` (which corresponds to the evaluation timestamp), are then written to the `rate_reqs` sink table. | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When creating a PromQL flow, how to determine the sink table schema based on the flow?
| ## Architecture | ||
|  | ||
| The batching mode consists of several key components that work together to achieve this continuous aggregation. | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is better to have a image to describe the architecture

What's Changed in this PR
Describe the change in this PR
Checklist
sidebars.tsmatches the current document structure when you changed the document structure.