Plugins 〉Button Panel


Developer

Speak Your Code

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.


Panel
community

Button Panel

  • Overview
  • Installation
  • Change log
  • Related content

Grafana Button Control Panel

CI Grafana Compatibility Maintainability Test Coverage

This panel allows you to create buttons and define actions for them. It can be used to add control functionality to your dashboards. Actions are defined as queries to Datasources.

drawing

Multiple buttons are allowed within a single panel, they can be arranged either horizontally or vertically.

Horizontal Vertical

The query field is a JSON object, that depends on each Datasource type. You can use Grafana's Query Inspector to find out what Grafana sends to each Datasource, and copy those into the query field.

Examples

Query field to delete InfluxDB database:

{
  "query": "drop database \"foo\"",
  "rawQuery": true,
  "resultFormat": "time_series"
}

Same example with PostgreSQL:

{
  "rawSql": "DROP DATABASE foo;",
  "format": "table"
}

refId, datasourceId are automatically sent, so you don't have to set them.

Installing Button Panel 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 Button Panel 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.

Changelog

0.3.0

  • Update to Grafana 9