Skip to content

Commit 344e6e4

Browse files
committed
add grafana size configure
1 parent 41f7a90 commit 344e6e4

6 files changed

Lines changed: 37 additions & 14 deletions

File tree

‎packages/extra/monitoring/Chart.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: monitoring
33
description: Monitoring and observability stack
44
icon: /logos/monitoring.svg
55
type: application
6-
version: 1.5.2
6+
version: 1.5.3

‎packages/extra/monitoring/README.md‎

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
### Common parameters
66

7-
| Name | Description | Value |
8-
| ------------------------------- | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------ |
9-
| `host` | The hostname used to access the grafana externally (defaults to 'grafana' subdomain for the tenant host). | `""` |
10-
| `metricsStorages` | Configuration of metrics storage instances | `[]` |
11-
| `logsStorages` | Configuration of logs storage instances | `[]` |
12-
| `alerta.storage` | Persistent Volume size for alerta database | `10Gi` |
13-
| `alerta.storageClassName` | StorageClass used to store the data | `""` |
14-
| `alerta.alerts.telegram.token` | telegram token for your bot | `7262461387:AAGtwq16iwuVtWtzoN6TUEMpF00fpC9Xz34` |
15-
| `alerta.alerts.telegram.chatID` | specify multiple ID's separated by comma. Get yours in https://t.me/chatid_echo_bot | `-4520856007` |
7+
| Name | Description | Value |
8+
| ------------------------------- | --------------------------------------------------------------------------------------------------------- | ------ |
9+
| `host` | The hostname used to access the grafana externally (defaults to 'grafana' subdomain for the tenant host). | `""` |
10+
| `metricsStorages` | Configuration of metrics storage instances | `[]` |
11+
| `logsStorages` | Configuration of logs storage instances | `[]` |
12+
| `alerta.storage` | Persistent Volume size for alerta database | `10Gi` |
13+
| `alerta.storageClassName` | StorageClass used to store the data | `""` |
14+
| `alerta.alerts.telegram.token` | telegram token for your bot | `""` |
15+
| `alerta.alerts.telegram.chatID` | specify multiple ID's separated by comma. Get yours in https://t.me/chatid_echo_bot | `""` |
16+
| `grafana.db.size` | Persistent Volume size for grafana database | `10Gi` |

‎packages/extra/monitoring/templates/grafana/db.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
spec:
66
instances: 2
77
storage:
8-
size: 10Gi
8+
size: {{ .Values.grafana.db.size }}
99

1010
inheritedMetadata:
1111
labels:

‎packages/extra/monitoring/values.schema.json‎

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,33 @@
4545
"token": {
4646
"type": "string",
4747
"description": "telegram token for your bot",
48-
"default": "7262461387:AAGtwq16iwuVtWtzoN6TUEMpF00fpC9Xz34"
48+
"default": ""
4949
},
5050
"chatID": {
5151
"type": "string",
5252
"description": "specify multiple ID's separated by comma. Get yours in https://t.me/chatid_echo_bot",
53-
"default": "-4520856007"
53+
"default": ""
5454
}
5555
}
5656
}
5757
}
5858
}
5959
}
60+
},
61+
"grafana": {
62+
"type": "object",
63+
"properties": {
64+
"db": {
65+
"type": "object",
66+
"properties": {
67+
"size": {
68+
"type": "string",
69+
"description": "Persistent Volume size for grafana database",
70+
"default": "10Gi"
71+
}
72+
}
73+
}
74+
}
6075
}
6176
}
6277
}

‎packages/extra/monitoring/values.yaml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,9 @@ alerta:
4444
telegram:
4545
token: ""
4646
chatID: ""
47+
48+
## Configuration for Grafana
49+
## @param grafana.db.size Persistent Volume size for grafana database
50+
grafana:
51+
db:
52+
size: 10Gi

‎packages/extra/versions_map‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ monitoring 1.3.0 6c5cf5b
1616
monitoring 1.4.0 adaf603b
1717
monitoring 1.5.0 4b90bf5a
1818
monitoring 1.5.1 57e90b70
19-
monitoring 1.5.2 HEAD
19+
monitoring 1.5.2 898374b5
20+
monitoring 1.5.3 HEAD
2021
seaweedfs 0.1.0 5ca8823
2122
seaweedfs 0.2.0 9e33dc0
2223
seaweedfs 0.2.1 HEAD

0 commit comments

Comments
 (0)