https://github.com/stackql/stackql-superset-dashboards
https://github.com/stackql/stackql-superset-dashboards
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stackql/stackql-superset-dashboards
- Owner: stackql
- License: apache-2.0
- Created: 2023-05-15T05:57:50.000Z (over 2 years ago)
- Default Branch: public
- Last Pushed: 2023-10-10T12:12:08.000Z (over 2 years ago)
- Last Synced: 2025-01-21T22:43:07.089Z (12 months ago)
- Language: Jinja
- Size: 155 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# stackql-cloud
`stackql-cloud` is a collection of materials for deployment of `stackql` and `stackql`-supported applications in orchestration systems.
## Manual testing
### Manual testing of stackql
```shell
helm template --release-name v1 --namespace default helm/stackql > helm/stackql/out/stackql-bundle.yaml
## for development on local kube
helm template --release-name v1 --namespace default --set service.type=NodePort helm/stackql > helm/stackql/out/stackql-bundle.yaml
## Then, find local port allocated to stackql node port service
kubectl get svc
## then, you can connect to stackql
psql --host localhost -U stackql -d stackql --port
```
### Manual testing of stackql-dashboard
```shell
helm dependency update helm/stackql-dashboards # this one comes in handy every time anything is re-versioned
helm template --release-name v1 --namespace default helm/stackql-dashboards --set superset.image.tag=latest --set superset.loadExamples=false > helm/stackql-dashboards/out/stackql-dashboards.yaml
## for development on local kube
helm template --release-name v1 --namespace default --set superset.service.type=NodePort --set superset.service.nodePort.http="" helm/stackql-dashboards > helm/stackql-dashboards/out/stackql-dashboards.yaml
## ++secrets, for development on local kube
helm template --release-name v1 --namespace default --set superset.service.type=NodePort --set superset.service.nodePort.http="" --set superset.init.loadExamples=false -f stock/multi-cloud/multi-cloud-values.yaml -f helm/stackql-dashboards/secrets/secret-values.yaml helm/stackql-dashboards > helm/stackql-dashboards/out/stackql-dashboards.yaml
kubectl apply -f helm/stackql-dashboards/out/stackql-dashboards.yaml
```
To bounce on local, **take care not do do against prod**:
```
kubectl delete -f helm/stackql-dashboards/out/stackql-dashboards.yaml
kubectl delete pvc --all
```
### Automating dashboard creation
Locally:
```bash
python bootstrap/bootstrap.py --port=
```
With helm:
```bash
helm template --release-name v1 --namespace default --set dashboardAPI.username="" --set dashboardAPI.password="" helm/superset-primer > helm/superset-primer/out/primer.yaml
```
The whole journey, presuming dashboards template already expanded:
```bash
kubectl apply -f helm/stackql-dashboards/out/stackql-dashboards.yaml
helm template --release-name v1 --namespace default --set dashboardAPI.username="admin" --set dashboardAPI.password="mypassword" helm/superset-primer > helm/superset-primer/out/primer.yaml
kubectl apply -f helm/superset-primer/out/primer.yaml
kubectl delete -f helm/superset-primer/out/primer.yaml
kubectl delete -f helm/superset-primer/out/primer.yaml
kubectl delete pvc --all
```
## Sharing superset dashboards
Dashboards must first be published, then follow [these instructions](https://superset.apache.org/docs/security/).
## Acknowledgements and license
Substantial portions of this work were adapted from Apache-licensed materials, including:
- [bitnami/charts](https://github.com/bitnami/charts).
- [apache/superset](https://github.com/apache/superset).
Please see [the license file](/LICENSE.md).