From 666b6f20eea1c249becefcfb85f8f8acee24ea09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20Dav=C3=ADdek?= Date: Wed, 18 Dec 2024 16:09:19 +0100 Subject: [PATCH 1/2] README sql input config dsn fix --- plugins/inputs/sql/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/sql/README.md b/plugins/inputs/sql/README.md index 4f6a1a3010456..feb07083e1dce 100644 --- a/plugins/inputs/sql/README.md +++ b/plugins/inputs/sql/README.md @@ -35,7 +35,7 @@ to use them. ## Data source name for connecting ## The syntax and supported options depends on selected driver. - dsn = "username:password@mysqlserver:3307/dbname?param=value" + dsn = "username:password@tcp(mysqlserver:3307)/dbname?param=value" ## Timeout for any operation ## Note that the timeout for queries is per query not per gather. From d35677d6e03bf6a4b65bda1d93009c03d8045719 Mon Sep 17 00:00:00 2001 From: Sven Rebhan Date: Wed, 15 Jan 2025 20:53:38 +0100 Subject: [PATCH 2/2] Transfer change to sample.conf --- plugins/inputs/sql/sample.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/sql/sample.conf b/plugins/inputs/sql/sample.conf index 014f62c624ef4..749bf3e7c202f 100644 --- a/plugins/inputs/sql/sample.conf +++ b/plugins/inputs/sql/sample.conf @@ -7,7 +7,7 @@ ## Data source name for connecting ## The syntax and supported options depends on selected driver. - dsn = "username:password@mysqlserver:3307/dbname?param=value" + dsn = "username:password@tcp(mysqlserver:3307)/dbname?param=value" ## Timeout for any operation ## Note that the timeout for queries is per query not per gather.