Plugins 〉AJAX


Developer

Ryan McKinley

Sign up to receive occasional product news and updates:


Grafana Cloud
Grafana Cloud
  • Grafana, of course
  • 10k series Prometheus metrics
  • 50 GB logs
  • 50 GB traces
  • 2,232 app o11y host hours
  • ...and more
Create free account

No credit card needed, ever.


The AJAX plugin has been deprecated and is no longer maintained.

Panel
community

AJAX

  • Overview
  • Installation
  • Change log
  • Related content

AJAX Panel for Grafana

The AJAX Panel is a general way to load external content into a grafana dashboard.

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.

Screenshots

Screenshot Options Examples

Installing AJAX on Grafana Cloud:

For more information, visit the docs on plugin installation.

Installing on a local Grafana:

For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.

1. Install the Panel

Use the grafana-cli tool to install AJAX from the commandline:

grafana-cli plugins install 

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.

2. Add the Panel to a Dashboard

Installed panels are available immediately in the Dashboards section in your Grafana main menu, and can be added like any other core panel in Grafana.

To see a list of installed panels, click the Plugins item in the main menu. Both core panels and installed panels will appear.

Change Log

All notable changes to this project will be documented in this file.

v0.1.0
  • Comipled and with grafana 7+,
  • image support requires 7.4+
v0.0.7
  • building with @grafana/toolkit
  • Tested with Grafana 6.3
  • fix height issue with iframes
v0.0.6
  • Support requests to /api (grafana internal API)
  • Adding circleci build
  • removing dist from master build (only add it on release branches)
  • Support empty text response (#9)
  • webpack build
  • Show query results
  • tested with grafana 6
v0.0.5
  • Support angular templates using AJAX response
  • Options to display as: HTML, Text, JSON, or preformatted text
  • Fixed display issue with 5.1
  • Support direct link rendered image
  • Show possible variables in editor
v0.0.4
  • Support template variables in parameters (@linar-jether)
  • Improved error handling
  • Move ajax requests to 'issueQueries' block rather than refresh
  • Show loading spinner
  • Convert to TypeScript
  • Use datasources for complex authentication
  • Support loading images
  • Support header configuration
  • Support showing time info
  • Include various sample configurations
v0.0.3
  • Support template variables in url (@linar-jether)
  • Adding iframe method (@linar-jether)
v0.0.2
  • Quick and Dirty, but it works!