diff --git a/README.md b/README.md index e591cf7..2147774 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ There's a helper `deploy.py` script that can deploy the dashboard to any grafana ```bash export GRAFANA_TOKEN=" -./deploy.py dashboards +./deploy.py ``` This creates a folder called 'JupyterHub Default Dashboards' in your grafana, and adds diff --git a/deploy.py b/deploy.py index 035d426..ed37854 100755 --- a/deploy.py +++ b/deploy.py @@ -151,8 +151,8 @@ def populate_template_variables(api, db): def main(): parser = argparse.ArgumentParser() - parser.add_argument('dashboards_dir', help='Directory of jsonnet dashboards to deploy') parser.add_argument('grafana_url', help='Grafana endpoint to deploy dashboards to') + parser.add_argument('--dashboards-dir', default="dashboards", help='Directory of jsonnet dashboards to deploy') parser.add_argument('--folder-name', default='JupyterHub Default Dashboards', help='Name of Folder to deploy to') parser.add_argument('--folder-uid', default=DEFAULT_FOLDER_UID, help='UID of grafana folder to deploy to')