fix(mautrix-signal): drop of metrics (see https://github.com/mautrix/signal/issues/532

This commit is contained in:
WrenIX 2024-08-17 13:18:41 +02:00
parent 47589dca29
commit 1832176782
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
6 changed files with 2 additions and 63 deletions

View file

@ -2,7 +2,7 @@ apiVersion: v2
name: mautrix-signal
description: A Matrix-Signal puppeting bridge.
type: application
version: 0.0.9
version: 0.0.10
# renovate: image=dock.mau.dev/mautrix/signal
appVersion: "0.7.0"
maintainers:

View file

@ -2,7 +2,7 @@
= mautrix-signal
image::https://img.shields.io/badge/Version-0.0.9-informational?style=flat-square[Version: 0.0.9]
image::https://img.shields.io/badge/Version-0.0.10-informational?style=flat-square[Version: 0.0.10]
image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application]
image::https://img.shields.io/badge/AppVersion-0.7.0-informational?style=flat-square[AppVersion: 0.7.0]
== Maintainers
@ -605,16 +605,6 @@ helm uninstall mautrix-signal-release
| `false`
| Should the bridge update the m.direct account data event when double puppeting is enabled. Note that updating the m.direct event is not atomic (except with mautrix-asmux) and is therefore prone to race conditions.
| config.metrics.enabled
| bool
| `true`
| Enable prometheus metrics?
| config.metrics.listen
| string
| `"0.0.0.0:8000"`
| IP and port where the metrics listener should be. The path is always /metrics
| config.provisioning.debug_endpoints
| bool
| `false`
@ -835,16 +825,6 @@ helm uninstall mautrix-signal-release
| `{}`
|
| prometheus.servicemonitor.enabled
| bool
| `false`
|
| prometheus.servicemonitor.labels
| object
| `{}`
|
| readinessProbe.httpGet.path
| string
| `"/_matrix/mau/ready"`

View file

@ -43,11 +43,6 @@ spec:
- name: http
containerPort: {{ .Values.config.appservice.port }}
protocol: TCP
{{- if .Values.config.metrics.enabled }}
- name: metrics
containerPort: {{ regexSplit ":" .Values.config.metrics.listen -1 | last }}
protocol: TCP
{{- end }}
livenessProbe:
{{- toYaml .Values.livenessProbe | nindent 12 }}
readinessProbe:

View file

@ -15,10 +15,4 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if .Values.config.metrics.enabled }}
- port: {{ regexSplit ":" .Values.config.metrics.listen -1 | last }}
targetPort: metrics
protocol: TCP
name: metrics
{{- end }}
{{- end }}

View file

@ -1,18 +0,0 @@
{{- if and .Values.prometheus.servicemonitor.enabled ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: {{ include "mautrix-signal.fullname" . }}
labels:
{{- include "mautrix-signal.labels" . | nindent 4 }}
{{- with .Values.prometheus.servicemonitor.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector:
matchLabels:
{{- include "mautrix-signal.selectorLabels" . | nindent 6 }}
endpoints:
- port: metrics
path: /metrics
{{- end }}

View file

@ -407,13 +407,6 @@ config:
# -- Optional extra text sent when joining a management room.
additional_help: ""
# Prometheus config.
metrics:
# -- Enable prometheus metrics?
enabled: true
# -- IP and port where the metrics listener should be. The path is always /metrics
listen: 0.0.0.0:8000
signal:
# -- Displayname template for Signal users. This is also used as the room name in DMs if private_chat_portal_meta is enabled.
# {{.ProfileName}} - The Signal profile name set by the user.
@ -575,8 +568,3 @@ persistence:
accessMode: ReadWriteOnce
# -- size
size: 10Gi
prometheus:
servicemonitor:
enabled: false
labels: {}