Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/grafana-prometheus/src/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,10 @@ export class PrometheusDatasource

async loadRules() {
try {
const res = await this.metadataRequest('/api/v1/rules', {}, { showErrorAlert: false });
const groups = res.data?.data?.groups;
// LOGZ.IO GRAFANA CHANGE :: DEV-46445-disable-recording-rules-fetch-in-grafana-10
// const res = await this.metadataRequest('/api/v1/rules', {}, { showErrorAlert: false });
// const groups = res.data?.data?.groups;
const groups = null;

if (groups) {
this.ruleMappings = extractRuleMappingFromGroups(groups);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ const RulesFilter = ({ onFilterCleared = () => undefined }: RulesFilerProps) =>
onChange={handleAlertStateChange}
/>
</div>
<div>
<div hidden>{ /* LOGZ.IO GRAFANA CHANGE :: disable recording rules filter */ }
<Label>Rule type</Label>
<RadioButtonGroup options={RuleTypeOptions} value={filterState.ruleType} onChange={handleRuleTypeChange} />
</div>
Expand Down
6 changes: 4 additions & 2 deletions public/app/plugins/datasource/prometheus/datasource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,10 @@ export class PrometheusDatasource

async loadRules() {
try {
const res = await this.metadataRequest('/api/v1/rules', {}, { showErrorAlert: false });
const groups = res.data?.data?.groups;
// LOGZ.IO GRAFANA CHANGE :: DEV-46445-disable-recording-rules-fetch-in-grafana-10
// const res = await this.metadataRequest('/api/v1/rules', {}, { showErrorAlert: false });
// const groups = res.data?.data?.groups;
const groups = null;

if (groups) {
this.ruleMappings = extractRuleMappingFromGroups(groups);
Expand Down