Skip to content

Commit e50ae85

Browse files
deployment: Remove grafana json indent (#13852)
1 parent e4ba62d commit e50ae85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deployments/monitoring/src/builders/dashboard_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def dashboard_builder(args: argparse.Namespace) -> None:
247247
output_dir = f"{args.out_dir}/dashboards"
248248
os.makedirs(output_dir, exist_ok=True)
249249
dashboard_full_path = dashboard_file_name(output_dir, dashboard_name)
250-
json_data = json.dumps(dashboard, indent=1, ensure_ascii=False)
250+
json_data = json.dumps(dashboard, separators=(",", ":"), ensure_ascii=False)
251251
assert len(json_data) < MAX_ALLOWED_JSON_SIZE, "Grafana dashboard JSON is too large"
252252
with open(dashboard_full_path, "w", encoding="utf-8") as f:
253253
f.write(json_data)

0 commit comments

Comments
 (0)