add prom scrape annotations to matrix pods
This commit is contained in:
parent
f395337e2e
commit
2d123afcd0
5 changed files with 15 additions and 5 deletions
|
@ -410,7 +410,6 @@ data:
|
||||||
m.audio: "{{ .Sender.Displayname }} sent an audio file"
|
m.audio: "{{ .Sender.Displayname }} sent an audio file"
|
||||||
m.video: "{{ .Sender.Displayname }} sent a video"
|
m.video: "{{ .Sender.Displayname }} sent a video"
|
||||||
m.location: "{{ .Sender.Displayname }} sent a location"
|
m.location: "{{ .Sender.Displayname }} sent a location"
|
||||||
|
|
||||||
# Logging config. See https://github.com/tulir/zeroconfig for details.
|
# Logging config. See https://github.com/tulir/zeroconfig for details.
|
||||||
logging:
|
logging:
|
||||||
min_level: info
|
min_level: info
|
||||||
|
|
|
@ -2,7 +2,6 @@ apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: bridge-signal
|
name: bridge-signal
|
||||||
namespace: matrix
|
|
||||||
spec:
|
spec:
|
||||||
rules:
|
rules:
|
||||||
- host: bridge-signal.matrix.k8s
|
- host: bridge-signal.matrix.k8s
|
||||||
|
@ -20,7 +19,6 @@ apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: bridge-signal
|
name: bridge-signal
|
||||||
namespace: matrix
|
|
||||||
spec:
|
spec:
|
||||||
publishNotReadyAddresses: true
|
publishNotReadyAddresses: true
|
||||||
ports:
|
ports:
|
||||||
|
@ -33,7 +31,6 @@ apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: StatefulSet
|
||||||
metadata:
|
metadata:
|
||||||
name: bridge-signal
|
name: bridge-signal
|
||||||
namespace: matrix
|
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
|
@ -44,6 +41,9 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: bridge-signal
|
app: bridge-signal
|
||||||
|
annotations:
|
||||||
|
prometheus.io/scrape: "true"
|
||||||
|
prometheus.io/port: "8000"
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: template-config
|
- name: template-config
|
||||||
|
@ -91,7 +91,6 @@ apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: bridge-signal
|
name: bridge-signal
|
||||||
namespace: matrix
|
|
||||||
data:
|
data:
|
||||||
config.yaml: |
|
config.yaml: |
|
||||||
# Homeserver details.
|
# Homeserver details.
|
||||||
|
|
|
@ -62,6 +62,9 @@ spec:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: bridge-telegram
|
app: bridge-telegram
|
||||||
|
annotations:
|
||||||
|
prometheus.io/scrape: "true"
|
||||||
|
prometheus.io/port: "8000"
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: template-config
|
- name: template-config
|
||||||
|
|
|
@ -8,6 +8,11 @@ listeners:
|
||||||
resources:
|
resources:
|
||||||
- names: [client, federation]
|
- names: [client, federation]
|
||||||
compress: false
|
compress: false
|
||||||
|
- port: 8000
|
||||||
|
type: http
|
||||||
|
bind_addresses: ['0.0.0.0']
|
||||||
|
resources:
|
||||||
|
- names: [metrics]
|
||||||
database:
|
database:
|
||||||
name: sqlite3
|
name: sqlite3
|
||||||
args:
|
args:
|
||||||
|
|
|
@ -14,6 +14,10 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: synapse
|
app: synapse
|
||||||
instance: janky.bot
|
instance: janky.bot
|
||||||
|
annotations:
|
||||||
|
prometheus.io/scrape: "true"
|
||||||
|
prometheus.io/port: "8000"
|
||||||
|
prometheus.io/path: /_synapse/metrics
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 991
|
fsGroup: 991
|
||||||
|
|
Loading…
Reference in a new issue