forked from 2i2c-org/infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add readme to grafana-dashboards dir
- Loading branch information
1 parent
3623159
commit f87b3d4
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# About these grafana dashboard files | ||
|
||
These are dashboard definitions as jsonnet templates. They are deployed using a | ||
Python script from https://github.com/jupyterhub/grafana-dashboard, which can be | ||
done via the deployer command: | ||
|
||
```bash | ||
deployer grafana deploy-dashboards $CLUSTER_NAME | ||
``` | ||
|
||
Running this command has a pre-requisite that you have jsonnet installed, | ||
specifically the jsonnet binary built using golang called go-jsonnet. | ||
|
||
To just render the jsonnet templates, which is relevant during development, you | ||
can: | ||
|
||
1. Clone https://github.com/jupyterhub/grafana-dashboard somewhere | ||
2. Go to that folder, and then run something like: | ||
```bash | ||
jsonnet -J vendor /some/path/2i2c-org/infrastructure/grafana-dashboards/cloud-cost-aws.jsonnet | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters