Skip to content
Snippets Groups Projects
Verified Commit d956ebd2 authored by David Mehren's avatar David Mehren
Browse files

Switch mysql,elasticsearch collector to go

parent 47f8be88
Branches
Tags v5.1.0
No related merge requests found
Pipeline #90059 passed
---
netdata_is_container: false
netdata_enable_python: false
netdata_enable_go: false
netdata_enable_haproxy: false
netdata_enable_elasticsearch: false
netdata_enable_postgres: false
......
......@@ -26,10 +26,19 @@
mode: 0644
notify: restart netdata
- name: Copy netdata go.d config
ansible.builtin.template:
src: go.d.conf.j2
dest: /etc/netdata/go.d.conf
owner: root
group: root
mode: 0644
notify: restart netdata
- name: Copy netdata mysql.plugin config
ansible.builtin.template:
src: mysql.conf.j2
dest: /etc/netdata/python.d/mysql.conf
dest: /etc/netdata/go.d/mysql.conf
owner: root
group: root
mode: 0644
......
# netdata go.d.plugin configuration
#
# This file is in YAML format.
# Enable/disable the whole go.d.plugin.
enabled: yes
# Enable/disable default value for all modules.
default_run: {% if netdata_is_container %} no {% else %} yes {% endif %}
# Maximum number of used CPUs. Zero means no limit.
max_procs: 0
# Enable/disable specific g.d.plugin module
# If you want to change any value, you need to uncomment out it first.
# IMPORTANT: Do not remove all spaces, just remove # symbol. There should be a space before module name.
modules:
elasticsearch: {% if netdata_enable_elasticsearch %} yes {% else %} no {% endif %}
mysql: {% if netdata_enable_mysql %} yes {% else %} no {% endif %}
local:
user: '{{ netdata_mysql_user }}'
pass: '{{ netdata_mysql_pass }}'
jobs:
- name: local
dsn: {{ netdata_mysql_user }}:{{ netdata_mysql_pass }}@unix(/var/run/mysqld/mysqld.sock)/
......@@ -31,6 +31,8 @@
charts.d = no
python.d = {% if netdata_enable_python %} yes {% else %} no {% endif %}
go.d = {% if netdata_enable_go %} yes {% else %} no {% endif %}
[plugin:proc]
netdata server resources = no
......
......@@ -15,8 +15,4 @@ default_run: {% if netdata_is_container %} no {% else %} yes {% endif %}
haproxy: {% if netdata_enable_haproxy %} yes {% else %} no {% endif %}
elasticsearch: {% if netdata_enable_elasticsearch %} yes {% else %} no {% endif %}
postgres: {% if netdata_enable_postgres %} yes {% else %} no {% endif %}
mysql: {% if netdata_enable_mysql %} yes {% else %} no {% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment