Grafana Dashboard Validation Automation

What are our options for UAT and Prod testing of Dashboard deployments? Currently trying to use Selenium and Python. Does anyone in the Grafana community utilize automated validation testing of dashboards? If yes, what tools are you using?

  • What Grafana version and what operating system are you using?
    10

  • What are you trying to achieve?
    Would like to automate the validation of changes made to dashboards.

  • How are you trying to achieve it?
    Python, Selenium

  • What happened?
    Achieving mixed results

  • What did you expect to happen?
    Thought we’d be able to capture all elements.

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

Hi croot, I am also trying to achieve the same, Below are my details.

  • What Grafana version and what operating system are you using?
    Grafana v10.2.2 (161e3ca), Windows 2016
  • What are you trying to achieve?
    Would like to automate the validation of changes made to dashboards.
    Automating the testing of reports in grafana dashboards.
    Automating the testing of panels and reports populated out of data from Backend datasource.
    Automating the testing of reports in different types of panel like Piechart, Stat, Graph(Line,Bar), Timeseries, Table, Heatmap, Gauge, Status History etc…
  • How are you trying to achieve it?
    Robot Framework, Selenium
  • What happened?
    Achieving mixed results unstable, Also Whenever grafana is getting upgraded we need to rework on the complete automation. As our automation is based on xPath locator.
    However there are few headers where data-testid is there, but its not available for all the elements. Hence looking for a solution which will not have impact across grafana upgrades.
  • What did you expect to happen?
    Thought we’d be able to capture all elements.
    Yes want to capture all elements through a generic way which wont have any impact across grafana upgrades. Automation rework should not be required across upgrades of grafana.
  • Can you copy/paste the configuration(s) that you are having problems with?
    Can you please share me the challenges which you have faced while doing automation of Grafana Dashboards.
    If you have a correct approach or any other tools of scripts to test this please share.
  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
  • Did you follow any online instructions? If so, what is the URL?

Thanks & Regards
Velann