This chapter describes adding MySQL database, cluster, ClusterSet and Router targets from the console and with EM CLI, autodiscovery, modifying and removing targets, and associating compliance standards.
Prerequisites for this page
- The plug-in deployed to the agent that will monitor the target (3.3). Until it is, the MySQL target types are not offered for that agent.
- The monitoring account and its password (2.4), and a network path from the agent host to the MySQL endpoint (2.3). For a MySQL Router target, a REST user and a path to the Router’s REST port instead (2.10).
- A license key for each MySQL Database target, kept in its credential set (4.1).
Where to find it: Setup ▸ Add Target ▸ Add Targets Manually to add a target; the target’s own menu ▸ Target Setup ▸ Monitoring Configuration to change one; Enterprise ▸ Compliance ▸ Library to associate the standards.
Topics: 4.1 Target properties · 4.2 Add a target manually · 4.3 Add a target with EM CLI · 4.4 Autodiscovery · 4.5 Modify or remove a target · 4.6 Associate compliance standards · 4.7 Bulk onboarding and migration
4.1 Target properties
Section titled “4.1 Target properties”Every MySQL target is defined by the same small set of monitoring properties, whichever way you add it. The names in bold are the labels on the console page; the names in parentheses are the property keys EM CLI takes (4.3).
User and Password are credential properties. In the console they appear in the credentials area of the Add Target page, labeled MySQL User and MySQL Password; with EM CLI they go in -credentials rather than in -properties.
MySQL Database (ip_mysql_database)
| Property | Key | Value |
|---|---|---|
| User | ip_mysql_database_username | the monitoring account from 2.4, user name only, without the host part |
| Password | ip_mysql_database_password | that account’s password |
| Host (default - localhost) | ip_mysql_database_host | host name or IP address of the MySQL server as the agent host reaches it. Empty only for a socket connection (2.6). One host: a MySQL Database target is one server, and the Run EXPLAIN job passes these values as comma-separated arguments; endpoint lists are for Cluster and ClusterSet targets |
| Port (default - 3306) | ip_mysql_database_port | the server’s listening port |
| Unix Socket Path (socket connections) | ip_mysql_database_socket | full path to the server’s socket file (absolute, starting with /); local agent only, with Host left empty |
| TLS Mode (disabled / required / verify_ca / verify_identity) | ip_mysql_database_use_secure | transport security for this target (2.5) |
| CA Certificate File (PEM on the agent host; verify modes) | ip_mysql_database_ca_file | absolute path of a PEM file of CA certificates on the agent host. Needed by verify_ca and verify_identity; with the other modes it is not used (2.5) |
| Kerberos Configuration File | ip_mysql_database_kerberos_config | full path to a krb5.conf on the agent host, for Kerberos authentication |
| Plug-in License Key (credential) | ip_mysql_database_license_key | the signed license key issued for this plug-in, pasted as one line. A hidden credential, set through the MySQL Plug-in License Monitoring Credentials set (MySQLDatabaseLicenseMonitoringCreds); see Entering the license key below |
| License Key (legacy - set the credential instead) | ip_mysql_database_license | where the key lived before metadata 3.6. Still read, but only while the credential is empty; move the key and clear this (Moving a key you entered before metadata 3.6) |
License Key. The console lets you add the target without a key, but nothing except availability collects until the key is accepted. The License metric reports the reason (License Required for no key) and raises a CRITICAL incident, and every other metric group on the target reports a collection error, Collection stopped by license status: …, until the status is Active. Availability keeps reporting, so the target stays Up rather than Down. Cluster and ClusterSet targets are containers, not licensed targets, and are never stopped.
The key is checked entirely on the agent host, every 15 minutes and again as soon as the key changes; nothing is sent to the MySQL server or outside Enterprise Manager. The Status column of the License metric gives the reason a key is not accepted: Invalid Signature (the key was altered), Wrong Plug-in (a key issued for a different plug-in; the 24ai and 13.5 editions share one key), or Expired.
A key is valid through the expiration date printed on it. A key that expires on 2026-12-15 is Active for the whole of that day and becomes Expired the next day. On that last day the Days Remaining column reads 0 while the status is still Active. The comparison uses the local date on the agent host, so the key rolls over at midnight on that host’s clock. A key whose expiration date is missing or cannot be read is not valid.

