Skip to content

Commit

Permalink
TestData: Remove references to TestData "DB" (#62603)
Browse files Browse the repository at this point in the history
* remove refs testdatadb

* fix trailing semi-colon

* remove pluginName completely
  • Loading branch information
wbrowne authored Jan 31, 2023
1 parent c0f0c3d commit e7bfc4e
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"label": "gdev-testdata",
"description": "",
"type": "datasource",
"pluginId": "testdata",
"pluginName": "TestData DB"
"pluginId": "testdata"
}
],
"__requires": [
Expand All @@ -19,7 +18,7 @@
{
"type": "datasource",
"id": "testdata",
"name": "TestData DB",
"name": "TestData",
"version": "1.0.0"
},
{
Expand Down
16 changes: 8 additions & 8 deletions docs/sources/datasources/testdata/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ keywords:
- troubleshooting
- panels
- testdata
menuTitle: TestData DB
title: TestData DB data source
menuTitle: TestData
title: TestData data source
weight: 1500
---

# TestData DB data source
# TestData data source

Grafana ships with a TestData DB data source, which creates simulated time series data for any [panel]({{< relref "../../panels-visualizations/" >}}).
Grafana ships with a TestData data source, which creates simulated time series data for any [panel]({{< relref "../../panels-visualizations/" >}}).
You can use it to build your own fake and random time series data and render it in any panel, which helps you verify dashboard functionality since you can safely and easily share the data.

For instructions on how to add a data source to Grafana, refer to the [administration documentation]({{< relref "../../administration/data-source-management/" >}}).
Expand All @@ -28,7 +28,7 @@ Only users with the organization administrator role can add data sources.

1. Hover the cursor over the **Configuration** (gear) icon.
1. Select **Data Sources**.
1. Select the TestData DB data source.
1. Select the TestData data source.

The data source doesn't provide any settings beyond the most basic options common to all data sources:

Expand All @@ -41,11 +41,11 @@ The data source doesn't provide any settings beyond the most basic options commo

{{< figure src="/static/img/docs/v41/test_data_add.png" class="docs-image--no-shadow" caption="Adding test data" >}}

Once you've added the TestData DB data source, your Grafana instance's users can use it as a data source in any metric panel.
Once you've added the TestData data source, your Grafana instance's users can use it as a data source in any metric panel.

### Choose a scenario

Instead of providing a query editor, the TestData DB data source helps you select a **Scenario** that generates simulated data for panels.
Instead of providing a query editor, the TestData data source helps you select a **Scenario** that generates simulated data for panels.

You can assign an **Alias** to each scenario, and many have their own options that appear when selected.

Expand Down Expand Up @@ -81,7 +81,7 @@ You can assign an **Alias** to each scenario, and many have their own options th

## Import a pre-configured dashboard

TestData DB also provides an example dashboard.
TestData also provides an example dashboard.

**To import the example dashboard:**

Expand Down
2 changes: 1 addition & 1 deletion docs/sources/tutorials/build-a-panel-plugin/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ Now, when you change the color in the panel editor, the fill color of the circle

Most panels visualize dynamic data from a Grafana data source. In this step, you'll create one circle per series, each with a radius equal to the last value in the series.

> To use data from queries in your panel, you need to set up a data source. If you don't have one available, you can use the [TestData DB](/docs/grafana/latest/features/datasources/testdata) data source while developing.
> To use data from queries in your panel, you need to set up a data source. If you don't have one available, you can use the [TestData](/docs/grafana/latest/features/datasources/testdata) data source while developing.
The results from a data source query within your panel are available in the `data` property inside your panel component.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Each data source provisioning config file contains a _manifest_ that specifies t

At startup, Grafana loads the configuration files and provisions the data sources listed in the manifests.

Let's configure a [TestData DB](/docs/grafana/latest/features/datasources/testdata/) data source that you can use for your dashboards.
Let's configure a [TestData](/docs/grafana/latest/features/datasources/testdata/) data source that you can use for your dashboards.

#### Create a data source manifest

Expand All @@ -84,12 +84,12 @@ Let's configure a [TestData DB](/docs/grafana/latest/features/datasources/testda
apiVersion: 1

datasources:
- name: TestData DB
- name: TestData
type: testdata
```
1. Restart Grafana to load the new changes.
1. In the sidebar, hover the cursor over the **Configuration** (gear) icon and click **Data Sources**. The TestData DB appears in the list of data sources.
1. In the sidebar, hover the cursor over the **Configuration** (gear) icon and click **Data Sources**. TestData appears in the list of data sources.
> The configuration options can vary between different types of data sources. For more information on how to configure a specific data source, refer to [Data sources](/docs/grafana/latest/administration/provisioning/#datasources).
Expand Down Expand Up @@ -146,7 +146,7 @@ For more information on how to configure dashboard providers, refer to [Dashboar
"bars": false,
"dashLength": 10,
"dashes": false,
"datasource": "TestData DB",
"datasource": "TestData",
"fill": 1,
"gridPos": {
"h": 8,
Expand Down
1 change: 0 additions & 1 deletion pkg/kindsys/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ var irregularPluginNames = map[string]string{
"azuremonitor": "grafana-azure-monitor-datasource",
"microsoftsqlserver": "mssql",
"postgresql": "postgres",
"testdatadb": "testdata",
}

func buildComposableLinks(pp plugindef.PluginDef, cp kindsys.ComposableProperties) KindLinks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export function EditDataSourceView({
if (pageId) {
return (
<DataSourcePluginContextProvider instanceSettings={dsi}>
<DataSourcePluginConfigPage pageId={pageId} plugin={plugin} />;
<DataSourcePluginConfigPage pageId={pageId} plugin={plugin} />
</DataSourcePluginContextProvider>
);
}
Expand Down
14 changes: 7 additions & 7 deletions public/app/features/variables/inspect/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1490,8 +1490,8 @@ const dashWithTemplateDependenciesAndPanels: any = {
{
current: {
selected: false,
text: 'TestData DB',
value: 'TestData DB',
text: 'TestData',
value: 'TestData',
},
description: null,
error: null,
Expand Down Expand Up @@ -1624,8 +1624,8 @@ const dashWithTemplateDependenciesAndPanels: any = {
allValue: null,
current: {
selected: true,
text: 'TestData DB',
value: 'TestData DB',
text: 'TestData',
value: 'TestData',
},
description: null,
error: null,
Expand All @@ -1637,16 +1637,16 @@ const dashWithTemplateDependenciesAndPanels: any = {
options: [
{
selected: true,
text: 'TestData DB',
value: 'TestData DB',
text: 'TestData',
value: 'TestData',
},
{
selected: false,
text: 'gdev-testdata',
value: 'gdev-testdata',
},
],
query: 'TestData DB, gdev-testdata',
query: 'TestData, gdev-testdata',
queryValue: '',
skipUrlSync: false,
type: 'custom',
Expand Down
11 changes: 5 additions & 6 deletions public/app/plugins/datasource/testdata/dashboards/streaming.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"__inputs": [
{
"name": "DS_TESTDATA_DB",
"label": "TestData DB",
"name": "DS_TESTDATA",
"label": "TestData",
"description": "",
"type": "datasource",
"pluginId": "testdata",
"pluginName": "TestData DB"
"pluginId": "testdata"
}
],
"__requires": [
Expand All @@ -31,7 +30,7 @@
{
"type": "datasource",
"id": "testdata",
"name": "TestData DB",
"name": "TestData",
"version": "1.0.0"
}
],
Expand Down Expand Up @@ -146,7 +145,7 @@
}
},
{
"datasource": "${DS_TESTDATA_DB}",
"datasource": "${DS_TESTDATA}",
"description": "",
"gridPos": {
"h": 6,
Expand Down

0 comments on commit e7bfc4e

Please sign in to comment.