{
  "items": [
    {
      "id": 25750,
      "status": 1,
      "statusCode": "active",
      "orgId": 1899401,
      "orgSlug": "microbunting2091",
      "orgName": "microbunting2091",
      "slug": "mysql-mgr-group-replication-monitoring-troubleshooting-v2-1-rc10062026",
      "downloads": 97,
      "revisionId": 42105,
      "revision": 3,
      "name": "MySQL MGR / Group Replication Monitoring & Troubleshooting - V2.1 RC10062026",
      "description": "Multi-cluster MySQL 8.0 Group Replication dashboard for Grafana. V2.1 RC9 clean-line refinement: workload panels use zero area fill, 2px lines, no points, linear interpolation, sorted multi-series tooltips, four dedicated DML panels, separate Connections and Threads Running panels, and dual-axis TPS vs MGR queue correlation.",
      "readme": "#Grafana version ：Grafana v12.0.1 (80658a73c5)\r\n#operating system ：Ubuntu 22.04.3 LTS \r\n\r\n# MySQL MGR / Group Replication Monitoring & Troubleshooting\r\n\r\nProduction-oriented Grafana dashboard for monitoring multiple MySQL 8.0 Group\r\nReplication (MGR) single-primary clusters with Prometheus and mysqld_exporter.\r\n\r\n## Dashboard coverage\r\n\r\n- Fleet health and healthy-cluster summary\r\n- ONLINE member and PRIMARY counts\r\n- Member role/state overview\r\n- MGR member inventory\r\n- Certification queue and responsible database node\r\n- Remote applier queue and responsible database node\r\n- Certification conflict rate and responsible database node\r\n- Local rollback rate and responsible database node\r\n- Certification/applier queue trends\r\n- Conflict/rollback trends\r\n- Group Replication transaction throughput\r\n- Multi-cluster filtering by `job`, `region` and exporter `instance`\r\n\r\n## Requirements\r\n\r\n- Grafana with a Prometheus datasource\r\n- Prometheus\r\n- mysqld_exporter\r\n- MySQL 8.0 Group Replication\r\n\r\n### Required mysqld_exporter collectors\r\n\r\nThe deployment used to validate this dashboard enables:\r\n\r\n```text\r\n--collect.global_status\r\n--collect.info_schema.innodb_metrics\r\n--collect.engine_innodb_status\r\n--collect.perf_schema.tablelocks\r\n--collect.perf_schema.eventsstatements\r\n--collect.perf_schema.eventsstatementssum\r\n--collect.perf_schema.eventswaits\r\n--collect.perf_schema.replication_group_members\r\n--collect.perf_schema.replication_group_member_stats\r\n--collect.slave_status\r\n```\r\n\r\nFor the MGR-specific panels, these two collectors are essential:\r\n\r\n```text\r\n--collect.perf_schema.replication_group_members\r\n--collect.perf_schema.replication_group_member_stats\r\n```\r\n\r\nThe first supplies MGR member topology/state/role. The second supplies certification\r\nqueue, remote applier queue, conflict, rollback and Group Replication transaction metrics.\r\n\r\n## systemd example\r\n\r\nExample file:\r\n\r\n```text\r\n/etc/systemd/system/mysqld_exporter.service\r\n```\r\n\r\n```ini\r\n[Unit]\r\nDescription=MySQL Exporter\r\nAfter=network.target\r\nWants=network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=mysql\r\nGroup=mysql\r\nWorkingDirectory=/opt/mysqld_exporter\r\n\r\nExecStart=/opt/mysqld_exporter/mysqld_exporter \\\r\n  --config.my-cnf=/opt/mysqld_exporter/.my.cnf \\\r\n  --collect.global_status \\\r\n  --collect.info_schema.innodb_metrics \\\r\n  --collect.engine_innodb_status \\\r\n  --collect.perf_schema.tablelocks \\\r\n  --collect.perf_schema.eventsstatements \\\r\n  --collect.perf_schema.eventsstatementssum \\\r\n  --collect.perf_schema.eventswaits \\\r\n  --collect.perf_schema.replication_group_members \\\r\n  --collect.perf_schema.replication_group_member_stats \\\r\n  --collect.slave_status \\\r\n  --web.listen-address=:9104\r\n\r\nRestart=always\r\nRestartSec=3\r\nStandardOutput=syslog\r\nStandardError=syslog\r\nSyslogIdentifier=mysqld_exporter\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n```\r\n\r\nAfter creating or changing the unit:\r\n\r\n```bash\r\nsystemctl daemon-reload\r\nsystemctl restart mysqld_exporter\r\nsystemctl status mysqld_exporter\r\n```\r\n\r\nConfirm metrics are exposed on port 9104 before importing the dashboard.\r\n\r\n## Prometheus file_sd labels\r\n\r\nThis dashboard supports a `region` label and uses a `role` label as the\r\nhuman-readable database node name.\r\n\r\nExample:\r\n\r\n```json\r\n[\r\n  {\r\n    \"targets\": [\"103.214.126.156:9104\"],\r\n    \"labels\": {\r\n      \"region\": \"AB\",\r\n      \"role\": \"AB-mgr-01\"\r\n    }\r\n  },\r\n  {\r\n    \"targets\": [\"147.131.144.112:9104\"],\r\n    \"labels\": {\r\n      \"region\": \"AB\",\r\n      \"role\": \"AB-mgr-02\"\r\n    }\r\n  }\r\n]\r\n```\r\n\r\nUsing `role` allows Grafana to display readable node names such as:\r\n\r\n```text\r\nRemote Applied · AB-mgr-01\r\nLocal Proposed ·AB-mgr-02\r\n```\r\n\r\ninstead of exporter endpoints such as `103.214.126.156:9104`.\r\n\r\n## Queue / conflict summary behavior\r\n\r\nThe four troubleshooting summary panels identify the database node associated\r\nwith the highest current non-zero value:\r\n\r\n- Certification Queue\r\n- Remote Applier Queue\r\n- Conflict Rate\r\n- Local Rollback Rate\r\n\r\nExample:\r\n\r\n```text\r\n1\r\nAB-mgr-01\r\n```\r\n\r\nWhen every selected node reports zero, the panels show `CLEAR`,\r\n`NO CONFLICTS`, or `NO ROLLBACKS` without assigning the healthy value to an\r\narbitrary host.\r\n\r\n## Import\r\n\r\n1. Open Grafana.\r\n2. Go to **Dashboards → New → Import**.\r\n3. Upload `mysql-mgr-group-replication-monitoring-v1.0.0.json`.\r\n4. Select the Prometheus datasource.\r\n5. Import the dashboard.\r\n6. Select the required `job`, `region`, and `instance` filters.\r\n\r\n## Notes\r\n\r\nThe fleet-health logic in this release is designed for 3-node, single-primary\r\nMGR clusters: one ONLINE PRIMARY and three ONLINE members per cluster.\r\n\r\nQueue trend is generally more important than a brief non-zero spike. A\r\ncertification or applier queue that continues to grow should be investigated.\r\n\r\n## Release\r\n\r\n**v1.0.0** — initial community release.\r\n**v2.0.0** — Added performance monitoring metrics such as TPS and OPS.\r\n**v1.0.0** —  1,Optimized the statistical method for \"Online Members. \r\n                        2.Add a column at the top labeled \"Affected MGR Members.\" This means displaying the hosts flagged as anomalous in \"Fleet Health\" within the \"Affected MGR Members\" column.\r\n\r\n## Author\r\n\r\nCreated and maintained by diagdba@gmail.com;\r\n\r\nDatabase Administrator / DevOps Engineer focused on  MySQL, MySQL Group Replication,\r\nOracle, PostgreSQL, TiDB, MySQL database reliability, performance tuning and automation.\r\n\r\nFor bug reports, feature requests and contributions, please use the project's GitHub repository.\r\n\r\n## Contributing\r\n\r\nIssues, suggestions and pull requests are welcome.\r\n\r\nIf you are using this dashboard with a different MGR topology, mysqld_exporter version,\r\nor Prometheus labeling strategy, feedback and compatibility reports are especially welcome.",
      "collectorType": "Other",
      "collectorConfig": null,
      "collectorPluginList": null,
      "datasource": "Prometheus",
      "privacy": "public",
      "createdAt": "2026-09-04T07:31:54.000Z",
      "updatedAt": "2026-10-28T05:32:01.000Z",
      "isEditor": false,
      "hasLogo": true,
      "reviewsCount": 0,
      "reviewsAvgRating": 0,
      "links": [
        {
          "rel": "self",
          "href": "/dashboards/25750"
        },
        {
          "rel": "revisions",
          "href": "/dashboards/25750/revisions"
        },
        {
          "rel": "revision",
          "href": "/dashboards/25750/revisions/3"
        },
        {
          "rel": "download",
          "href": "/dashboards/25750/revisions/3/download"
        },
        {
          "rel": "org",
          "href": "/orgs/microbunting2091"
        },
        {
          "rel": "images",
          "href": "/dashboards/25750/images"
        },
        {
          "rel": "thumbnails",
          "href": "/dashboards/25750/thumbnails"
        }
      ],
      "datasourceSlugs": [
        "prometheus"
      ]
    },
    {
      "id": 25967,
      "status": 1,
      "statusCode": "active",
      "orgId": 1899401,
      "orgSlug": "microbunting2091",
      "orgName": "microbunting2091",
      "slug": "mysql-multi-region-multi-instance-overview",
      "downloads": 13,
      "revisionId": 42329,
      "revision": 1,
      "name": "MySQL Multi-Region & Multi-Instance Overview",
      "description": "MySQL multi-region and multi-instance overview using Prometheus and mysqld_exporter. Regions are counted by distinct nonempty region labels. TPS represents explicit COMMIT+ROLLBACK statement rate. Replica IO/SQL columns select role names containing slave (case-insensitive). Missing metrics are unavailable. No alert rules or notification routes are installed. Target: MySQL 8.0.32 and 8.0.4x with matching exporter metrics.\r\n\r\n#Grafana version ：Grafana v12.0.1 (80658a73c5) \r\n#operating system ：Ubuntu 24.04.3 LTS",
      "readme": "# MySQL Multi-Region & Multi-Instance Overview\r\n\r\nA Grafana dashboard for comparing MySQL instances across regions in a single view, using Prometheus and mysqld_exporter.\r\n\r\n## What it shows\r\n\r\nThe overview combines a distinct region count with instance-level MySQL availability and threshold summaries. The instance table shows exporter reachability, MySQL connectivity, uptime, QPS, explicit commit/rollback TPS, connections, running threads, connection utilization, replica delay, replica thread status for selected replicas, and buffer pool size.\r\n\r\nTrend legends appear on the right and are sorted by the latest value in descending order. Filters support multiple regions, services, and instances. Additional MySQL diagnostic panels are grouped into expandable sections.\r\n\r\nThis is an operational overview, not a complete MGR health or failover assessment. The same region can contain standalone databases, replicas, and MGR members; the region label alone does not define a replication cluster.\r\n\r\n## Requirements\r\n\r\n- Prometheus data source configured in Grafana.\r\n- mysqld_exporter exposing the metrics listed below.\r\n- Target MySQL versions: 8.0.32 and 8.0.4x. Match exporter metrics in the actual deployment; this is not a certification of every exporter or MySQL patch version.\r\n- Grafana built-in Stat, Table, Time series, and Row panels. No third-party visualization plugin is required for the core overview.\r\n- The table depends on label-to-field conversion, merging, and field organization. Verify these transformations after importing into another Grafana version.\r\n\r\nThe development JSON carried Grafana panel metadata for version 12.0.1. Confirm the actual running Grafana and exporter versions before declaring a tested compatibility matrix. Older Grafana versions have not been verified. The English-language community export uses a generic Prometheus import input; legacy Query Cache panels have been removed for MySQL 8.0.\r\n\r\n## Required labels\r\n\r\n| Label | Meaning | Example |\r\n| --- | --- | --- |\r\n| `job` | Prometheus scrape job | `mysql-exporter` |\r\n| `region` | Logical monitoring region | `region-a` |\r\n| `role` | Human-readable instance/service name | `region-a-mysql-Slave` |\r\n| `instance` | Exporter endpoint or consistent instance identifier | `192.0.2.11:9104` |\r\n\r\nApply the same labels to the target's `up` series and the scraped MySQL metrics. The table's display identity combines region, role, and instance. If multiple jobs are available, select the intended MySQL job to avoid duplicate endpoint identities.\r\n\r\nThe `role` label is a display name, not a guaranteed MySQL primary/replica role. Only the replica IO/SQL status columns use the case-insensitive naming convention `.*slave.*`. Adapt that matcher if your environment uses names such as `replica` instead.\r\n\r\nSee `examples/prometheus.yml` for a minimal configuration with documentation-only addresses.\r\n\r\n## Exporter collectors\r\n\r\nThe overview uses `collect.global_status` and `collect.global_variables`. Replica information requires `collect.slave_status` and the appropriate database privileges. Additional diagnostic panels may require additional collectors, such as `collect.engine_innodb_status`.\r\n\r\nDo not copy an exporter startup command over an existing service without checking its current version and supported flags. Collector names and output must match the installed exporter.\r\n\r\n## Metric definitions\r\n\r\n| Display | Source / calculation | Interpretation |\r\n| --- | --- | --- |\r\n| Region count | Count distinct nonempty `region` values from selected `up` targets | A region counts once even if it contains multiple instances; no fixed expected total |\r\n| Exporter availability | `up` | Prometheus scrape success; does not by itself prove MySQL connectivity |\r\n| MySQL connectivity | `mysql_up`, interpreted with `up` | Whether the exporter can connect to MySQL; scrape failures also make the instance unavailable in the overview |\r\n| QPS | `rate(mysql_global_status_queries[window])` | Server Queries statement rate, not application requests |\r\n| TPS (COMMIT+ROLLBACK) | Sum of `rate(mysql_global_status_commands_total{command=~\"commit | rollback\"}[window])` per instance |\r\n| Connection utilization | `100 * threads_connected / max_connections` | Percentage of the configured connection limit |\r\n| Replica delay | `mysql_slave_status_seconds_behind_master` | Maximum reported channel delay per instance in the overview |\r\n| Replica IO / SQL | Minimum thread-running status across channels, only for names matching `slave` | 1 means all reported channels are running; 0 means at least one reported channel is stopped |\r\n| Buffer pool | `mysql_global_variables_innodb_buffer_pool_size` | Configured InnoDB buffer pool capacity |\r\n\r\nTPS does not fully cover autocommit, implicit commits, XA, or replica-applied transactions. It can include explicit commit/rollback statements that do no transaction work. It is not successful business-transaction throughput. Do not silently replace it with Handler counters and present the two definitions as equivalent.\r\n\r\nA missing metric is unavailable, not zero. Replica delay alone does not establish replication health; unknown/NULL values, missing channels, and unavailable collectors need separate inspection. Non-replica hosts are not faulty merely because replica-only columns are empty.\r\n\r\nRate calculations use Grafana's `$__rate_interval`; align the data source scrape interval with the actual Prometheus configuration. A short time range or insufficient samples can produce gaps.\r\n\r\n## Import\r\n\r\n1. Configure the Prometheus data source and confirm the exporter targets are present.\r\n2. Import the released Classic dashboard JSON into Grafana.\r\n3. Map the Prometheus data source when prompted, or select the documented data source variable if the released export uses one.\r\n4. Select the MySQL scrape job and set region/service/instance filters to All for the full overview.\r\n5. Check that the region total matches distinct region labels rather than instance count.\r\n6. Confirm a known replica's IO and SQL values against the database, then save the dashboard.\r\n\r\nThe deployment default refresh interval is 30 seconds. Data freshness also depends on scrape intervals and query execution. The dashboard does not install Prometheus alerting rules, Alertmanager configuration, or notification destinations.\r\n\r\n## Troubleshooting\r\n\r\n- **No data:** check the selected data source/job, labels, exporter collectors, scrape status, and Grafana query errors.\r\n- **TPS is missing:** confirm `mysql_global_status_commands_total` has `commit` and `rollback` command series and that metric relabeling has not removed them. Avoid substituting a guessed metric name.\r\n- **TPS is low with high QPS:** inspect the explicit-commit definition and autocommit workload before assuming lost traffic.\r\n- **Replica columns are empty:** check the `role` name matcher, collector availability, actual replication configuration, and exporter metric names.\r\n- **Repeated rows or a dataset selector under the table:** verify that the released query is an instant query and its results are merged before field organization.\r\n- **Unexpected region count:** inspect spelling/case of `region` labels and active filters. Region totals do not count unnamed targets.\r\n- **Legacy panels show no data on MySQL 8:** inspect their metric prerequisites; version-specific or removed features should be removed from the public export instead of advertised as supported.\r\n\r\n## References\r\n\r\n- [Grafana dashboard export and community publishing](https://grafana.com/docs/grafana/latest/visualizations/dashboards/share-dashboards-panels/)\r\n- [mysqld_exporter](https://github.com/prometheus/mysqld_exporter)\r\n- [Exporter global status metric mapping](https://github.com/prometheus/mysqld_exporter/blob/main/collector/global_status.go)\r\n- [MySQL 8.0 status variables](https://dev.mysql.com/doc/refman/8.0/en/server-status-variables.html)\r\n- [Prometheus query basics](https://prometheus.io/docs/prometheus/latest/querying/basics/)\r\n\r\nauthor: diagdba@gmail.com",
      "collectorType": "Other",
      "collectorConfig": null,
      "collectorPluginList": null,
      "datasource": "Prometheus",
      "privacy": "public",
      "createdAt": "2026-10-27T06:06:33.000Z",
      "updatedAt": "2026-10-28T05:31:10.000Z",
      "isEditor": false,
      "hasLogo": true,
      "reviewsCount": 0,
      "reviewsAvgRating": 0,
      "links": [
        {
          "rel": "self",
          "href": "/dashboards/25967"
        },
        {
          "rel": "revisions",
          "href": "/dashboards/25967/revisions"
        },
        {
          "rel": "revision",
          "href": "/dashboards/25967/revisions/1"
        },
        {
          "rel": "download",
          "href": "/dashboards/25967/revisions/1/download"
        },
        {
          "rel": "org",
          "href": "/orgs/microbunting2091"
        },
        {
          "rel": "images",
          "href": "/dashboards/25967/images"
        },
        {
          "rel": "thumbnails",
          "href": "/dashboards/25967/thumbnails"
        }
      ],
      "datasourceSlugs": [
        "prometheus"
      ]
    }
  ],
  "total": 2,
  "pages": 1,
  "pageSize": 1000000,
  "page": 1,
  "orderBy": "name",
  "direction": "asc",
  "links": [
    {
      "rel": "self",
      "href": "/dashboards"
    }
  ]
}