Entering the license key
Section titled “Entering the license key”From metadata 3.6 the key is a credential, not a target property. It goes into the target’s MySQL Plug-in License Monitoring Credentials set (MySQLDatabaseLicenseMonitoringCreds, credential type MySQLDatabaseLicenseCreds, one field, Plug-in License Key). Enterprise Manager keeps it in its credential store, obfuscated in the agent’s targets.xml, and hands it to the collector on its standard input. Because it is not a target property, users with view access to the target, and the EM MCP Server’s ListTargetProperties, cannot read it.
In the console, the key is the Plug-in License Key field of the monitoring credentials under Target Setup → Monitoring Configuration. With EM CLI, put the key alone in a file that only you can read, with no trailing newline (for example umask 077; printf %s "$KEY" > <file>, with the key read from a protected source rather than typed after echo), then:
emcli set_monitoring_credential -target_name="<target_display_name>" -target_type="ip_mysql_database" \ -set_name="MySQLDatabaseLicenseMonitoringCreds" -cred_type="MySQLDatabaseLicenseCreds" \ -attributes="MySQLLicenseKey:LICTAG" -input_file="LICTAG:<file holding only the license key>"-input_file keeps the key off the command line and out of shell history; delete the file afterwards. Renewing a key is the same command with the new key, and takes effect at the next License collection with no restart: the credential always wins over the legacy property.
If Enterprise Manager answers Cannot set monitoring credential at instance, the target is a member of a cluster target through an association you created. See Changing credentials on a member of a cluster target in 4.5.
Removing the key from the credential set: EM CLI cannot empty this kind of set (an empty -input_file is an EM CLI error, and clear_monitoring_credential does not clear it). Run the command above with a file holding a single space instead. The plug-in treats a blank credential as not set, so the target then falls back to the legacy property, or reads License Required if that is empty too.
Moving a key you entered before metadata 3.6
Section titled “Moving a key you entered before metadata 3.6”Before 3.6 the key was the plain property License Key (ip_mysql_database_license), stored in clear text in the repository (mgmt$target_properties) and returned by emcli list -resource=TargetProperties and the EM MCP Server’s ListTargetProperties. After the upgrade the property is still read, but only while the credential is empty, so an upgraded target keeps collecting with nothing re-entered. While the key stays there it stays readable as before. To hide it, for each MySQL Database target:
-
Set the key in the credential set, as above. From the next collection the credential is the one used; the property is ignored.
-
Clear the old property:
Terminal window emcli modify_target -name="<target_display_name>" -type="ip_mysql_database" \-properties="ip_mysql_database_license:" -on_agentor empty License Key (legacy - set the credential instead) on the Monitoring Configuration page.
-
Check that the License group still reads
Activeafter its next collection (every 15 minutes; amodify_target -on_agentchange can take one more cycle to reach the agent), and thatemcli list -resource=TargetProperties -search="TARGET_NAME='<target_display_name>'"no longer shows the key. The property row itself stays, with an empty value. A target that readsLicense Requiredhas neither a credential nor a property: repeat step 1.
Do not do step 2 before step 1. Do not mark the old property as a credential, or re-enter the key into it: the credential always wins, so a key renewed in the property does nothing while the credential holds the old one.
MySQL InnoDB Cluster (ip_mysql_cluster)
The same properties, with the ip_mysql_cluster_ prefix in place of ip_mysql_database_, and two labels that read differently.
(Router) Host (ip_mysql_cluster_host) and (Router) Port (ip_mysql_cluster_port) take a MySQL Router endpoint, any member of the cluster, or a comma-separated list of them (members, or two Routers), so the target survives losing one. The target reads cluster-wide state through whichever member it lands on.
| Host | Port | Result |
|---|---|---|
mysql-a,mysql-b,mysql-c | 3306 | every host on that port |
mysql-a,mysql-b,mysql-c | 3306,3307,3308 | paired in order |
mysql-c | 1830,1831,1832 | one host, several ports |
Any other combination, or an empty entry, is rejected. So is an entry that is not a plain host name, IP address or [IPv6] literal, a port outside 1 to 65535, or more than 16 endpoints: the target shows Down and every collection reports the error, rather than guessing.
The connection tries the list in order and moves on when a member does not answer. With every member silent the driver makes one extra attempt on the first entry before giving up, so a list of N endpoints costs N+1 attempts. The connect timeout of each attempt is set from the length of the list, so that this worst case ends inside the one-minute interval of the Response metric:
| Endpoints in the list | Connect timeout per attempt | Longest walk, every endpoint silent |
|---|---|---|
| 1 | 10 seconds | 10 seconds |
| 2 | 7 seconds | 21 seconds |
| 3 to 8 | 5 seconds | 20 to 45 seconds |
| 9 and 10 | 4 seconds | 40 and 44 seconds |
| 11 to 14 | 3 seconds | 36 to 45 seconds |
| 15 and 16 | 2 seconds | 32 and 34 seconds |
The walk is held to 45 seconds, which leaves the rest of the minute for starting the collection and writing its result. An endpoint that refuses the connection fails at once and uses none of this time. A list of 11 or more endpoints gives each one 3 seconds or less to accept a connection, so list endpoints the agent host reaches quickly; two Router endpoints cover every member with the longest timeout.
User and Password (ip_mysql_cluster_username, ip_mysql_cluster_password): the monitoring account must carry the grants in 2.4 on the cluster. Created on the primary, it replicates to every member. TLS Mode, Unix Socket Path and Kerberos Configuration File behave as they do for a MySQL Database target.
MySQL InnoDB ClusterSet (ip_mysql_clusterset)
The same properties again with the ip_mysql_clusterset_ prefix, plus one that only this type has.
(Router) Host and (Router) Port (ip_mysql_clusterset_host, ip_mysql_clusterset_port) take the Router endpoint, a member, or a comma-separated list of members, with the same rules as the Cluster target above. Both the JDBC collections and the MySQL Shell session try the list in order; listing every member of every cluster is the configuration that survives losing any one of them.
Which endpoint is in use. With a list, the Monitoring Readiness page of a Cluster or ClusterSet target shows one Endpoint check per entry, in the order of the list, under Connection and privileges. Each reads reachable, refused, timed out or unreachable, with the class of the failure, and the Database connection check names the endpoint the connection went through. The check is a TCP connection attempt from the agent host; it makes no login. An endpoint that does not answer is a warning: the target is monitored through any endpoint that does.
A MySQL Router port works on both paths with password authentication. The Router forwards the JDBC connections and the MySQL Shell session to the current primary, and the AdminAPI still reports the cluster-wide view, so health_source reads ADMINAPI behind a Router exactly as it does on a member. List two Routers (router-1,router-2 with Port 6446) to survive losing one. With Kerberos, list member endpoints instead, because MySQL Shell cannot log in with Kerberos through a Router (2.2).
Availability (the Response metric) is Up while any listed endpoint answers. Whether the ClusterSet is healthy is a separate question, answered by the ClusterSetHealth metric from the AdminAPI’s cluster-wide view and never from the member that happened to answer. A member of a failed cluster answering the connection cannot make the target look healthy, and a failed member cannot make a healthy ClusterSet look Down.
The MySQL Shell session has its own process budget, separate from the JDBC connect timeout: 75 seconds for a single endpoint (30 seconds base, a fixed 30-second reserve for the AdminAPI’s status fan-out to every cluster member, and a 15-second reserve for the replica clusters’ time lag reads), plus, for a list of more than one endpoint, the connect timeout of the table above for each endpoint. Sixteen endpoints at 2 seconds each make 107 seconds.
DR Max Tolerated GTID Lag (transactions) (ip_mysql_clusterset_dr_max_lag): how many transactions the replica cluster may be behind the primary cluster and still count as ready for promotion. The dr_promotion_ready condition (7.1) evaluates against it.
Health Source Mode (AUTO | ADMINAPI | JDBC_METADATA) (ip_mysql_clusterset_health_mode): where ClusterSet health comes from. The default is AUTO, which is what an empty value means: MySQL Shell first, and the members the agent can reach over JDBC when MySQL Shell cannot be used. ADMINAPI never reads over JDBC. JDBC_METADATA never starts MySQL Shell, for a network where the agent host cannot reach every member. A value the plug-in does not recognize reads as AUTO. 2.2 says what each source can and cannot see.
Health Stale After (collections without a verdict; default 3) (ip_mysql_clusterset_health_stale_after): how many collections in a row may return no MySQL Shell verdict before ClusterSet health counts as stale. Leave it empty for 3, which is 15 minutes at the shipped 5-minute schedule. The health_stale_since condition (7.1) evaluates against it. It has no effect when Health Source Mode is JDBC_METADATA, where nothing is counted.
Note: A ClusterSet target also needs
mysqlshon its agent host (2.2), and with TLS Modeverify_caorverify_identityMySQL Shell reads the same CA Certificate File as the collections (2.5). With a Kerberos Configuration File set, MySQL Shell authenticates with the agent user’s ticket and needs member endpoints rather than a Router port (2.2).
MySQL Router (ip_mysql_router)
A MySQL Router target has its own keys, which do not follow the prefix pattern of the other three types. REST User and REST Password are credential properties: in the console they appear in the credentials area of the Add Target page, and with EM CLI they go in -credentials. They belong to the credential set MySQL Router REST Monitoring Credentials (MySQLRouterRestMonitoringCreds), whose credential type is MySQLRouterRestCreds with the columns RestUsername and RestPassword.
| Property | Key | Value |
|---|---|---|
| REST User | ip_mysql_router_username | the REST user from 2.10, user name only. The console form does not mark it required, but the Router refuses a request that carries no REST user, so the target cannot collect without one |
| REST Password | ip_mysql_router_password | that user’s password |
| Router Host | ip_mysql_router_host | required. Host name or IP address of the Router as the agent host reaches it. One host: a Router is one process, so endpoint lists do not apply. Use the name the Router is registered under in the InnoDB Cluster metadata, normally the fully qualified host name, because the ClusterSet Overview matches a Router target to a registration by host name and REST port (5.3) |
| REST Port (default 8443) | ip_mysql_router_rest_port | the Router’s REST port. Empty means 8443 |
| REST TLS Mode (required, verify_ca or verify_identity) | ip_mysql_router_rest_tls | how the agent treats the Router’s certificate (2.10). Empty means required |
| REST CA Certificate File (PEM on the agent host; verify modes) | ip_mysql_router_rest_ca | absolute path of a PEM file on the agent host, which may hold several certificates. Needed by verify_ca and verify_identity; with required it is not used (2.10) |
A MySQL Router target has no license key and no Kerberos or Unix-socket property.
4.2 Add a target manually
Section titled “4.2 Add a target manually”Use this route for a single target, and for any endpoint autodiscovery cannot see (4.4).
-
Make sure the plug-in is deployed to the agent that will monitor the target (3.3). Until it is, the MySQL target types are not offered for that agent.
-
In the console, choose Setup → Add Target → Add Targets Manually, then click Add Target Manually.
-
In the dialog, choose the Host that runs the monitoring agent (this is the agent host, not the MySQL server). The host picker lists every agent host.
-
In Target Type, type
MySQLand select MySQL Database.
-
Click Add …. The Add: MySQL Database form opens with the host and agent already filled in.
-
Enter a Target Name. This is the display name used throughout the console and the name EM CLI verbs take.
<host>:<port>is the convention autodiscovery uses and it stays readable at scale. -
Fill in the monitoring properties from 4.1. At minimum supply MySQL User and MySQL Password (the credentials area, where the page asks for the password twice), Host and Port, plus TLS Mode if the server requires an encrypted session. The license key is a credential set after the target exists (Entering the license key in 4.1). A target added without a key comes Up but collects nothing except availability until a key is accepted (4.1).

