Skip to content

Instantly share code, notes, and snippets.

View Aref-Riant's full-sized avatar

Aref Khandan Aref-Riant

View GitHub Profile
@Aref-Riant
Aref-Riant / grafana-dash-add-label-2-expressions.py
Created April 14, 2025 12:33
python script to add a label match to grafana dashboard json files
import json
import re
import glob
import os
def add_environment_label(dashboard_file, new_label: str):
# Read the dashboard JSON
with open(dashboard_file, 'r', encoding='utf-8') as f:
dashboard = json.load(f)
@Aref-Riant
Aref-Riant / upgrade-nexus-3.72.md
Last active April 29, 2025 12:46
Upgrading Sonatype Nexus to 3.72 and higher

Upgrading Sonatype Nexus to 3.72 and higher

Database migration

Nexus 3.71 Only supports H2 Databases, while older versions used OrientDB, Nexus 3.70 supports both H2, and Oriendb so you need to first upgrade to 3.70, because of schema problems, if you are versions older than 3.69, you need to first upgrade into 3.69.

Mermaid Flowchart: