@cryptotaxi247 / netdata-1 / commits / f9208dac0

go.d: sd ll: add mysql socket jobs (#17305)

Ilya Mashchenko committed Apr 1, 2024 at 16:20 UTC f9208dac0a49e5b437f75ee7cf0fc6a84903956c
2 files changed +15 -15
src/go/collectors/go.d.plugin/config/go.d/mysql.conf
+9 -12
@@ -1,15 +1,12 @@
1 ## All available configuration options, their descriptions and default values:
2 ## https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/mysql#readme
3
4 -jobs:
5 - - name: local
6 - dsn: netdata@unix(/var/run/mysqld/mysqld.sock)/
7 -
8 - - name: local
9 - dsn: netdata@unix(/var/run/mysqld/mysql.sock)/
10 -
11 - - name: local
12 - dsn: netdata@unix(/var/lib/mysql/mysql.sock)/
13 -
14 - - name: local
15 - dsn: netdata@unix(/tmp/mysql.sock)/
4 +#jobs:
5 +# - name: local
6 +# dsn: netdata@unix(/var/run/mysqld/mysql.sock)/
7 +#
8 +# - name: local
9 +# dsn: netdata@unix(/var/lib/mysql/mysql.sock)/
10 +#
11 +# - name: local
12 +# dsn: netdata@unix(/tmp/mysql.sock)/
src/go/collectors/go.d.plugin/config/go.d/sd/net_listeners.conf
+6 -3
@@ -268,9 +268,12 @@ compose:
268 uri: mongodb://{{.Address}}
269 - selector: "mysql"
270 template: |
271 - module: mysql
272 - name: local
273 - dsn: netdata@tcp({{.Address}})/
271 + - module: mysql
272 + name: local
273 + dsn: netdata@unix(/var/run/mysqld/mysqld.sock)/
274 + - module: mysql
275 + name: local
276 + dsn: netdata@tcp({{.Address}})/
277 - selector: "nginx"
278 template: |
279 - module: nginx