grafana/public/app/plugins/datasource/mysql
Marcus Efraimsson f5654f88e2 mysql: fix precision for the time column in table/annotation query mode
Use the ConvertSqlTimeColumnToEpochMs function to convert any native
datetime data type or epoch time (millisecond precision).
Refactored mysql implementation to make it more similar to postgres
and mssql implementations.
Added $__timeEpoch macro function with same implementation as $__time.
Added possibility to use a time column named time in addition to
the currectly supported time_sec.
Additional tests and update of existing.
Added test dashboard.
2018-03-22 15:40:46 +01:00
..
img mysql: began work on backend macro engine 2017-04-19 10:10:08 +02:00
partials mysql: fix precision for the time column in table/annotation query mode 2018-03-22 15:40:46 +01:00
specs prettier: ran on all files again, sorry. now settings are defined in package.json 2017-12-21 08:39:31 +01:00
datasource.ts cleanup: removed unused typescript typings import 2018-01-04 10:12:02 +01:00
module.ts cleanup: removed unused typescript typings import 2018-01-04 10:12:02 +01:00
plugin.json plugins: update meta data for all core plugins 2018-02-15 16:50:38 +01:00
query_ctrl.ts cleanup: removed unused typescript typings import 2018-01-04 10:12:02 +01:00
README.md plugins: update meta data for all core plugins 2018-02-15 16:50:38 +01:00
response_parser.ts mysql: fix precision for the time column in table/annotation query mode 2018-03-22 15:40:46 +01:00

MySQL Data Source - Native Plugin

Grafana ships with a built-in MySQL data source plugin that allow you to query any visualize data from a MySQL compatible database.

Adding the data source

  1. Open the side menu by clicking the Grafana icon in the top header.
  2. In the side menu under the Dashboards link you should find a link named Data Sources.
  3. Click the + Add data source button in the top header.
  4. Select MySQL from the Type dropdown.

Read more about it here:

http://docs.grafana.org/features/datasources/mysql/