CorpGlory / grafana-data-exporter-panel

Panel for exporting metrics from Grafana dashboards
32 stars 8 forks source link

MySQL / PostgreSQL support #33 #34

Closed amper43 closed 4 years ago

amper43 commented 4 years ago

Problem

NoSQL datasources have id field in their config.url field. SQL datasources don't have id field in config.url. All SQL queries are processed at /api/tsdb endpoint so datasource ID can be found only in response.

Solution

In ds-request-response event callback we get datasource ID from config.data.queries field if it exists, otherwise ID is taken from config.url.

fixes #33 fixes #32

Changes