summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2024-04-01 16:20:54 +0300
committerAustin S. Hemmelgarn <ahferroin7@gmail.com>2024-04-01 11:25:53 -0400
commita23137790963179e1aa9eac19d84d606103a6e39 (patch)
tree48e0be5fef9272c4653b6762d3fc2dd8d9ad3f07
parent0035ee86a7b67f47c52e3e8b5b96d4db0e0972fa (diff)
go.d: sd ll: add mysql socket jobs (#17305)
(cherry picked from commit f9208dac0a49e5b437f75ee7cf0fc6a84903956c)
-rw-r--r--src/go/collectors/go.d.plugin/config/go.d/mysql.conf21
-rw-r--r--src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf9
2 files changed, 15 insertions, 15 deletions
diff --git a/src/go/collectors/go.d.plugin/config/go.d/mysql.conf b/src/go/collectors/go.d.plugin/config/go.d/mysql.conf
index 586c7cd26a..036d797e4a 100644
--- a/src/go/collectors/go.d.plugin/config/go.d/mysql.conf
+++ b/src/go/collectors/go.d.plugin/config/go.d/mysql.conf
@@ -1,15 +1,12 @@
## All available configuration options, their descriptions and default values:
## https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/mysql#readme
-jobs:
- - name: local
- dsn: netdata@unix(/var/run/mysqld/mysqld.sock)/
-
- - name: local
- dsn: netdata@unix(/var/run/mysqld/mysql.sock)/
-
- - name: local
- dsn: netdata@unix(/var/lib/mysql/mysql.sock)/
-
- - name: local
- dsn: netdata@unix(/tmp/mysql.sock)/
+#jobs:
+# - name: local
+# dsn: netdata@unix(/var/run/mysqld/mysql.sock)/
+#
+# - name: local
+# dsn: netdata@unix(/var/lib/mysql/mysql.sock)/
+#
+# - name: local
+# dsn: netdata@unix(/tmp/mysql.sock)/
diff --git a/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf b/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf
index 4148fcd29d..68d2d76d7a 100644
--- a/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf
+++ b/src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf
@@ -268,9 +268,12 @@ compose:
uri: mongodb://{{.Address}}
- selector: "mysql"
template: |
- module: mysql
- name: local
- dsn: netdata@tcp({{.Address}})/
+ - module: mysql
+ name: local
+ dsn: netdata@unix(/var/run/mysqld/mysqld.sock)/
+ - module: mysql
+ name: local
+ dsn: netdata@tcp({{.Address}})/
- selector: "nginx"
template: |
- module: nginx