---
title: "Button Panel plugin for Grafana"
description: "Grafana button control panel. Button Panel plugin for Grafana by speakyourcode. Available in Grafana Cloud and self-managed Grafana."
---

> This is the Markdown version of https://grafana.com/grafana/plugins/speakyourcode-button-panel/

# Button Panel

- Developer: speakyourcode
- Version: 0.3.2
- [Installation](https://grafana.com/grafana/plugins/speakyourcode-button-panel/installation.md)
- [Change log](https://grafana.com/grafana/plugins/speakyourcode-button-panel/changelog.md)

![Panel Options](https://grafana.com/api/plugins/speakyourcode-button-panel/versions/0.3.2/images/img/panel_options.png)

![Horizontal Orientation](https://grafana.com/api/plugins/speakyourcode-button-panel/versions/0.3.2/images/img/horizontal_orientation.png)

![Vertical Orientation](https://grafana.com/api/plugins/speakyourcode-button-panel/versions/0.3.2/images/img/vertical_orientation.png)

# Grafana Button Control Panel

[![CI](https://github.com/speakyourcode/grafana-button-panel/actions/workflows/ci.yml/badge.svg)](https://github.com/speakyourcode/grafana-button-panel/actions/workflows/ci.yml) [![Grafana Compatibility](https://github.com/speakyourcode/grafana-button-panel/actions/workflows/is-compatible.yml/badge.svg)](https://github.com/speakyourcode/grafana-button-panel/actions/workflows/is-compatible.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/3d8db85bc1cc2b95d314/maintainability)](https://codeclimate.com/github/speakyourcode/grafana-button-panel/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/3d8db85bc1cc2b95d314/test_coverage)](https://codeclimate.com/github/speakyourcode/grafana-button-panel/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](https://raw.githubusercontent.com/speakyourcode/grafana-button-panel/master/img/panel_options.png)

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

![Horizontal](https://raw.githubusercontent.com/speakyourcode/grafana-button-panel/master/img/horizontal_orientation.png) ![Vertical](https://raw.githubusercontent.com/speakyourcode/grafana-button-panel/master/img/vertical_orientation.png)

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:

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

Same example with PostgreSQL:

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

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