Skip to content

linar-jether/ajax-panel

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AJAX Panel for Grafana

The AJAX Panel can load external content into the dashboard. This is a more powerful and flexible solution than using an <iframe

Options

  • Method:

    GET or POST or iframe

  • URL:

    The URL to request

  • Parameters:

    The parameters that will be passed in the request. This is a javascript object with access to the variables:

    • ctrl The control object.

    Sample Parameters:

     {
      from:ctrl.range.from.format('x'),  // x is unix ms timestamp
      to:ctrl.range.to.format('x'), 
      height:ctrl.height
     }
    

Screenshots

Changelog

v0.0.3
  • Support template variables in url (@linar-jether)
  • Adding iframe method (@linar-jether)
v0.0.2
  • Quick and Dirty, but it works!

Roadmap... hopefully soon

  • Toggle the 'spinner' for panel
  • Get the panel width?
  • Error handling
  • avoid the 'Data source query result invalid, missing data field: undefined' error message

Wishlist... if you are looking for a project :)

  • Add authentication info to the sub-request?
  • Configure timer to refresh
  • Load CSS file?
  • configure javascript for display
  • why does the Time range > Override relative time not work?
  • Check that parameters have changed before sending a new request

About

Ajax Panel Plugin for Grafana

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 82.0%
  • HTML 16.3%
  • CSS 1.7%