Skip to content

Commit 377a334

Browse files
committed
Disable load rule groups
1 parent 063faff commit 377a334

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/grafana-prometheus/src/datasource.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

public/app/plugins/datasource/prometheus/datasource.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)