add prom scrape annotations to matrix pods

This commit is contained in:
Finn 2024-07-10 15:34:51 -07:00
parent f395337e2e
commit 2d123afcd0
5 changed files with 15 additions and 5 deletions

View file

@ -410,7 +410,6 @@ data:
m.audio: "{{ .Sender.Displayname }} sent an audio file"
m.video: "{{ .Sender.Displayname }} sent a video"
m.location: "{{ .Sender.Displayname }} sent a location"
# Logging config. See https://github.com/tulir/zeroconfig for details.
logging:
min_level: info

View file

@ -2,7 +2,6 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: bridge-signal
namespace: matrix
spec:
rules:
- host: bridge-signal.matrix.k8s
@ -20,7 +19,6 @@ apiVersion: v1
kind: Service
metadata:
name: bridge-signal
namespace: matrix
spec:
publishNotReadyAddresses: true
ports:
@ -33,7 +31,6 @@ apiVersion: apps/v1
kind: StatefulSet
metadata:
name: bridge-signal
namespace: matrix
spec:
selector:
matchLabels:
@ -44,6 +41,9 @@ spec:
metadata:
labels:
app: bridge-signal
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
spec:
initContainers:
- name: template-config
@ -91,7 +91,6 @@ apiVersion: v1
kind: ConfigMap
metadata:
name: bridge-signal
namespace: matrix
data:
config.yaml: |
# Homeserver details.

View file

@ -62,6 +62,9 @@ spec:
metadata:
labels:
app: bridge-telegram
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
spec:
initContainers:
- name: template-config

View file

@ -8,6 +8,11 @@ listeners:
resources:
- names: [client, federation]
compress: false
- port: 8000
type: http
bind_addresses: ['0.0.0.0']
resources:
- names: [metrics]
database:
name: sqlite3
args:

View file

@ -14,6 +14,10 @@ spec:
labels:
app: synapse
instance: janky.bot
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8000"
prometheus.io/path: /_synapse/metrics
spec:
securityContext:
fsGroup: 991