Docs: Added $__rate_interval to Prometheus help (#28030)

* Docs: Added $__rate_interval to Prometheus help

The variable '$__rate_interval' was added in Grafana 7.2.0. This commit
adds the missing help information to Grafana's Prometheus PromQueryEditor.

Signed-off-by: David Calvert <davidcalvertfr@gmail.com>

* Docs: Fixed line length in PromQueryEditor.tsx

This commit will fix line length of my previous commit to make CI green
again.

Signed-off-by: David Calvert <davidcalvertfr@gmail.com>

* Docs: Fixed ci error

Fixed CI error due to my previous commits

Signed-off-by: David Calvert <davidcalvertfr@gmail.com>
This commit is contained in:
David C
2020-10-05 16:14:33 +01:00
committed by GitHub
parent 11e6cc10d4
commit 1f389d72b2
3 changed files with 8 additions and 3 deletions

View File

@@ -136,7 +136,8 @@ export class PromQueryEditor extends PureComponent<Props, State> {
tooltip={
<>
An additional lower limit for the step parameter of the Prometheus query and for the{' '}
<code>$__interval</code> variable. The limit is absolute and not modified by the "Resolution" setting.
<code>$__interval</code> and <code>$__rate_interval</code> variables. The limit is absolute and not
modified by the "Resolution" setting.
</>
}
>

View File

@@ -52,7 +52,11 @@ exports[`Render PromQueryEditor with basic options should render 1`] = `
<code>
$__interval
</code>
variable. The limit is absolute and not modified by the "Resolution" setting.
and
<code>
$__rate_interval
</code>
variables. The limit is absolute and not modified by the "Resolution" setting.
</React.Fragment>
}
width={7}