-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[DO NOT MERGE](Feat: NRQL Predictions): Removed preview callout and updated pricing section for GA #20887
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: develop
Are you sure you want to change the base?
[DO NOT MERGE](Feat: NRQL Predictions): Removed preview callout and updated pricing section for GA #20887
Changes from all commits
7024378
942ed6d
e823e8c
64fcfae
88f4676
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -815,22 +815,21 @@ Here're some examples: | |
id="#sel-prediction" | ||
title={<><InlineCode>PREDICT</InlineCode> clause</>} | ||
> | ||
<Callout title="preview"> | ||
We're still working on this feature, but we'd love for you to try it out! | ||
|
||
This feature is currently provided as part of a preview program pursuant to our [pre-release policies](/docs/licenses/license-information/referenced-policies/new-relic-pre-release-policy). | ||
</Callout> | ||
|
||
```sql | ||
FROM Transaction SELECT count(*) WHERE error IS TRUE TIMESERIES PREDICT | ||
... | ||
``` | ||
|
||
<Callout variant="important"> | ||
The `PREDICT` clause is exclusive to users on the Advanced Compute SKU. New Relic offers it as part of the Compute pricing model or as an [add-on](/docs/accounts/accounts-billing/new-relic-one-pricing-billing/add-on-billing). NRQL queries executed with this clause consume CCUs. | ||
</Callout> | ||
|
||
With the `PREDICT` clause, you can add predictions of future data trends into line charts based on historical data. Consider the following points when using this clause: | ||
|
||
* Applies only to queries with a `TIMESERIES` clause. | ||
* Uses the `TIMESERIES <time period>` as the interval for predicted data points. | ||
* Does not support [metric timeslice data](/docs/data-analysis/metrics/analyze-your-metrics/data-collection-metric-timeslice-event-data#timeslice-data) while in Public Preview. | ||
|
||
|
||
<Callout variant="important"> | ||
The `PREDICT` clause cannot be used with the [`COMPARE WITH`](/docs/nrql/nrql-syntax-clauses-functions/#sel-compare) clause or [nested aggregations](/docs/nrql/using-nrql/nested-aggregation-make-ordered-computations-single-query) inside [subqueries](/docs/nrql/using-nrql/subqueries-in-nrql/). | ||
|
@@ -887,6 +886,18 @@ Here're some examples: | |
FROM Transaction SELECT count(*) WHERE error IS TRUE TIMESERIES PREDICT USING 2 days | ||
``` | ||
</Collapser> | ||
|
||
<Collapser id="slideby-with-predict" title={<>Use the <InlineCode>SLIDE BY</InlineCode> clause.</>}> | ||
If your forecast has a lot of variation over short periods of time, it may be difficult to see the trends in the data. To smoothen out the spiky chart, you can use the [`SLIDE BY` clause](/#slide-by). This clause aggregates the data into overlapping time windows with a specified slide interval, which can help reduce noise in the data and make it easier to see trends. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe we want to use "predict" rather than "forecast " here. Could we change the first sentence of the above text to: Smooth out your prediction trends using the [`SLIDE BY` clause](/docs/nrql/nrql-syntax-clauses-functions/#slide-by) if the data in your line chart varies significantly. |
||
|
||
Example query with the `SLIDE BY` clause that will generate predictions in 5 minute windows with a 1 minute slide interval: | ||
|
||
|
||
```sql | ||
FROM Transaction SELECT count(*) PREDICT TIMESERIES 5 minutes SLIDE BY 1 minute | ||
``` | ||
</Collapser> | ||
|
||
</CollapserGroup> | ||
|
||
Example query with the `PREDICT` clause specifying custom hyperparameters, and adding the `BY` and `USING` keywords: | ||
|
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.
The link for SLIDE BY is incorrect here. We should update this to be:
/docs/nrql/nrql-syntax-clauses-functions/#slide-by