Chore: Update TestData README (#77607)

Co-authored-by: Joseph Perez <45749060+josmperez@users.noreply.github.com>
This commit is contained in:
Andres Martinez Gotor
2023-11-09 10:03:00 +01:00
committed by GitHub
parent 22035565d2
commit f7361a2755
6 changed files with 35 additions and 4 deletions

View File

@@ -114,3 +114,28 @@ That makes it much easier for the developers to replicate and solve your issue.
[panels-visualizations]: "/docs/grafana/ -> /docs/grafana/<GRAFANA VERSION>/panels-visualizations"
[panels-visualizations]: "/docs/grafana-cloud/ -> /docs/grafana/<GRAFANA VERSION>/panels-visualizations"
{{% /docs/reference %}}
## Use a custom version of TestData
{{% admonition type="note" %}}
This feature is experimental and requires Grafana version 10.3.0 or later.
{{% /admonition %}}
If you want to use a version of TestData different from the one shipped with Grafana, follow these steps:
1. Enable the [feature toggle](https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/feature-toggles/) `externalCorePlugins`.
1. Set the configuration field `as_external` for the plugin to `true`. An example configuration would be:
```ini
[feature_toggles]
externalCorePlugins = true
[plugin.grafana-testdata-datasource]
as_external = true
```
1. Restart Grafana.
These settings, if enabled, allow you to to install TestData as an external plugin and manage its lifecycle independently of Grafana.
With the feature toggle disabled (default) TestData can still be installed as an external plugin, but it has no effect as the bundled, Core version of TestData is already installed and takes precedence.

View File

@@ -166,7 +166,7 @@
"grafanaDependency": {
"type": "string",
"description": "Required Grafana version for this plugin. Validated using https://github.com/npm/node-semver.",
"pattern": "^(<=|>=|<|>|=|~|\\^)?([0-9]+)(\\.[0-9x\\*]+)(\\.[0-9x\\*]+)?(\\s(<=|>=|<|=>)?([0-9]+)(\\.[0-9x]+)(\\.[0-9x]+))?$"
"pattern": "^(<=|>=|<|>|=|~|\\^)?([0-9]+)(\\.[0-9x\\*]+)(\\.[0-9x\\*]+)?(\\s(<=|>=|<|=>)?([0-9]+)(\\.[0-9x]+)(\\.[0-9x]+))?(\\-[0-9]+)?$"
},
"plugins": {
"type": "array",