Skip to content

Commit

Permalink
Add proxysql to kubedb grafana dashboard values and resources (#567)
Browse files Browse the repository at this point in the history
Signed-off-by: M. A. Muhaimin Sakib <[email protected]>
  • Loading branch information
s4k1b authored Dec 8, 2022
1 parent bb36850 commit 833df41
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ concurrency:
jobs:
build:
name: Build
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v1
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
kubernetes:
name: Kubernetes
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: build
strategy:
matrix:
Expand Down
24 changes: 12 additions & 12 deletions charts/kubedb-grafana-dashboards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,23 @@ The command removes all the Kubernetes components associated with the chart and

The following table lists the configurable parameters of the `kubedb-grafana-dashboards` chart and their default values.

| Parameter | Description | Default |
|---------------------------------|--------------------------------------------------------------------|-------------------------------------------------------------------------------|
| nameOverride | Overrides name template | <code>""</code> |
| fullnameOverride | Overrides fullname template | <code>""</code> |
| resources | List of resources for which dashboards will be applied | <code>["elasticsearch","mariadb","mongodb","mysql","postgres","redis"]</code> |
| dashboard.folderID | ID of Grafana folder where these dashboards will be applied | <code>0</code> |
| dashboard.overwrite | If true, dashboard with matching uid will be overwritten | <code>true</code> |
| dashboard.templatize.title | If true, datasource will be prefixed to dashboard name | <code>false</code> |
| dashboard.templatize.datasource | If true, datasource will be hardcoded in the dashboard | <code>true</code> |
| grafana.name | Name of Grafana Appbinding where these dashboards are applied | <code>""</code> |
| grafana.namespace | Namespace of Grafana Appbinding where these dashboards are applied | <code>""</code> |
| Parameter | Description | Default |
|---------------------------------|--------------------------------------------------------------------|------------------------------------------------------------------------------------------|
| nameOverride | Overrides name template | <code>""</code> |
| fullnameOverride | Overrides fullname template | <code>""</code> |
| resources | List of resources for which dashboards will be applied | <code>["elasticsearch","mariadb","mongodb","mysql","postgres","redis","proxysql"]</code> |
| dashboard.folderID | ID of Grafana folder where these dashboards will be applied | <code>0</code> |
| dashboard.overwrite | If true, dashboard with matching uid will be overwritten | <code>true</code> |
| dashboard.templatize.title | If true, datasource will be prefixed to dashboard name | <code>false</code> |
| dashboard.templatize.datasource | If true, datasource will be hardcoded in the dashboard | <code>true</code> |
| grafana.name | Name of Grafana Appbinding where these dashboards are applied | <code>""</code> |
| grafana.namespace | Namespace of Grafana Appbinding where these dashboards are applied | <code>""</code> |


Specify each parameter using the `--set key=value[,key=value]` argument to `helm upgrade -i`. For example:

```bash
$ helm upgrade -i kubedb-grafana-dashboards appscode/kubedb-grafana-dashboards -n kubeops --create-namespace --version=v2022.10.18 --set resources=["elasticsearch","mariadb","mongodb","mysql","postgres","redis"]
$ helm upgrade -i kubedb-grafana-dashboards appscode/kubedb-grafana-dashboards -n kubeops --create-namespace --version=v2022.10.18 --set resources=["elasticsearch","mariadb","mongodb","mysql","postgres","redis","proxysql"]
```

Alternatively, a YAML file that specifies the values for the parameters can be provided while
Expand Down
3 changes: 3 additions & 0 deletions charts/kubedb-grafana-dashboards/data/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@ postgres:
redis:
kind: Redis
resource: redises
proxysql:
kind: ProxySQL
resource: proxysqls
1 change: 1 addition & 0 deletions charts/kubedb-grafana-dashboards/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ resources: # +doc-gen:break
- mysql
- postgres
- redis
- proxysql

dashboard:
# ID of Grafana folder where these dashboards will be applied
Expand Down

0 comments on commit 833df41

Please sign in to comment.