File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/grafana-prometheus/src
public/app/plugins/datasource/prometheus Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -747,8 +747,10 @@ export class PrometheusDatasource
747747
748748 async loadRules ( ) {
749749 try {
750- const res = await this . metadataRequest ( '/api/v1/rules' , { } , { showErrorAlert : false } ) ;
751- const groups = res . data ?. data ?. groups ;
750+ // LOGZ.IO GRAFANA CHANGE :: DEV-46445-disable-recording-rules-fetch-in-grafana-10
751+ // const res = await this.metadataRequest('/api/v1/rules', {}, { showErrorAlert: false });
752+ // const groups = res.data?.data?.groups;
753+ const groups = null ;
752754
753755 if ( groups ) {
754756 this . ruleMappings = extractRuleMappingFromGroups ( groups ) ;
Original file line number Diff line number Diff line change @@ -747,8 +747,10 @@ export class PrometheusDatasource
747747
748748 async loadRules ( ) {
749749 try {
750- const res = await this . metadataRequest ( '/api/v1/rules' , { } , { showErrorAlert : false } ) ;
751- const groups = res . data ?. data ?. groups ;
750+ // LOGZ.IO GRAFANA CHANGE :: DEV-46445-disable-recording-rules-fetch-in-grafana-10
751+ // const res = await this.metadataRequest('/api/v1/rules', {}, { showErrorAlert: false });
752+ // const groups = res.data?.data?.groups;
753+ const groups = null ;
752754
753755 if ( groups ) {
754756 this . ruleMappings = extractRuleMappingFromGroups ( groups ) ;
You can’t perform that action at this time.
0 commit comments