Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grafana Graph data not showing #16

Open
mcbrock1 opened this issue Sep 20, 2022 · 4 comments
Open

Grafana Graph data not showing #16

mcbrock1 opened this issue Sep 20, 2022 · 4 comments

Comments

@mcbrock1
Copy link

mcbrock1 commented Sep 20, 2022

I'm having an issue with Grafanimate not displaying my data in Grafana. The program runs and produces the animation and video, however, it does not display any data (it displays the panel titles, but not the graphs themselves). When I check the log, I see these errors. Do you have ideas on why this might be happening?

Note: My dashboard is password protected, but I inputted the login credentials in my code.

Log Errors:

1663598594466   Marionette  DEBUG   Waiting for initial application window
console.warn: SearchSettings: "get: No settings file exists, new profile?" (new NotFoundError("Could not open the file at /var/folders/g1/pdxb7rws781f2fvd86cqvbx40000gp/T/tmpo6ihc0y7.mozrunner/search.json.mozlz4", (void 0)))
console.error: Region.jsm: "Error fetching region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
console.error: Region.jsm: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.jsm", 420))
1663598595089   Marionette  DEBUG   1 <- [1,1,null,{"sessionId":"7d3ad611-aa7b-49bf-9d70-63b0e7330fe5","capabilities":{"browserName":"firefox","browserVersion":"104.0 ... ownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
1663598595091   Marionette  DEBUG   1 -> [0,2,"WebDriver:SetTimeouts",{"pageLoad":30000}]
1663598595091   Marionette  DEBUG   1 <- [1,2,null,{"value":null}]
1663598595092   Marionette  DEBUG   1 -> [0,3,"WebDriver:SetTimeouts",{"script":20000}]
1663598595092   Marionette  DEBUG   1 <- [1,3,null,{"value":null}]
1663598595096   Marionette  DEBUG   1 -> [0,4,"Marionette:GetContext",{}]
1663598595096   Marionette  DEBUG   1 <- [1,4,null,{"value":"content"}]
1663598595097   Marionette  DEBUG   1 -> [0,5,"Marionette:SetContext",{"value":"chrome"}]
1663598595097   Marionette  DEBUG   1 <- [1,5,null,{"value":null}]
1663598595104   Marionette  DEBUG   1 -> [0,6,"WebDriver:ExecuteScript",{"script":"Components.utils.import(\"resource://gre/modules/Preferences.jsm\");\n\n            ... Sandbox":true,"sandbox":"default","line":761,"filename":".venv/lib/python3.9/site-packages/marionette_driver/marionette.py"}]
1663598595111   Marionette  DEBUG   1 <- [1,6,null,{"value":null}]
1663598595113   Marionette  DEBUG   1 -> [0,7,"Marionette:SetContext",{"value":"content"}]
1663598595113   Marionette  DEBUG   1 <- [1,7,null,{"value":null}]
1663598595115   Marionette  DEBUG   1 -> [0,8,"WebDriver:Navigate",{"url”:”[“my_grafana_url}]
UNSUPPORTED (log once): POSSIBLE ISSUE: unit 1 GLD_TEXTURE_INDEX_2D is unloadable and bound to sampler type (Float) - using zero texture because texture unloadable
1663598595737   Marionette  DEBUG   1 <- [1,8,null,{"value":null}]
1663598595739   Marionette  DEBUG   1 -> [0,9,"WebDriver:FindElement",{"value":"grafana-app","using":"tag name"}]
1663598595744   Marionette  DEBUG   1 <- [1,9,null,{"value":{"element-6066-11e4-a52e-4f735466cecf":"f16c9061-b745-413b-8a82-9819d91acdcf"}}]
1663598596051   Marionette  DEBUG   1 -> [0,10,"WebDriver:ExecuteScript",{"script":"// http://stackoverflow.com/questions/5538972/console-log-apply-not-working-in-ie9 ... () == text.trim();\n    });\n};","args":[],"newSandbox":false,"sandbox":null,"line":153,"filename":"grafanimate/grafana.py"}]
1663598596052   Marionette  DEBUG   1 <- [1,10,null,{"value":null}]
1663598596054   Marionette  DEBUG   1 -> [0,11,"WebDriver:ExecuteScript",{"script":"// -*- coding: utf-8 -*-\n// (c) 2018-2021 Andreas Motl <[email protected] ... or().get(\"grafanaStudioSrv\");","args":[],"newSandbox":false,"sandbox":null,"line":153,"filename":"grafanimate/grafana.py"}]
1663598596057   Marionette  DEBUG   1 <- [1,11,null,{"value":null}]
1663598596058   Marionette  DEBUG   1 -> [0,12,"WebDriver:ExecuteScript",{"script":"return grafanaStudio.login([login_info]);”,”args":[],"newSandbox":false,"sandbox":null,"line":153,"filename":"grafanimate/grafana.py"}]
1663598596061   Marionette  DEBUG   1 <- [1,12,null,{"value":null}]
1663598596063   Marionette  DEBUG   1 -> [0,13,"WebDriver:ExecuteScript",{"script":"return console.info(\"Opening dashboard\");","args":[],"newSandbox":false,"sandbox":null,"line":153,"filename":"grafanimate/grafana.py"}]
1663598596065   Marionette  DEBUG   1 <- [1,13,null,{"value":null}]
1663598596065   Marionette  DEBUG   1 -> [0,14,"WebDriver:ExecuteScript",{"script":"return grafanaStudio.openDashboard(\”[dashboard_id]\”, {\”scenario\”: \”[scenario_name]\”, \" ...  \"use-panel-events\": false});","args":[],"newSandbox":false,"sandbox":null,"line":153,"filename":"grafanimate/grafana.py"}]
console.warn: LoginRecipes: "Falling back to a synchronous message for: [grafana_url]”

Ex of empty panels (screenshot from mp4 file):
Barometric Pressure

What panel should look like:
Screen Shot 2022-09-20 at 3 08 53 PM

@amotl
Copy link
Contributor

amotl commented Sep 20, 2022

Dear @mcbrock1,

thank you for writing in. Unfortunately, event handling is broken since Grafana 8 introduced React (#17). You may want to play with the --exposure-time option instead, added with 1f183d1. Please let us know if that helps, it would be a good chance to update the documentation correspondingly.

With kind regards,
Andreas.

@amotl
Copy link
Contributor

amotl commented Sep 20, 2022

Not sure about those. They probably do not matter much, if they are only warnings. Can't tell from the distance, though.

console.error: Region.jsm: "Error fetching region" (new TypeError("NetworkError when attempting to fetch resource.", ""))
console.error: Region.jsm: "Failed to fetch region" (new Error("NO_RESULT", "resource://gre/modules/Region.jsm", 420))

References

@mcbrock1
Copy link
Author

Thank you for reaching out so quickly! Unfortunately, the issue still occurs with all of the different exposure times I've tried (ranging from .1s - 30s). I was wondering if there might be another possible workaround solution or if you have any suggestions on how to fix the event handling in the code.

One thing I found was that the dashboard visuals show when I refresh the page, but then the program automatically crashes after that.

@amotl
Copy link
Contributor

amotl commented Apr 21, 2024

Hi. We are also having a discussion about synchronization / event handling matters with @intermittentnrg at GH-19. I am trying to integrate it back into this thread, to reduce fragmentation, if you agree with this idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants