mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Prometheus: Use $__rate_interval for rate queries generated by metric browser (#65386)
Prometheus: Fix using of rate interval for query from metric browser
This commit is contained in:
parent
1f77c8c777
commit
aa23758a96
@ -219,7 +219,7 @@ export class UnthemedPrometheusMetricsBrowser extends React.Component<BrowserPro
|
||||
|
||||
onClickRunRateQuery = () => {
|
||||
const selector = buildSelector(this.state.labels);
|
||||
const query = `rate(${selector}[$__interval])`;
|
||||
const query = `rate(${selector}[$__rate_interval])`;
|
||||
this.props.onChange(query);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user