hitec-rthill / grafana-button-panel

Grafana Button Control Panel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Grafana Button Control Panel

CircleCI David Dependency Status David Dev Dependency Status Known Vulnerabilities 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.

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

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.

About

Grafana Button Control Panel

License:Apache License 2.0


Languages

Language:TypeScript 96.5%Language:JavaScript 3.5%