cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 50c8aeaeac41f376246c4e0765cd2cce95519d27
parent c46240a3e4c8ea57d7c2adae950c3737653d9dec
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 18 Jun 2023 14:52:59 +0200

Monitor synapse logs

Diffstat:
Mapps/production/kube-prometheus-stack-values.yaml | 90+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+), 0 deletions(-)

diff --git a/apps/production/kube-prometheus-stack-values.yaml b/apps/production/kube-prometheus-stack-values.yaml @@ -290,6 +290,96 @@ spec: annotations: summary: Matrix Database rolled over but synapse crashed isPaused: false + - uid: d16dc343-31d9-466a-bdc1-c2466b0bc18f + title: 'Unusual synapse logging' + condition: Thresh + data: + - refId: Count + queryType: range + relativeTimeRange: + from: 600 + to: 0 + datasourceUid: loki + model: + datasource: + type: loki + uid: loki + editorMode: builder + expr: sum by(level) (count_over_time({namespace="matrix", app="matrix-synapse"} | pattern `<_> - <component> - <_> - <level> - <trace>- <detail>` | level != `INFO` [$__interval])) + hide: false + intervalMs: 1000 + maxDataPoints: 43200 + queryType: range + range: true + refId: Count + - refId: Thresh + relativeTimeRange: + from: 600 + to: 0 + datasourceUid: __expr__ + model: + conditions: + - evaluator: + params: + - 20 + type: gt + operator: + type: and + query: + params: + - C + reducer: + params: [] + type: last + type: query + datasource: + type: __expr__ + uid: __expr__ + expression: A + hide: false + intervalMs: 1000 + maxDataPoints: 43200 + refId: Thresh + type: threshold + - refId: A + relativeTimeRange: + from: 600 + to: 0 + datasourceUid: __expr__ + model: + conditions: + - evaluator: + params: + - 0 + - 0 + type: gt + operator: + type: and + query: + params: [] + reducer: + params: [] + type: avg + type: query + datasource: + name: Expression + type: __expr__ + uid: __expr__ + expression: Count + intervalMs: 1000 + maxDataPoints: 43200 + reducer: last + refId: A + settings: + mode: replaceNN + replaceWithValue: 0 + type: reduce + noDataState: OK + execErrState: Error + for: 5m + annotations: + summary: Unusual logging for synapse. + isPaused: false contactpoints.yaml: apiVersion: 1 contactPoints: