Skip to content

Commit

Permalink
Merge pull request #28 from yuvipanda/no-db
Browse files Browse the repository at this point in the history
Make 'dashboard-dir' an optional argument
  • Loading branch information
yuvipanda authored Jul 20, 2021
2 parents 3958de9 + 202fd90 commit 775a09f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ There's a helper `deploy.py` script that can deploy the dashboard to any grafana

```bash
export GRAFANA_TOKEN="<API-TOKEN-FOR-YOUR-GRAFANA>
./deploy.py dashboards <your-grafana-url>
./deploy.py <your-grafana-url>
```
This creates a folder called 'JupyterHub Default Dashboards' in your grafana, and adds
Expand Down
2 changes: 1 addition & 1 deletion deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down

0 comments on commit 775a09f

Please sign in to comment.