You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature suggestion : in order to be able to monitor InnoDB cluster with the exporter, it will be nice to know the status of each of the members in the cluster.
The above query allow to get topology of the cluster and state of each node :
SELECT
REGEXP_SUBSTR(i.instance_name, '.+?(?=:)'),c.cluster_name as CLUSTER_NAME,
i.*,
rgm.*,
IFNULL(rgm.MEMBER_STATE, 'OFFLINE') MEMBER_STATE_UPDATE,
case rgm.MEMBER_STATE when 'ONLINE' then 0 when 'RECOVERING' then 1 else 2 end STATUS, case rgm.MEMBER_ROLE when 'PRIMARY' then 0 else 1 end ROLE
FROM
mysql_innodb_cluster_metadata.clusters c
INNER JOIN mysql_innodb_cluster_metadata.instances i ON c.default_replicaset = i.replicaset_id
LEFT JOIN performance_schema.replication_group_members rgm ON i.mysql_server_uuid = rgm.MEMBER_ID
WHERE
@@hostname = (SELECT MEMBER_HOST FROM performance_schema.replication_group_members WHERE MEMBER_ROLE = 'PRIMARY')"
The text was updated successfully, but these errors were encountered:
Feature suggestion : in order to be able to monitor InnoDB cluster with the exporter, it will be nice to know the status of each of the members in the cluster.
The above query allow to get topology of the cluster and state of each node :
The text was updated successfully, but these errors were encountered: