# prometheus/mysqld_exporter

Exporter for MySQL server metrics

Repository: https://github.com/prometheus/mysqld_exporter
Canonical: https://ross.abutalabs.com/products/mysqld_exporter
Homepage: http://prometheus.io/
Language: Go
License: Apache-2.0
License Family: permissive
Last push: 2026-08-18T18:20:18+00:00

## Health v2 (maintenance only)
Score: 90/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 73, longevity 100
- inputs: {"age_days": 4192, "days_push": 15, "days_rel": 20, "gap_med": 126.5, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2460, forks 811 (observed 2026-08-28T04:06:53.410106+00:00)

## What it is
An official Prometheus exporter that scrapes MySQL and MariaDB server metrics and exposes them in Prometheus format over HTTP. It supports single-instance and multi-target probing modes with configurable authentication modules.

## Use cases
- monitor mysql server metrics with prometheus
- export mariadb performance metrics to prometheus
- scrape mysql connection and query statistics
- monitor multiple mysql instances from one exporter
- set up alerting on mysql slow queries and replication lag

## When to choose
- you run Prometheus and need MySQL/MariaDB metrics
- you want an official, maintained exporter with multi-target support
- you monitor MySQL >= 5.6 or MariaDB >= 10.3

## When to avoid
- you don't use Prometheus or a Prometheus-compatible monitoring stack
- you need metrics from other databases like PostgreSQL or MongoDB
- you run very old MySQL versions below 5.6

## Facets
- artifact type: service
- maturity: active
- function: monitoring
- domain: databases, monitoring
- platform: cross-platform, go
- tags: prometheus-exporter, mysql, mariadb, database-monitoring, multi-target, metrics-exporter, devops, linux, docker

## Member repositories
- prometheus/mysqld_exporter (main) score 90

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:53.410106+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:29:20.380169+00:00, confidence not recorded.
  - readme: https://github.com/prometheus/mysqld_exporter (fetched 2026-08-28T04:06:53.410106+00:00, sha 666339c8f997)
  - homepage: http://prometheus.io/ (fetched 2026-08-29T10:11:07.252484+00:00, sha c9917089156f)
  - site_page: https://prometheus.io/docs/introduction/overview (fetched 2026-08-29T10:11:07.254978+00:00, sha 7768d893cf39)
  - site_page: https://prometheus.io/docs/prometheus/latest/getting_started (fetched 2026-08-29T10:11:07.257175+00:00, sha 1e2a0ce5ca59)
  - site_page: https://prometheus.io/docs/concepts/data_model (fetched 2026-08-29T10:11:07.259207+00:00, sha a377e9a58b18)
  - site_page: https://prometheus.io/docs/prometheus/latest/querying/basics (fetched 2026-08-29T10:11:07.261156+00:00, sha cab4a7880e82)
  - site_page: https://prometheus.io/docs/alerting/latest/overview (fetched 2026-08-29T10:11:07.271035+00:00, sha a05282aeaa43)
  - site_page: https://prometheus.io/docs/prometheus/latest/configuration/configuration (fetched 2026-08-29T10:11:07.273329+00:00, sha eef957bb70ac)
  - site_page: https://prometheus.io/docs/instrumenting/clientlibs (fetched 2026-08-29T10:11:07.278050+00:00, sha e814512fea70)
  - site_page: https://prometheus.io/docs/instrumenting/exporters (fetched 2026-08-29T10:11:07.279568+00:00, sha 16800ed839dd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