-
Click OK to create the target. The page has only OK and Cancel: there is no Test Connection step for these target types, so the first check of the properties is the target’s own status.
-
Wait for the target to appear in the console, which takes a couple of minutes, and confirm that it comes Up. If it stays Down, the cause is a credential, network or TLS problem. Correct the credentials or properties under Target Setup → Monitoring Configuration (4.5); you do not need to remove and re-add the target.
Repeat for MySQL InnoDB Cluster and MySQL InnoDB ClusterSet, choosing that target type in step 4 and filling in the properties listed for it in 4.1.
To add a MySQL Router target, follow the same steps with these differences:
- In step 3, choose any agent host that can reach the Router’s REST port (2.3). It does not have to be the Router host.
- In step 4, type
MySQL Routerand select it. - In step 6, do not put a
:in the target name. The association command in 4.3 readsname:type, so a name that contains a colon cannot be used in it. The<host>:<port>convention above does not suit a Router target. - In step 7, enter the REST User and REST Password in the credentials area and the Router Host, and set the REST Port, REST TLS Mode and REST CA Certificate File when the defaults do not fit (4.1).
- In step 9, a Router target that stays Down means the REST port did not answer or the TLS handshake failed. A REST user or password that the Router refuses does not turn the target Down: it shows as a collection error and as a failed REST user accepted check on the Monitoring Readiness page (2.10, 5.4).
The form creates the target only. It does not associate the Router with the Cluster or ClusterSet it serves; create the association with the EM CLI command in 4.3, or add the Router with the onboarding script, which does both (4.7). Router targets are not autodiscovered (4.4), because Routers usually run on application hosts without an agent and the InnoDB Cluster metadata already lists them (5.3).
Once the target is Up, its metric groups populate on their own schedules.
Done when the target shows Up on All Targets and its Overview page fills with the first collections (5.1).
Note: On Enterprise Manager 13.5 the Add Targets Manually page offers Add Targets Declaratively by Specifying Target Monitoring Properties instead of a dialog. Select it, choose the target type and the Monitoring Agent, and click Add Manually to reach the same form as step 6.
Note: On an Enterprise Manager 13.5 site that also has Oracle’s own MySQL plug-in deployed, the Target Type list shows two entries named MySQL InnoDB Cluster and two named MySQL InnoDB ClusterSet. Pick the one whose form shows the credential type
MySQLClusterCreds(cluster) orMySQLClusterSetCreds(ClusterSet). Those are the Integration Plumbers types.
Note: Cluster and ClusterSet targets are independent of the MySQL Database targets for the same servers. You can add either without the other, and adding a cluster target does not create database targets for its members.
4.3 Add a target with EM CLI
Section titled “4.3 Add a target with EM CLI”EM CLI creates the same target as the console and is the practical route once you are onboarding more than a handful of servers.
add_target takes the display name, the target type, the agent host, and the monitoring properties split across two options:
| Console target type | -type value | Property prefix |
|---|---|---|
| MySQL Database | ip_mysql_database | ip_mysql_database_ |
| MySQL InnoDB Cluster | ip_mysql_cluster | ip_mysql_cluster_ |
| MySQL InnoDB ClusterSet | ip_mysql_clusterset | ip_mysql_clusterset_ |
| MySQL Router | ip_mysql_router | ip_mysql_router_ (its keys are listed in 4.1 and are not the common names below) |
| Console field | Key (<prefix> from the table above) | Option |
|---|---|---|
| User | <prefix>username | -credentials |
| Password | <prefix>password | -credentials |
| Host / (Router) Host | <prefix>host | -properties |
| Port / (Router) Port | <prefix>port | -properties |
| Unix Socket Path | <prefix>socket | -properties |
| TLS Mode | <prefix>use_secure | -properties |
| CA Certificate File | <prefix>ca_file | -properties |
| Kerberos Configuration File | <prefix>kerberos_config | -properties |
| Plug-in License Key (MySQL Database only) | ip_mysql_database_license_key | set_monitoring_credential after add_target (see Entering the license key in 4.1) |
| License Key, legacy (MySQL Database only) | ip_mysql_database_license | -properties; still read while the credential is empty |
| DR Max Tolerated GTID Lag (ClusterSet only) | ip_mysql_clusterset_dr_max_lag | -properties |
| Health Source Mode (ClusterSet only) | ip_mysql_clusterset_health_mode | -properties |
| Health Stale After (ClusterSet only) | ip_mysql_clusterset_health_stale_after | -properties |
Note: on Cluster and ClusterSet targets,
<prefix>hostand<prefix>portaccept the comma-separated lists described in 4.1. Commas inside a value pass straight through EM CLI; the;between properties and the:after each name are unchanged.
Both options take key:value pairs separated by ;. Log in first with emcli login -username=<em user>.
A MySQL Database target:
emcli add_target -name="mysql84-prod-01" -type="ip_mysql_database" \ -host="agent-host.example.com" \ -properties="ip_mysql_database_host:10.0.0.21;ip_mysql_database_port:3306;ip_mysql_database_use_secure:required" \ -credentials="ip_mysql_database_username:em_monitoring;ip_mysql_database_password:<password>"The license key is not part of add_target. Set it afterwards through its credential set (Entering the license key in 4.1); until it is set, the target is Up and collects only availability and the License metric.
A MySQL InnoDB Cluster target, pointed at a Router endpoint:
emcli add_target -name="mysql84-prod-cluster" -type="ip_mysql_cluster" \ -host="agent-host.example.com" \ -properties="ip_mysql_cluster_host:10.0.0.30;ip_mysql_cluster_port:6446;ip_mysql_cluster_use_secure:required" \ -credentials="ip_mysql_cluster_username:em_monitoring;ip_mysql_cluster_password:<password>"A MySQL InnoDB ClusterSet target, which adds the DR lag tolerance:
emcli add_target -name="mysql84-prod-clusterset" -type="ip_mysql_clusterset" \ -host="agent-host.example.com" \ -properties="ip_mysql_clusterset_host:10.0.0.30;ip_mysql_clusterset_port:6446;ip_mysql_clusterset_use_secure:required;ip_mysql_clusterset_dr_max_lag:100" \ -credentials="ip_mysql_clusterset_username:em_monitoring;ip_mysql_clusterset_password:<password>"The same ClusterSet behind two MySQL Routers, so that losing one Router does not take the target Down (the list rules are in 4.1; password authentication, because MySQL Shell cannot log in with Kerberos through a Router, 2.2):
emcli add_target -name="mysql84-prod-clusterset" -type="ip_mysql_clusterset" \ -host="agent-host.example.com" \ -properties="ip_mysql_clusterset_host:router-1.example.com,router-2.example.com;ip_mysql_clusterset_port:6446;ip_mysql_clusterset_use_secure:required;ip_mysql_clusterset_dr_max_lag:100" \ -credentials="ip_mysql_clusterset_username:em_monitoring;ip_mysql_clusterset_password:<password>"A ClusterSet target that authenticates with Kerberos lists its members, names the Kerberos configuration file, and carries the username only. Leave the password key out of -credentials altogether: add_target rejects an empty password value, and the ticket in the agent user’s credential cache is the credential (2.2):
emcli add_target -name="mysql84-prod-clusterset-krb" -type="ip_mysql_clusterset" \ -host="agent-host.example.com" \ -properties="ip_mysql_clusterset_host:mysql-a.example.com,mysql-b.example.com,mysql-c.example.com,mysql-d.example.com,mysql-e.example.com,mysql-f.example.com;ip_mysql_clusterset_port:3306;ip_mysql_clusterset_use_secure:required;ip_mysql_clusterset_kerberos_config:/etc/krb5.conf;ip_mysql_clusterset_dr_max_lag:100" \ -credentials="ip_mysql_clusterset_username:em_monitoring"A MySQL Router target. Its keys are ip_mysql_router_host, ip_mysql_router_rest_port, ip_mysql_router_rest_tls and ip_mysql_router_rest_ca in -properties, and ip_mysql_router_username and ip_mysql_router_password in -credentials. -host is the agent host, as for every target. The REST CA file is needed only with verify_ca or verify_identity:
emcli add_target -name="orders-router-1" -type="ip_mysql_router" \ -host="agent-host.example.com" \ -properties="ip_mysql_router_host:router01.example.com;ip_mysql_router_rest_port:8443;ip_mysql_router_rest_tls:verify_ca;ip_mysql_router_rest_ca:/etc/ssl/router01-ca.pem" \ -credentials="ip_mysql_router_username:router_monitor;ip_mysql_router_password:<password>"Then associate the Router with the Cluster or ClusterSet target it serves. The association type is exposed_by, the source is the Cluster or ClusterSet target, and the destination is the Router target:
emcli create_assoc -assoc_type=exposed_by \ -source="mysql84-prod-clusterset:ip_mysql_clusterset" \ -dest="orders-router-1:ip_mysql_router"For a Router bootstrapped against a single cluster, use that cluster’s target and ip_mysql_cluster as the source type. The association says that the cluster is reached through the Router. It does not make the Router a member of the cluster or the ClusterSet. The ClusterSet Overview uses it to show the Router target and its status against the Router’s registration (5.3).
Confirm the target was created:
emcli get_targets -targets="mysql84-prod-01:ip_mysql_database"Done when get_targets lists the target and its status reads Up within a few minutes. For a Router target, the ClusterSet Overview also shows the target against its registration.
Note:
-hostnames the agent host that will monitor the target. The MySQL endpoint goes in the<prefix>hostproperty, and the two are usually different: the same agent host appears in every command when one agent monitors many servers.
Note: If a property value has to contain
;or:, override the separators for-propertiesrather than escaping them (-separator=properties=...and-subseparator=properties=...; runemcli help add_targetfor the syntax).-credentialshas no separator override on EM 24ai:add_targetrejects-separator=credentialsand-separator=monitoring_credsalike. Put such a credential value in a file and pass-input_file="TAG:/path/to/file"withTAGin place of the value inside-credentials; EM CLI reads the file after it has split the option, so the value reaches the command unchanged. One-input_fileper tag. Create the file owner-only (umask 077first, orchmod 600) and remove it as soon as the command returns.
4.4 Autodiscovery
Section titled “4.4 Autodiscovery”Enterprise Manager can propose MySQL Database targets for you on hosts it already monitors.
The plug-in’s agent-side discovery detects every listening mysqld process on a monitored agent host and proposes one target per instance, named <host>:<port>. The name carries no process ID, so it is stable across restarts, and several instances on one host are proposed separately by their listening ports.
Agent-side discovery has to be enabled for the host before anything appears: under Setup → Add Target → Configure Auto Discovery, enable the MySQL discovery module on each host you want scanned and set its schedule.
To adopt a proposed target:
- Choose Setup → Add Target → Auto Discovery Results.
- Select the proposed MySQL Database target and click Promote.
- Supply the monitoring credentials (2.4) and the remaining properties from 4.1. TLS Mode in particular cannot be discovered; set it explicitly (2.5).
- Click Promote to finish. The target comes Up; it starts collecting once its license key is set (discovery does not supply one: open the target, Target Setup → Monitoring Configuration, and enter the key in the Plug-in License Key credential; see 4.1).
Note: Managed-cloud MySQL (Amazon RDS and Aurora, OCI MySQL HeatWave, Google Cloud SQL, Azure Database for MySQL and their equivalents) has no host process for an agent to see, so it is never autodiscovered. Add those endpoints manually (4.2 or 4.3), using the service endpoint as Host and its port.
Amazon RDS for MySQL
Section titled “Amazon RDS for MySQL”Certified 2026-09-09 on RDS MySQL 8.4.11. The standard monitoring user (2.4) collects every metric group with zero collection errors; nothing RDS-specific is needed beyond a security-group rule that admits the agent host on the endpoint port. What you see that differs from a self-managed server, none of it a defect:
- RDS snapshots are not MySQL Enterprise Backup or XtraBackup runs, so
BackupHistoryhas no rows andBackupStatusreports both tools absent with no backup age, and the backup thresholds stay silent. Watch RDS backups in AWS. - The AWS-managed accounts trip the account rules.
rdsadmin@localhost(ALL PRIVILEGES,auth_socket) and therds_superuser_rolerole (and the master user through that role) violate the security standard’s SUPER, GRANT OPTION, PROCESS,mysql-schema-write and wildcard-host rules. You cannot change those accounts; treat the violations as the documented baseline for RDS, or exclude the standard’s account rules for RDS targets. From GA Update 1 the master user’s violation names the role invia_roles, and the privilege rules do not report the role’s own row while the role is locked (9.2). - RDS defaults fire configuration rules that a hardened self-managed server would pass: redo/undo and binary-log encryption off, no keyring,
require_secure_transportoff (the 8.4 family default), password validation not installed,local_infileon,sql_modenot strict. Binary logging itself is off while automated backups are disabled (backup retention 0), which also fires the binary-logging rule. Change what the parameter group and backup settings allow; accept the rest as the managed baseline. - Replica-side, Enterprise-only and lock-wait groups are empty on a stand-alone RDS instance, as on any server without a replica, the audit-log or firewall components, or lock contention: no rows, no errors. Table statistics appear once user tables see I/O.
- RDS MySQL 8.4 accepts plain and TLS connections by default, and TLS Mode
required(4.1) works against the RDS endpoint. Verifying the RDS certificate chain (TLS Modeverify_caorverify_identity, with the RDS CA bundle as the CA Certificate File, 2.5) is not yet certified against RDS.
Amazon Aurora MySQL
Section titled “Amazon Aurora MySQL”Certified 2026-10-24 on Aurora MySQL 8.4.8 (Serverless v2, one writer instance). Add the cluster’s writer endpoint as Host; the standard monitoring user (2.4) collects the same metric groups as RDS MySQL 8.4 with zero collection errors. Everything in the RDS list above applies to Aurora as well, with these differences:
- The Aurora MySQL 8.4 parameter-group family sets
require_secure_transporton, so TLS Moderequired(4.1) is the setting to use; a target left on plain TCP fails to connect. - Aurora turns
performance_schemaon by default only when Performance Insights is enabled. The certified instance setperformance_schema=1in its instance parameter group before it started (a static parameter: set it before the first start, or reboot after). Without it the statement, wait and file groups report nothing and Monitoring Readiness says so. - Aurora snapshots and continuous backup are not MySQL Enterprise Backup or XtraBackup runs, so the backup groups are empty as on RDS; watch Aurora backups in AWS.
InstanceInforeports Aurora’s own paths (/rdsdbbin/oscar-8.4.mysql_aurora.<build>/as the base directory,/rdsdbdata/db/as the data directory); the version reads as the MySQL-compatible version,8.4.8.
OCI MySQL HeatWave
Section titled “OCI MySQL HeatWave”Certified 2026-10-25 on HeatWave MySQL 8.4.13 (8.4.13-cloud, MySQL Enterprise - Cloud), one standalone DB System without a HeatWave cluster attached. The standard monitoring user (2.4), created by the DB System’s admin account, collects every metric group the Aurora MySQL 8.4 reference collects, plus AuditLogActivity because the Enterprise audit log plug-in is active on a DB System, with zero collection errors. Everything in the RDS list above applies here too, with these differences:
- A DB System has a private endpoint only (an address in its subnet, no public IP), so the agent needs a route to it: an agent host inside the VCN or one reached over FastConnect or a VPN, or a public Network Load Balancer in the DB System’s subnet forwarding TCP 3306 to the private endpoint, which is how the lab reached it. Put the load balancer’s public address in Host. The subnet’s security list has to admit the agent’s address and, for a load balancer, the subnet’s own CIDR for health checks and forwarded traffic.
- The DB System accepts plain and TLS connections by default (
require_secure_transportoff, unlike the Aurora 8.4 family), offering TLS 1.2 and 1.3 with a certificate OCI issues to the endpoint. TLS Moderequired(4.1) works; the certified target used it and the plug-in connects over TLS 1.3. Verifying that certificate (TLS Modeverify_caorverify_identity) is not yet certified, as for RDS. performance_schemais on by default, with thesysschema present, so the statement, wait and file groups collect without any parameter change.- OCI backups are not MySQL Enterprise Backup or XtraBackup runs, and the
mysql.backup_historytable does not exist on a DB System; the plug-in detects that throughinformation_schema, soBackupStatusreports both tools absent with no backup age and no collection error, and the backup thresholds stay silent. Watch backups in the OCI console. - The OCI-managed accounts (
administrator, locked;ociadminandocidbmat127.0.0.1;ocirplat any host;oracle-cloud-agentandrrhhuseronauth_socketatlocalhost) trip the security standard’s account rules beside your own accounts: on the certified DB System, SUPER (5 accounts), PROCESS (6), GRANT OPTION (3), wildcard host (4), FILE, SHUTDOWN andmysql-schema write. You cannot change those accounts; treat the violations as the managed baseline for HeatWave, or exclude the account rules for DB System targets. - DB System defaults fire configuration rules a hardened self-managed server would pass:
require_secure_transportoff, redo, undo and binary-log encryption off, no default table encryption, no keyring component,local_infileon, password lifetime and reuse unrestricted, the audit log unencrypted, binary logs expiring after one hour (the administration standard’s retention rule),binlog_row_imageatFULLand source checksum verification off (two replication rules). Binary logging itself is on with GTIDs,sql_modeis strict andvalidate_passwordis installed atMEDIUM, so the rules behind those pass. Change what the DB System configuration allows; accept the rest as the managed baseline. - Replica-side groups are empty on a standalone DB System: the
group_replicationplug-in is loaded butOFFLINE, and there are no replication channels, so the replica groups have no rows and no errors. The source-side groups (ReplicationSource,ReplicationSourceActivity) do report, since binary logging and GTIDs are on, with a replica count of zero. InstanceInforeports the DB System’s own paths (/usr/as the base directory,/db/data/as the data directory,/db/tmpas the temp directory); the version reads8.4.13-cloud.
Google Cloud SQL for MySQL
Section titled “Google Cloud SQL for MySQL”Certified 2026-11-18 on Cloud SQL for MySQL 8.4.11 (8.4.11-google), one standalone Enterprise edition instance with 2 vCPUs and 8 GB of memory. Add the instance’s IP address as Host. The standard monitoring user (2.4), created by the instance’s root account, collects every metric group a self-managed MySQL 8.4 server collects except backup history and the replica groups, with zero collection errors.
- An instance has a public IP address, a private IP address in your VPC network, or both. A public IP accepts connections only from the address ranges listed under Authorized networks, so add the agent host’s outbound address there; the lab reached the certified instance this way, with no load balancer. A private IP needs an agent host inside the VPC network or one reached over Cloud VPN or Cloud Interconnect. The Cloud SQL Auth Proxy and IAM database authentication are not certified.
performance_schemais off by default on an instance of this size. Without it the target still monitors: the certified instance collected 31 metric groups with zero collection errors, and Monitoring Readiness (5.1) reports what is missing. Setting the database flagperformance_schema=onadds the statement, wait, file I/O, memory, table and index groups, 52 groups in all. Setting the flag restarts the instance.- Cloud SQL offers TLS 1.2 only and refuses a TLS 1.3 handshake. TLS Mode
required(4.1) works and is the setting to use: the instance accepts plain connections by default, butcaching_sha2_passwordthen refuses the login. Verifying the instance certificate (TLS Modeverify_caorverify_identity) is not yet certified, as for RDS. - Cloud SQL backups are not MySQL Enterprise Backup or XtraBackup runs, and the
mysql.backup_historytable does not exist;BackupStatusreports both tools absent with no collection error, and the backup thresholds stay silent. Watch backups in Google Cloud. - The binary log is off while automated backups are off, as on the certified instance, and the binary-log rules of the administration standard then fire.
- Google’s service accounts (
cloudsqlapplier,cloudsqlexport,cloudsqlimport,cloudsqlobservabilityadmin,cloudsqloneshot,cloudsqlreadonly,cloudsqlreplicaindexandrootat loopback hosts, andcloudsqlreplicaat any host) trip the security standard’s account rules beside your own accounts. On the certified instance, Accounts Without Password counted 21 accounts, every one of them a Google service account. These accounts belong to the service and cannot be changed. - Instance defaults fire configuration rules a hardened self-managed server would pass:
require_secure_transportoff, no password validation component, password lifetime and reuse unrestricted, no keyring component, and redo, undo and binary-log encryption off. Google encrypts the storage underneath, which these MySQL-level rules do not see. - The
rootaccount holds thecloudsqlsuperuserrole, notSUPER, and can grant the monitoring privileges (2.4) as written. - Replica-side groups are empty on a standalone instance. Read replicas and high-availability (regional) instances are not yet certified.
InstanceInforeports the instance’s own paths (/usr/as the base directory,/mysql/datadir/as the data directory); the version reads8.4.11-googleand the host name readslocalhost.
MariaDB
Section titled “MariaDB”A MariaDB target can be added the same way and collects most of the database groups. The two security groups read MariaDB’s own sources (mysql.roles_mapping, mysql.global_priv, information_schema.global_variables); settings that exist only on MySQL, such as partial_revokes, binlog_encryption and default_table_encryption, read empty, and the advisor rules built on them do not evaluate. MariaDB’s own encryption settings (encrypt_binlog, innodb_encrypt_tables) are not yet checked by an advisor rule.
Create the monitoring account with the MariaDB grant set in 2.4: SELECT and PROCESS as on MySQL, and BINLOG MONITOR and REPLICA MONITOR in place of REPLICATION CLIENT. On MariaDB, REPLICATION CLIENT is an alias of BINLOG MONITOR only, so an account created with the MySQL statement reaches SHOW MASTER STATUS but not SHOW SLAVE STATUS. Without REPLICA MONITOR, the replica activity group, and on MariaDB 11.6 and later the two groups below, report an access error.
On MariaDB 11.6 and later, replication connection status and configuration come from information_schema.SLAVE_STATUS, which needs REPLICA MONITOR. Earlier MariaDB releases report no rows for these two groups. The per-worker replication group is not collected on MariaDB, whose parallel workers have no stable worker id, and neither is the InnoDB lock waits group, because MariaDB has no performance_schema.data_locks and data_lock_waits tables. Both read DISABLED in the Collector Status group. The four InnoDB status groups stay empty, because MariaDB’s InnoDB monitor output does not carry the sections they read.
MariaDB is a supported platform, and the differences above are how the plug-in behaves on it. Report a problem on a MariaDB target the same way as for a MySQL target (Troubleshooting), and Integration Plumbers works on a fix or a workaround.
Amazon RDS for MariaDB. Add the instance manually (4.2 or 4.3) with the endpoint as Host. RDS MariaDB 11.8.9 sets require_secure_transport=ON by default, so set TLS Mode to required (4.1); a target with TLS Mode unset shows Down, and its Response Reason and the Database connection check on Monitoring Readiness read TLS_REQUIRED_BY_SERVER. The account that creates the monitoring user is the instance’s admin user. Amazon RDS snapshots are not MySQL Enterprise Backup or XtraBackup runs, so the backup groups are empty as on RDS for MySQL.
On every managed service above, Collector Status (6.5) says which empty groups are expected. The replica groups read NOT_CONFIGURED with no replication channel is configured, the backup groups read NOT_CONFIGURED with no backup tool history was found, and the Sys, wait and statement digest groups read NOT_CONFIGURED with performance_schema is off on an instance that has performance_schema off, as Google Cloud SQL does by default.
MySQL InnoDB Cluster and MySQL InnoDB ClusterSet targets are not autodiscovered either. They are added against an endpoint you choose, so create them manually.
4.5 Modify or remove a target
Section titled “4.5 Modify or remove a target”Monitoring properties can be changed at any time; the change applies from the next collection.
To change a target’s properties in the console:
- From the target’s home page, choose the target-type menu → Target Setup → Monitoring Configuration.
- Edit the properties (4.1) and click OK.
Editing credentials, host, port or TLS Mode is the normal way to move a target to a new endpoint or to turn encryption on. You do not need to remove and re-add the target for any of them.
To remove a target, choose the target-type menu → Target Setup → Remove Target and confirm.

