azure-monitor-datasource icon indicating copy to clipboard operation
azure-monitor-datasource copied to clipboard

Unable to input any values for API Key under "Application Insights Details"

Open eblusolutionsjay opened this issue 5 years ago • 10 comments

Unable to type/paste anything into the input, thus not allowing users to create the data source.

eblusolutionsjay avatar Jan 30 '20 20:01 eblusolutionsjay

Same here

simonkaspersen avatar Feb 04 '20 07:02 simonkaspersen

Experiencing the same issue with v6.6.0

chrisheunis avatar Feb 04 '20 09:02 chrisheunis

Got the same issue here. I've digged through the sourcecode and found that the file partials/config.html (line 182) has a disabled="disabled" attribute set. Is this expected behaviour?

anton-kirschhock avatar Feb 06 '20 08:02 anton-kirschhock

Same issue here. I've also tried to directly manipulate the DOM tree to add the values manually, but no luck :( As a result, I can't run any queries against applications insight. A quick fix would be very much appreciated.

subesokun avatar Feb 06 '20 09:02 subesokun

I think this is the issue: ng-model="ctrl.current.secureJsonData.appInsightsApiKey"

The API-key model i bound to appInsightsApiKey, and I can't seem to find it bound up to any code. So it remains undefined whatever we write.

If my prediction that /src/partials/config.html is used and not dist/

simonkaspersen avatar Feb 06 '20 09:02 simonkaspersen

I've changed the files in the dist folder (removed the disabled property) and uploaded it to a 'other' plugin (appended -temp) to the plugin-id. Looks like it works with this change: image

anton-kirschhock avatar Feb 06 '20 09:02 anton-kirschhock

@muziekklas What did you change exactly (code)? I didn't want to build Grafana from source and just added the API key directly into the grafana.db but no luck... I still get a Metric request error when creating a new metric query via the Application Insights service.

subesokun avatar Feb 06 '20 15:02 subesokun

I've changed the source code of the plugin, as i've mentioned in my previous comment

On Thu, 6 Feb 2020, 16:12 subesokun, [email protected] wrote:

@muziekklas https://github.com/muziekklas What did you change exactly (code)? I didn't want to build Grafana from source and just added the API key directly into the grafana.db but no luck... I still get a Metric request error when creating a new metric query via the Application Insights service.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/grafana/azure-monitor-datasource/issues/121?email_source=notifications&email_token=ABDSPC4J4AWROZL2DUQBHJ3RBQSGZA5CNFSM4KN4EK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK7SB6I#issuecomment-582951161, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDSPC6563IETLUAHSFNX6TRBQSGZANCNFSM4KN4EK3Q .

anton-kirschhock avatar Feb 06 '20 15:02 anton-kirschhock

Sorry my fault, I was looking into the bundled Azure monitor plugin https://github.com/grafana/grafana/blob/master/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/InsightsConfig.tsx#L49

Seems like this issue exists also there :(

subesokun avatar Feb 06 '20 15:02 subesokun

Anyhow, the AngularJS version is fairly easy to fix. I havn't looked into the react one though

On Thu, 6 Feb 2020, 16:56 subesokun, [email protected] wrote:

Sorry my fault, I was looking into the bundled Azure monitor plugin https://github.com/grafana/grafana/blob/master/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/InsightsConfig.tsx#L49

Seems like this issue exists also there :(

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/grafana/azure-monitor-datasource/issues/121?email_source=notifications&email_token=ABDSPC5CR26Y5BON2SLHLS3RBQXMVA5CNFSM4KN4EK32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK7XK7A#issuecomment-582972796, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABDSPC2YIPXK3SKITUSVRMLRBQXMVANCNFSM4KN4EK3Q .

anton-kirschhock avatar Feb 06 '20 16:02 anton-kirschhock