draios / grafana-sysdig-datasource

Sysdig datasource plugin for Grafana (https://grafana.com/)
Apache License 2.0
36 stars 13 forks source link

Add support for Grafana v7.0.1 #68

Closed hamaadmemon closed 4 years ago

hamaadmemon commented 4 years ago

We have been using the Sysdig Datasource plugin with Grafana v6 without any issues, we recently upgraded to Grafana v7.0.1 and are unable to build any graphs as there's no data.

The "test data source" works, but creating a graph with the same queries does not display anything.

davideschiera commented 4 years ago

Thanks @hamaadmemon for reporting this. I'll take a look at this as soon as possible.

davideschiera commented 4 years ago

@hamaadmemon I just tried Grafana v7.0.1 (ef5b586d7d) and it seems to be working fine. Could you please provide more information? If you open Devtools, can you share the failing HTTP requests (if any)?

Thanks!

hamaadmemon commented 4 years ago

@davideschiera - thanks for looking into this.

Clicked on "query inspector" and see this in DevTools console:

Failed to load resource: the server responded with a status of 404 (Not Found)
:3004/img/warn-tiny.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:3004/img/critical.svg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
:3004/img/background_tease.jpg:1 Failed to load resource: the server responded with a status of 404 (Not Found)
PanelQueryRunner.ts:182 PanelQueryRunner Error TypeError: Cannot read property 'defer' of undefined
    at Function.fetch (data_service.js:28)
    at SysdigDatasource.query (datasource.js:68)
    at runRequest.ts:153
    at E (runRequest.ts:103)
    at e.<anonymous> (PanelQueryRunner.ts:180)
    at c (runtime.js:45)
    at Generator._invoke (runtime.js:271)
    at Generator.forEach.e.<computed> [as next] (runtime.js:97)
    at b (app.7c9669f9d715261b5af3.js:2)
    at i (app.7c9669f9d715261b5af3.js:2)
bridge_srv.ts:78 store updating angular $location.url /d/g9DGL5iMk/nfr-sysdig?orgId=1&var-namespace=nfr-qa-env1
PanelQueryRunner.ts:182 PanelQueryRunner Error TypeError: Cannot read property 'defer' of undefined
    at Function.fetch (data_service.js:28)
    at SysdigDatasource.query (datasource.js:68)
    at runRequest.ts:153
    at E (runRequest.ts:103)
    at e.<anonymous> (PanelQueryRunner.ts:180)
    at c (runtime.js:45)
    at Generator._invoke (runtime.js:271)
    at Generator.forEach.e.<computed> [as next] (runtime.js:97)
    at b (app.7c9669f9d715261b5af3.js:2)
    at i (app.7c9669f9d715261b5af3.js:2)
bridge_srv.ts:78 store updating angular $location.url /d/g9DGL5iMk/nfr-sysdig?orgId=1&var-namespace=nfr-qa-env4
PanelQueryRunner.ts:182 PanelQueryRunner Error TypeError: Cannot read property 'defer' of undefined
    at Function.fetch (data_service.js:28)
    at SysdigDatasource.query (datasource.js:68)
    at runRequest.ts:153
    at E (runRequest.ts:103)
    at e.<anonymous> (PanelQueryRunner.ts:180)
    at c (runtime.js:45)
    at Generator._invoke (runtime.js:271)
    at Generator.forEach.e.<computed> [as next] (runtime.js:97)
    at b (app.7c9669f9d715261b5af3.js:2)
    at i (app.7c9669f9d715261b5af3.js:2)
6react-dom.production.min.js:52 Uncaught Error: Minified React error #188; visit https://reactjs.org/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at react-dom.production.min.js:52
    at ot (react-dom.production.min.js:53)
    at Object.findDOMNode (react-dom.production.min.js:286)
    at n.onOutsideClick (ClickOutsideWrapper.tsx:43)
PanelQueryRunner.ts:182 PanelQueryRunner Error TypeError: Cannot read property 'defer' of undefined
    at Function.fetch (data_service.js:28)
    at SysdigDatasource.query (datasource.js:68)
    at runRequest.ts:153
    at E (runRequest.ts:103)
    at e.<anonymous> (PanelQueryRunner.ts:180)
    at c (runtime.js:45)
    at Generator._invoke (runtime.js:271)
    at Generator.forEach.e.<computed> [as next] (runtime.js:97)
    at b (app.7c9669f9d715261b5af3.js:2)
    at i (app.7c9669f9d715261b5af3.js:2)
8react-dom.production.min.js:52 Uncaught Error: Minified React error #188; visit https://reactjs.org/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at react-dom.production.min.js:52
    at ot (react-dom.production.min.js:53)
    at Object.findDOMNode (react-dom.production.min.js:286)
    at n.onOutsideClick (ClickOutsideWrapper.tsx:43)
bridge_srv.ts:78 store updating angular $location.url /d/g9DGL5iMk/nfr-sysdig?editPanel=2&orgId=1&var-namespace=nfr-qa-env1
PanelQueryRunner.ts:182 PanelQueryRunner Error TypeError: Cannot read property 'defer' of undefined
    at Function.fetch (data_service.js:28)
    at SysdigDatasource.query (datasource.js:68)
    at runRequest.ts:153
    at E (runRequest.ts:103)
    at e.<anonymous> (PanelQueryRunner.ts:180)
    at c (runtime.js:45)
    at Generator._invoke (runtime.js:271)
    at Generator.forEach.e.<computed> [as next] (runtime.js:97)
    at b (app.7c9669f9d715261b5af3.js:2)
    at i (app.7c9669f9d715261b5af3.js:2)
bridge_srv.ts:78 store updating angular $location.url /d/g9DGL5iMk/nfr-sysdig?inspect=23763571993&inspectTab=query&editPanel=2&orgId=1&var-namespace=nfr-qa-env1
PanelQueryRunner.ts:182 PanelQueryRunner Error TypeError: Cannot read property 'defer' of undefined
    at Function.fetch (data_service.js:28)
    at SysdigDatasource.query (datasource.js:68)
    at runRequest.ts:153
    at E (runRequest.ts:103)
    at e.<anonymous> (PanelQueryRunner.ts:180)
    at c (runtime.js:45)
    at Generator._invoke (runtime.js:271)
    at Generator.forEach.e.<computed> [as next] (runtime.js:97)
    at b (app.7c9669f9d715261b5af3.js:2)
    at i (app.7c9669f9d715261b5af3.js:2)
6react-dom.production.min.js:52 Uncaught Error: Minified React error #188; visit https://reactjs.org/docs/error-decoder.html?invariant=188 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at react-dom.production.min.js:52
    at ot (react-dom.production.min.js:53)
    at Object.findDOMNode (react-dom.production.min.js:286)
    at n.onOutsideClick (ClickOutsideWrapper.tsx:43)
DevTools failed to load SourceMap: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.preload.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
DevTools failed to load SourceMap: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/include.postload.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
davideschiera commented 4 years ago

What version of the Sysdig datasource are you using?

hamaadmemon commented 4 years ago

@davideschiera - my apologies, I thought I was using 0.7 but double checked the UI and it seemed to still be pointing to the older 0.5.1. I looked into it and seems there was an issue on my end with mounting the volumes for the Docker container. I've mounted it correctly and can see the graphs as expected.