Skip to main content

Data Manipulation plugin for Grafana

Mikhail Volkov
Founder at Volkov Labs, Grafana Champion

The Data Manipulation panel plugin evolved from a commercial project we were working on. This solution allowed you to import and update application data, as well as modify settings, straight from your Grafana dashboard.

The Grafana community had been looking for this solution, so one day we decided to make it open source and submitted it for evaluation to the Grafana team for inclusion into the Grafana Plugins catalog.

Data Manipulation panel is our brand-new Grafana plugin that our community was anticipating, and we are pretty confident that it will provide you with powerful capabilities to modify data in Grafana the way you want.

Manual data entry and user input into dashboard.

Architecture

The plugin's options allow you to specify the URL for the GET requests to receive initial values and the POST, PUT, or PATCH requests to update values sent in the JSON format. Header parameters can be added to secure your REST API calls.

Data Manipulation panel uses GET and POST/PUT requests to interact with API Server.
Data Manipulation panel uses GET and POST/PUT requests to interact with API Server.

The plugin supports dashboard variables in the URL and header parameters.

For example, http://localhost:3001/${var}, where ${var} is a dashboard variable.

Plugin's options enable specifying URL, header parameters, and custom code.
Plugin's options enable specifying URL, header parameters, and custom code.

JavaScript Code

You can add custom JavaScript code snippets that will be executed after the browser's various requests, e.g. GET, POST, PUT, and PATCH.

For example, we added the browser's location reload in the provided screenshot after a successful POST request.

The custom code has access to the following:

  • panel options
  • response from the REST API call
  • form elements
  • Grafana services
  • variables that are replaced automatically.

Check out our documentation for the available parameters.

Form Elements

The Data Manipulation Form plugin already supports the following form elements:

ElementDescription
Date and timeTime picker to set and adjust date and time.
DisabledDisplay values that can't be changed.
Number inputField to enter numbers with minimum and maximum options.
Number sliderSlider for numbers with minimum, maximum, and step options.
Password inputField to enter sensitive information.
Radio group with Boolean optionsSelect box with the True and False options.
Radio group with custom optionsProvide custom options.
Select box with custom optionsSimilar to a radio group visualized as a drop-down box.
String inputField to enter any alphanumeric values.
Text areaMultiline text area with an adjustable number of rows for comments and descriptions.
Form elements can be reordered and provide individual options.
Form elements can be reordered and provide individual options.

We plan to include the code editor and form elements for file and image upload in upcoming versions.

If you are interested in additional form elements, please open an issue in our repository.

Customization

The form provides the Submit and Reset buttons, which can be customized to use the following:

  • theme-specific sizes
  • types
  • icons
  • a flexible combination of background and foreground colors.
Submit and Reset buttons can be customized to use theme-specific types and icons.
Submit and Reset buttons can be customized to use theme-specific types and icons.

Form elements can be displayed in a single column or split into multiple columns, and each element can be assigned to a specific column. This feature will be available in the upcoming version. The current version allows splitting editable and disabled form elements only.

Feedback dashboard

Let's take a look at the example of using Data Manipulation panel to submit comments, issues, and feature requests integrated directly into the plugin.

Feedback dashboard with Data Manipulation panel and native Grafana visualizations.
Feedback dashboard with Data Manipulation panel and native Grafana visualizations.

For a seamless user experience, the feedback form allows you to provide us with valuable feedback about the plugin's functionality. All reported requests are stored in the database and sent out using various communication channels.

Always happy to hear from you

  Enroll in Business Suite Enterprise