Skip to content

Commit

Permalink
fix: Fix hardcoded datasource uids
Browse files Browse the repository at this point in the history
  • Loading branch information
tiithansen committed Jun 14, 2024
1 parent 29fb707 commit 384b566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/AlertsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class AlertsQueryBuilder implements QueryBuilder<TableRow> {

return new SceneQueryRunner({
datasource: {
uid: 'prometheus',
uid: '$datasource',
type: 'prometheus',
},
queries: [
Expand Down
2 changes: 1 addition & 1 deletion src/components/ResourceBreakdownTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ function createRootQuery(sceneVariables: SceneVariableSet | SceneVariables, sort

return new SceneQueryRunner({
datasource: {
uid: 'prometheus',
uid: '$datasource',
type: 'prometheus',
},
queries: [
Expand Down

0 comments on commit 384b566

Please sign in to comment.