forked from newrelic/nri-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysql-config.yml.k8s_sample
51 lines (46 loc) · 2.08 KB
/
mysql-config.yml.k8s_sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
mysql-config.yml: |
---
# Run auto discovery to find pods with label "app=mysql"
# https://docs.newrelic.com/docs/integrations/host-integrations/installation/container-auto-discovery
discovery:
command:
# Use the following optional arguments:
# --namespaces: Comma separated list of namespaces to discover pods on
# --tls: Use secure (TLS) connection
# --port: Port used to connect to the kubelet. Default is 10255
exec: /var/db/newrelic-infra/nri-discovery-kubernetes
match:
label.app: mysql
integrations:
- name: nri-mysql
env:
# Using the discovered IP as the host address
HOSTNAME: ${discovery.ip}
PORT: 3306
# ENABLE_TLS: false
# INSECURE_SKIP_VERIFY: false
# Specify extra connection parameters as attr1=val1&attr2=val2.
# EXTRA_CONNECTION_URL_ARGS: ""
# If not empty `socket` parameter will discard `port` parameter
SOCKET: <PATH_TO_LOCAL_SOCKET_FILE_NAME>
USERNAME: <USERNAME>
PASSWORD: <PASSWORD>
# Allow old password https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_old_passwords
# OLD_PASSWORDS: false
# Name of the database to be monitored
# DATABASE: ""
# Enable extended metrics
# EXTENDED_METRICS: false
# Enable additional metrics
# EXTENDED_INNODB_METRICS: false
# EXTENDED_MY_ISAM_METRICS: false
# New users should leave this property as `true`, to identify the
# monitored entities as `remote`. Setting this property to `false` (the
# default value) is deprecated and will be removed soon, disallowing
# entities that are identified as `local`.
# Please check the documentation to get more information about local
# versus remote entities:
# https://github.com/newrelic/infra-integrations-sdk/blob/master/docs/entity-definition.md
REMOTE_MONITORING: true
labels:
env: production