Skip to content

Commit

Permalink
Update/fix missing system.dashboards dashboard (#954)
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Christou <[email protected]>
  • Loading branch information
SpencerTorres and aangelisc authored Aug 29, 2024
1 parent f1c9eca commit 17761a5
Show file tree
Hide file tree
Showing 4 changed files with 330 additions and 112 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

- Added warning for when `uid` is missing in provisioned datasources.
- Map filters in the query builder now correctly show the key instead of the column name
- Updated and fixed missing `system.dashboards` dashboard in list of dashboards

## 4.3.2

Expand Down
4 changes: 3 additions & 1 deletion gen-db-dashboards.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,11 @@ async function main() {
const clickHouseDashboards = await fetchDashboardsFromClickHouse();
const panels = generatePanels(clickHouseDashboards);
const dashboard = generateDashboard(panels);
let fileData = JSON.stringify(dashboard, null, '\t');
fileData += '\n';

try {
await fs.writeFile(OUTPUT_FILE, JSON.stringify(dashboard, null, '\t'), 'utf-8');
await fs.writeFile(OUTPUT_FILE, fileData, 'utf-8');
} catch (err) {
throw new Error('failed to write dashboard to file: ' + err);
}
Expand Down
Loading

0 comments on commit 17761a5

Please sign in to comment.