From b12baa165aefc1f22bacebbf0a7dbb220573eebe Mon Sep 17 00:00:00 2001 From: Kanthi Subramanian Date: Mon, 12 Aug 2024 20:26:08 -0400 Subject: [PATCH 1/2] Enable metrics by default for MySQL and postgres --- sink-connector-lightweight/docker/config.yml | 5 ++++- sink-connector-lightweight/docker/config_postgres.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/sink-connector-lightweight/docker/config.yml b/sink-connector-lightweight/docker/config.yml index 527912994..5cd981f2e 100644 --- a/sink-connector-lightweight/docker/config.yml +++ b/sink-connector-lightweight/docker/config.yml @@ -24,7 +24,7 @@ database.server.name: "ER54" # database.include.list An optional list of regular expressions that match database names to be monitored; # any database name not included in the whitelist will be excluded from monitoring. By default all databases will be monitored. -database.include.list: test +database.include.list: sbtest # table.include.list An optional list of regular expressions that match fully-qualified table identifiers for tables to be monitored; table.include.list: "" @@ -166,6 +166,9 @@ restart.event.loop.timeout.period.secs: "3000" # Sink Connector maximum queue size #sink.connector.max.queue.size: "100000" +#Metrics (Prometheus target), required for Grafana Dashboard +metrics.enable: "true" + # Skip schema history capturing, use the following configuration # to reduce slow startup when replicating dbs with large number of tables #schema.history.internal.store.only.captured.tables.ddl: "true" diff --git a/sink-connector-lightweight/docker/config_postgres.yml b/sink-connector-lightweight/docker/config_postgres.yml index 981763787..9a4f7619d 100644 --- a/sink-connector-lightweight/docker/config_postgres.yml +++ b/sink-connector-lightweight/docker/config_postgres.yml @@ -115,6 +115,9 @@ database.dbname: "public" # ignore_delete: If set to true, the connector will ignore delete events. The default is false. #ignore_delete: "true" +#Metrics (Prometheus target), required for Grafana Dashboard +metrics.enable: "true" + #disable.ddl: If set to true, the connector will ignore DDL events. The default is false. #disable.ddl: "false" From 586c0ae1ac1516c130c84fc2ac696f88a6c335c5 Mon Sep 17 00:00:00 2001 From: Kanthi Date: Wed, 14 Aug 2024 12:47:12 -0400 Subject: [PATCH 2/2] Update config.yml --- sink-connector-lightweight/docker/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sink-connector-lightweight/docker/config.yml b/sink-connector-lightweight/docker/config.yml index 5cd981f2e..a56296b7e 100644 --- a/sink-connector-lightweight/docker/config.yml +++ b/sink-connector-lightweight/docker/config.yml @@ -24,7 +24,7 @@ database.server.name: "ER54" # database.include.list An optional list of regular expressions that match database names to be monitored; # any database name not included in the whitelist will be excluded from monitoring. By default all databases will be monitored. -database.include.list: sbtest +database.include.list: test # table.include.list An optional list of regular expressions that match fully-qualified table identifiers for tables to be monitored; table.include.list: ""