The EM CLI equivalents:
emcli modify_target -name="mysql84-prod-01" -type="ip_mysql_database" \ -properties="ip_mysql_database_port:3307" -on_agentemcli delete_target -name="mysql84-prod-01" -type="ip_mysql_database"-on_agent pushes the change to the agent immediately instead of waiting for the next agent resynchronization.
Note: Removing a target removes its collected metric history and its compliance associations with it. A target re-added under the same name starts both over, so prefer editing a target’s properties to deleting and recreating it.
MySQL Router targets. Changing the REST User, REST Password, REST Port, REST TLS Mode or REST CA Certificate File works as for any other target and applies from the next collection. A Router target’s association with its Cluster or ClusterSet target does not survive removing and re-adding the target, and nothing restores it by itself. After you recreate a Router target, create the association again with the create_assoc command in 4.3, or run apply again for its row in the onboarding script, which creates a missing association and skips one that exists (4.7). Until then the ClusterSet Overview reads Registered, not monitored for that Router (5.3).
Changing credentials on a member of a cluster target
Section titled “Changing credentials on a member of a cluster target”The plug-in does not create membership associations between its targets. If you created them yourself, for example with emcli create_assoc -assoc_type=cluster_contains from a MySQL InnoDB Cluster target to its MySQL Database targets, or from a MySQL InnoDB ClusterSet target to its Cluster targets, Enterprise Manager treats each member as an instance of a cluster. It then refuses a change to the member’s monitoring credentials, in the console and in EM CLI:
Cannot set monitoring credential at instance. Set credential for parent target <parent_name>:<parent_type>This applies to every monitoring credential set of the member: the MySQL user and password, and from metadata 3.6 the Plug-in License Key. The parent target has no credential set for its members, so the credentials cannot be set there either. Credentials that were set before the association was created keep working; only changing them is refused.
To change a member’s credentials, remove the association, make the change, and create the association again:
emcli delete_assoc -assoc_type="cluster_contains" -source="<parent_name>:<parent_type>" -dest="<member_name>:<member_type>"emcli set_monitoring_credential -target_name="<member_name>" -target_type="<member_type>" ...emcli create_assoc -assoc_type="cluster_contains" -source="<parent_name>:<parent_type>" -dest="<member_name>:<member_type>"<parent_type> is ip_mysql_cluster or ip_mysql_clusterset, and <member_type> is ip_mysql_database or ip_mysql_cluster. The middle command is the one you would run on a target that is not a member: for the license key, the command in Entering the license key (4.1). You can also make the change on the Monitoring Configuration page while the association is removed.
The target keeps collecting throughout, and its metric history is not affected. While the association is removed, the target is not a member of its parent: a blackout of the parent that includes members does not cover it, and a view privilege granted on the parent does not extend to it. Run the three commands together.
4.6 Associate compliance standards
Section titled “4.6 Associate compliance standards”Adding a target does not associate compliance standards with it: neither the console wizard nor emcli add_target carries an association, so a new target has no compliance evaluations until you associate the standards.
The plug-in ships five standards for ip_mysql_database targets, collected in one framework:
| Standard | Internal name |
|---|---|
| MySQL Administration Standard | xmys_administration_standard |
| MySQL Performance Standard | xmys_performance_standard |
| MySQL Replication Standard | xmys_replication_standard |
| MySQL Schema Standard | xmys_schema_standard |
| MySQL Security Standard | xmys_security_standard |
All five are authored by INTEGRATION_PLUMBERS at version 1. Chapter 9 describes the framework and every rule in it.
From the console:
- Choose Enterprise → Compliance → Library.
- On the Compliance Frameworks tab, select MySQL Framework (Integration Plumbers). To associate a single standard instead, switch to the Compliance Standards tab and select one of the five.
- Click Associate Targets.
- Add the MySQL Database targets you want evaluated, then click OK and confirm.
With EM CLI, associate one standard at a time:
emcli associate_cs_targets -name="xmys_security_standard" -version=1 \ -author=INTEGRATION_PLUMBERS -target_list="mysql84-prod-01"Repeat the command for each of the five internal names you want evaluated on that target.
Note: The two options take different name forms.
-nametakes the standard’s internal name from the table above;-target_listtakes the target display name alone.
Results appear on the target’s compliance pages once a configuration collection has run against the newly associated standards. See 9.2 for reading them.
Done when the target’s Compliance ▸ Results page lists the five standards with an evaluation date.
4.7 Bulk onboarding and migration
Section titled “4.7 Bulk onboarding and migration”For more than a handful of targets (and for moving an estate off the Oracle MySQL plug-in) use the
mysql-onboard.sh script (download, example inventory).
It exports the existing targets to a CSV, creates the replacement GA plug-in targets side by side with
add_target / modify_target -on_agent, verifies Up and license, associates the standards from 4.6, and retires
the sources on request. The full sequence, the review flags and the threshold worksheet are in the
migration chapter.
The script does not create the monitoring account on the server. For a MariaDB server, create the account first with the MariaDB grant set in 2.4 (BINLOG MONITOR and REPLICA MONITOR in place of REPLICATION CLIENT) and give the row’s username and password as for any other target.
The script also onboards MySQL Router targets (ip_mysql_router). A Router row creates one target for one Router
process, reached over the Router REST API, and associates it with the Cluster or ClusterSet it serves. The columns
a Router row uses are in the migration chapter under MySQL Router rows.
The same script moves targets from the Open Beta plug-in (ip.em.xmyb) to this release; the migration chapter covers it.

