CorpGlory / grafana-data-exporter-panel

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

Grafana 7: Exporter panel doesn't see datasource #40 #43

Closed sblrok closed 3 years ago

sblrok commented 3 years ago

This PR fixes #40

Probem:

We don`t see default datasource in the exporter panel

Solution:

Send an additional request to get all datasources and find one with the isDefault = true

Changes:

Added _getDefaultDatasource functon Changaed _getGrafanaAPIInfo function

rozetko commented 3 years ago

btw, it fixes https://github.com/CorpGlory/grafana-data-exporter-panel/issues/39, not #40 :)

rozetko commented 3 years ago

will be recreated