fix(matrix-sliding-sync): add grafana dashboard

This commit is contained in:
WrenIX 2024-08-25 06:11:30 +02:00
parent e1755dc3e5
commit 77036c3301
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
5 changed files with 2162 additions and 2 deletions

View file

@ -4,7 +4,7 @@ name: matrix-sliding-sync
description: Proxy implementation of MSC3575's sync protocol.
icon: https://matrix.org/images/matrix-logo.svg
type: application
version: 0.2.0
version: 0.2.1
# renovate: image=ghcr.io/matrix-org/sliding-sync
appVersion: "0.99.19"
maintainers:

View file

@ -2,7 +2,7 @@
= matrix-sliding-sync
image::https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square[Version: 0.2.0]
image::https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square[Version: 0.2.1]
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
image::https://img.shields.io/badge/AppVersion-0.99.19-informational?style=flat-square[AppVersion: 0.99.19]
== Maintainers
@ -157,6 +157,21 @@ helm uninstall matrix-sliding-sync-release
| `nil`
| if set it will overwrite all registry entries
| grafana.dashboards.annotations
| object
| `{}`
|
| grafana.dashboards.enabled
| bool
| `false`
|
| grafana.dashboards.labels.grafana_dashboard
| string
| `"1"`
|
| image.pullPolicy
| string
| `"IfNotPresent"`

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,18 @@
{{- if .Values.grafana.dashboards.enabled }}
---
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "matrix-sliding-sync.fullname" . }}-grafana-db
labels:
{{- include "matrix-sliding-sync.labels" $ | nindent 4 }}
{{- with .Values.grafana.dashboards.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.grafana.dashboards.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
data:
{{- ($.Files.Glob "grafana_dashboards/*.json" ).AsConfig | nindent 2 }}
{{- end }}

View file

@ -53,6 +53,13 @@ prometheus:
enabled: false
labels: {}
grafana:
dashboards:
enabled: false
labels:
grafana_dashboard: "1"
annotations: {}
podAnnotations: {}
podLabels: {}