Plugins 〉Mock
Mock
Grafana Mock datasource plugin
:warning: This datasource plugin is in beta. It is designed for validating various grafana compatibility issues. Don't use it in any production environments.
Grafana mock datasource plugin is an utility datasource plugin useful for grafana developers and grafana plugin developers. This plugin is used debug/simulate various scenarios related to plugins.
Develop locally
- Clone the repo
git clone https://github.com/grafana/mock-datasouce
andcd mock-datasource
- Install dependencies
yarn install
- Build the frontend
yarn build
or justyarn dev
to build without tests - Build the backend
mage -v
- Run the plugin locally
docker-compose up
orGR_VERSION=9.0.1 docker-compose up
to specify the version. - Watch frontend changes
yarn watch
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
.h4 . .mb-0 }
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Grafana Cloud Free
- Free tier: Limited to 3 users
- Paid plans: $55 / user / month above included usage
- Access to all Enterprise Plugins
- Fully managed service (not available to self-manage)
Self-hosted Grafana Enterprise
- Access to all Enterprise plugins
- All Grafana Enterprise features
- Self-manage on your own infrastructure
Installing Mock on Grafana Cloud:
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
Installing plugins on a Grafana Cloud instance is a one-click install; same with updates. Cool, right?
Note that it could take up to 1 minute to see the plugin show up in your Grafana.
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 Data Source
Use the grafana-cli tool to install Mock 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.
Alternatively, you can manually download the .zip file for your architecture below and unpack it into your grafana plugins directory.
Alternatively, you can manually download the .zip file and unpack it into your grafana plugins directory.
2. Configure the Data Source
Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.
Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.
To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.
Changelog
v0.1.9 - 2024-09-18
- ⚙️ Chore: Updated dependencies
v0.1.8 - 2024-09-12
- ⚙️ Chore: Updated dependencies
v0.1.7 - 2024-03-06
- ⚙️ Chore: Updated golang version to 1.22.1
- ⚙️ Chore: Updated plugin SDK to v0.212.0 from v0.162.0
- ⚙️ Chore: Updated backend dependencies
- ⚙️ Chore: Updated frontend dependencies
- ⚙️ Chore: Updated create-plugin configuration
yarn create @grafana/plugin update
v0.1.6 - 2023-12-20
- ⚙️ Chore: Updated frontend dependencies
v0.1.5 - 2023-06-02
- ⚙️ Chore: adding distributed tracing support
- ⚙️ Chore: Updated grafana plugin SDK from
v0.159.0
tov0.162.0
v0.1.4 - 2023-04-19
- ⚙️ Chore: Backend binaries are now compiled with
golang:1.20.3
which contain security fixes - ⚙️ Chore: Backend grafana SDK dependencies are updated
v0.1.3 - 2023-04-19
- 🚀 Feature: Added support for typeVersion property in frame meta
- ⚙️ Chore: Grafana plugin SDK updated to v0.148.0
- ⚙️ Chore: Backend compiled with latest go version 1.19.5
- ⚙️ Chore: Migrated build process from @grafana/toolkit to @grafana/create-plugin
v0.1.2 - 2022-12-13
- ⚙️ Chore: Backend compiled with latest go version 1.19.4
- ⚙️ Chore: Grafana plugin SDK updated to v0.145.0
v0.1.1 - 2022-11-11
- 🚀 Feature: Raw frame editor now supports custom status codes and error messages
- 🚀 Feature: Enabled annotations editor
- ⚙️ Chore: Backend compiled with latest go version 1.19.3
- ⚙️ Chore: Grafana plugin SDK updated to v0.142.0
v0.1.0 - 2022-10-20
- Initial version