-
Notifications
You must be signed in to change notification settings - Fork 3
/
04-debezium-postgresql-connect.yml
71 lines (71 loc) · 2.15 KB
/
04-debezium-postgresql-connect.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaConnect
metadata:
namespace: appdev-kafka
name: my-connect-cluster
annotations:
strimzi.io/use-connector-resources: "true"
spec:
config:
group.id: connect-cluster
offset.storage.topic: connect-cluster-offsets
config.storage.topic: connect-cluster-configs
status.storage.topic: connect-cluster-status
config.storage.replication.factor: -1
offset.storage.replication.factor: -1
status.storage.replication.factor: -1
jmxhost: 0.0.0.0
jmxport: 9999
bootstrapServers: 'event-broker-dr-kafka-bootstrap.appdev-kafka.svc:9092'
build:
output:
image: >-
image-registry.openshift-image-registry.svc:5000/appdev-kafka/debezium-connect-postgres:1.9
type: docker
plugins:
- name: postgres
artifacts:
- url: >-
https://repo1.maven.org/maven2/io/debezium/debezium-connector-postgres/1.9.0.Final/debezium-connector-postgres-1.9.0.Final-plugin.tar.gz
type: tgz
metricsConfig:
type: jmxPrometheusExporter
valueFrom:
configMapKeyRef:
name: debezium-metrics
key: debezium-metrics-config.yml
version: 3.1.0
replicas: 1
---
kind: ConfigMap
apiVersion: v1
metadata:
name: debezium-metrics
labels:
app: strimzi
data:
debezium-metrics-config.yml: |
startDelaySeconds: 0
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false
rules:
- pattern : "kafka.connect<type=connect-worker-metrics>([^:]+):"
name: "kafka_connect_worker_metrics_$1"
- pattern : "kafka.connect<type=connect-metrics, client-id=([^:]+)><>([^:]+)"
name: "kafka_connect_metrics_$2"
labels:
client: "$1"
- pattern: "debezium.([^:]+)<type=connector-metrics, context=([^,]+), server=([^,]+), key=([^>]+)><>RowsScanned"
name: "debezium_metrics_RowsScanned"
labels:
plugin: "$1"
name: "$3"
context: "$2"
table: "$4"
- pattern: "debezium.([^:]+)<type=connector-metrics, context=([^,]+), server=([^>]+)>([^:]+)"
name: "debezium_metrics_$4"
labels:
plugin: "$1"
name: "$3"
context: "$2"