Skip to content
Snippets Groups Projects
Verified Commit 3b1a3d51 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(matrix): Experiment with database metrics

This patch introduces a postgresql exporter and adds a PodMonitor to
scrape the sources as expected.
parent 33f37445
No related branches found
No related tags found
No related merge requests found
......@@ -28,3 +28,40 @@ spec:
limits:
cpu: "1"
memory: 3072Mi
sidecars:
- name: "exporter"
image: "wrouesnel/postgres_exporter"
ports:
- name: exporter
containerPort: 9187
protocol: TCP
resources:
limits:
cpu: 500m
memory: 256M
requests:
cpu: 100m
memory: 200M
---
apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: matrix-postgres
namespace: matrix
labels:
app: matrix-postgres
spec:
endpoints:
- port: exporter
interval: 15s
scrapeTimeout: 10s
namespaceSelector:
matchNames:
- matrix
selector:
matchLabels:
cluster-name: matrix-postgres
podTargetLabels:
- spilo-role
- cluster-name
- team
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment