From 2d6756aca92e2f1ef655a5fbca5b2134de486f42 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Fri, 31 Dec 2021 18:53:56 +0000 Subject: [PATCH] Added synapse monitoring --- manifests/_apps/matrix_chart.yaml | 4 ++++ manifests/monitoring/prometheus-server.yaml | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/manifests/_apps/matrix_chart.yaml b/manifests/_apps/matrix_chart.yaml index d00aad3..d931e36 100644 --- a/manifests/_apps/matrix_chart.yaml +++ b/manifests/_apps/matrix_chart.yaml @@ -108,6 +108,10 @@ spec: port: 80 replicaCount: 1 resources: {} + metrics: + enabled: true + port: 9000 + annotations: true riot: enabled: true diff --git a/manifests/monitoring/prometheus-server.yaml b/manifests/monitoring/prometheus-server.yaml index 6b72865..9b6f29d 100644 --- a/manifests/monitoring/prometheus-server.yaml +++ b/manifests/monitoring/prometheus-server.yaml @@ -306,6 +306,14 @@ data: - source_labels: [__meta_kubernetes_endpoints_name] regex: 'node-exporter' action: keep + + - job_name: "synapse" + scrape_interval: 15s + metrics_path: "/_synapse/metrics" + static_configs: + - targets: ["chat-matrix-synapse.chat.svc:9092"] + + recording_rules.yml: | {} rules: |