a87e7da961
MySQL documentation major improvements (#107690)
* added keywords and fixed description
* Update (dateColumn) description
* Mount docs from the current repository
* Clean up variables
* Improve timeFilter and timeGroup macro description
* Fix timefilter macro example formatting
* Fix time macro example formatting
* Remove extra spaces from timefilter macro example
* Introduce new table and Add examples for time, timeFilter and timeGroup Macros
* Improve existing examples of timeGroupAlias Macro
* Remove data frame description
* fixed the homepage with valid links
* Add Table Panel results for Macros
* fixed and define the configuration part for grafana mysql user
* fixed port typo
* remove the sqlDatasourceDatabaseSelection based https://github.com/grafana/grafana/issues/105232
* added annotation single tag example
* Change format type
* fix minor typos and run prettier
* Address Macros specific changes
* Revert column name and replace URL with version substitution
* re-added the text for the feature flag
* revert back the changes for the grafana mysql usage
* fixed links as per writers toolkit guide
* run prettier
* Update docs/sources/datasources/mysql/query-editor/_index.md
thanks
---------
(cherry picked from commit f7f8a52bda)
Signed-off-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Signed-off-by: Usman Ahmad <usman.ahmad@grafana.com>
Co-authored-by: Usman Ahmad <usman.ahmad@grafana.com>
Co-authored-by: Sheikh-Abubaker <sheikhabubaker761@gmail.com>
Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
69 lines
2.6 KiB
Markdown
69 lines
2.6 KiB
Markdown
---
|
|
aliases:
|
|
- ../data-sources/mysql/
|
|
- ../features/datasources/mysql/
|
|
description: Introduction to the MySQL data source in Grafana
|
|
keywords:
|
|
- grafana
|
|
- mysql
|
|
- data source
|
|
- guide
|
|
labels:
|
|
products:
|
|
- cloud
|
|
- enterprise
|
|
- oss
|
|
menuTitle: MySQL
|
|
title: MySQL data source
|
|
weight: 1000
|
|
refs:
|
|
annotate-visualizations:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/dashboards/build-dashboards/annotate-visualizations/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana-cloud/visualizations/dashboards/build-dashboards/annotate-visualizations/
|
|
configure-mysql-data-source:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mysql/configuration/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mysql/configuration/
|
|
mysql-query-editor:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mysql/query-editor/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/datasources/mysql/query-editor/
|
|
alerting:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/alerting/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana-cloud/alerting-and-irm/alerting/
|
|
transformations:
|
|
- pattern: /docs/grafana/
|
|
destination: /docs/grafana/<GRAFANA_VERSION>/panels-visualizations/query-transform-data/transform-data/
|
|
- pattern: /docs/grafana-cloud/
|
|
destination: /docs/grafana-cloud/visualizations/panels-visualizations/query-transform-data/transform-data/
|
|
---
|
|
|
|
# MySQL data source
|
|
|
|
Grafana ships with a built-in MySQL data source plugin that allows you to query and visualize data from a MySQL-compatible database like [MariaDB](https://mariadb.org/) or [Percona Server](https://www.percona.com/). You don't need to install a plugin in order to add the MySQL data source to your Grafana instance.
|
|
|
|
Grafana offers several configuration options for this data source as well as a visual and code-based query editor.
|
|
|
|
## Get started with the MySQL data source
|
|
|
|
The following documents will help you get started with the MySQL data source in Grafana:
|
|
|
|
- [Configure the MySQL data source](ref:configure-mysql-data-source)
|
|
- [MySQL query editor](ref:mysql-query-editor)
|
|
|
|
Once you have configured the data source you can:
|
|
|
|
- Add [annotations](ref:annotate-visualizations)
|
|
- Set up [alerting](ref:alerting)
|
|
- Add [transformations](ref:transformations)
|
|
|
|
View a MySQL overview on Grafana Play:
|
|
|
|
{{< docs/play title="MySQL Overview" url="https://play.grafana.org/d/edyh1ib7db6rkb/mysql-overview" >}}
|