From e3c0bc7f5cd30845d4ad1be674d62a5d792084d2 Mon Sep 17 00:00:00 2001 From: Isabel <76437239+imatwawana@users.noreply.github.com> Date: Thu, 31 Aug 2023 09:23:25 -0400 Subject: [PATCH] Docs: Fix 404s (#74138) * Fixed broken links * Replaced relref with doc ref * Replaced relrefs with doc refs * Removed trailing slash and fixed wording Co-authored-by: Jack Baldry --------- Co-authored-by: Jack Baldry --- docs/sources/datasources/_index.md | 2 +- .../google-cloud-monitoring/query-editor/index.md | 5 ++++- .../sources/datasources/influxdb/template-variables/index.md | 5 ++++- docs/sources/fundamentals/dashboards-overview/index.md | 3 +++ .../panels-visualizations/visualizations/traces/index.md | 2 +- 5 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/sources/datasources/_index.md b/docs/sources/datasources/_index.md index 85705c95b64..e4776a32057 100644 --- a/docs/sources/datasources/_index.md +++ b/docs/sources/datasources/_index.md @@ -52,7 +52,7 @@ For example, this video demonstrates the visual Prometheus query builder: {{< vimeo 720004179 >}} -For general information about querying in Grafana, and common options and user interface elements across all query editors, refer to [Query and transform data]({{< relref "../panels-visualizations/query-transform-data/" >}}). +For general information about querying in Grafana, and common options and user interface elements across all query editors, refer to [Query and transform data][query-transform-data] . ## Special data sources diff --git a/docs/sources/datasources/google-cloud-monitoring/query-editor/index.md b/docs/sources/datasources/google-cloud-monitoring/query-editor/index.md index f476cb5fc9a..05d482692eb 100644 --- a/docs/sources/datasources/google-cloud-monitoring/query-editor/index.md +++ b/docs/sources/datasources/google-cloud-monitoring/query-editor/index.md @@ -139,7 +139,7 @@ The default values for "cloud monitoring auto" are: The other automatic option is "grafana auto", which automatically sets the Group By time depending on the time range chosen and width of the time series panel. -For more information about "grafana auto", refer to [Interval variable]({{< relref "../../../dashboards/variables/add-template-variables/#add-an-interval-variable" >}}). +For more information about "grafana auto", refer to [Interval variable][add-template-variables-add-interval-variable]. You can also choose fixed time intervals to group by, like `1h` or `1d`. @@ -312,6 +312,9 @@ Example result: `monitoring.googleapis.com/uptime_check/http_status has this val | `{{resource.label.xxx}}` | Returns the resource label value. | `{{resource.label.zone}}` | `us-east1-b` | {{% docs/reference %}} +[add-template-variables-add-interval-variable]: "/docs/grafana/ -> /docs/grafana//dashboards/variables/add-template-variables#add-an-interval-variable" +[add-template-variables-add-interval-variable]: "/docs/grafana-cloud/ -> /docs/grafana//dashboards/variables/add-template-variables#add-an-interval-variable" + [annotate-visualizations]: "/docs/grafana/ -> /docs/grafana//dashboards/build-dashboards/annotate-visualizations" [annotate-visualizations]: "/docs/grafana-cloud/ -> /docs/grafana//dashboards/build-dashboards/annotate-visualizations" diff --git a/docs/sources/datasources/influxdb/template-variables/index.md b/docs/sources/datasources/influxdb/template-variables/index.md index 217b9398381..4395741f93c 100644 --- a/docs/sources/datasources/influxdb/template-variables/index.md +++ b/docs/sources/datasources/influxdb/template-variables/index.md @@ -43,7 +43,7 @@ SHOW TAG VALUES WITH KEY = "hostname" ### Chain or nest variables -You can also create nested variables, sometimes called [chained variables]({{< relref "../../../dashboards/variables/add-template-variables#chained-variables" >}}). +You can also create nested variables, sometimes called [chained variables][add-template-variables-chained-variables]. For example, if you had a variable called `region`, you could have the `hosts` variable show only hosts from the selected region with a query like: @@ -90,6 +90,9 @@ When you enable the **Multi-value** or **Include all value** options, Grafana co To view an example templated dashboard, refer to [InfluxDB Templated Dashboard](https://play.grafana.org/dashboard/db/influxdb-templated). {{% docs/reference %}} +[add-template-variables-chained-variables]: "/docs/grafana/ -> /docs/grafana//dashboards/variables/add-template-variables#chained-variables" +[add-template-variables-chained-variables]: "/docs/grafana-cloud/ -> /docs/grafana//dashboards/variables/add-template-variables#chained-variables" + [add-template-variables-add-ad-hoc-filters]: "/docs/grafana/ -> /docs/grafana//dashboards/variables/add-template-variables#add-ad-hoc-filters" [add-template-variables-add-ad-hoc-filters]: "/docs/grafana-cloud/ -> /docs/grafana//dashboards/variables/add-template-variables#add-ad-hoc-filters" diff --git a/docs/sources/fundamentals/dashboards-overview/index.md b/docs/sources/fundamentals/dashboards-overview/index.md index 4bcec23e965..acb8ad15569 100644 --- a/docs/sources/fundamentals/dashboards-overview/index.md +++ b/docs/sources/fundamentals/dashboards-overview/index.md @@ -95,6 +95,9 @@ And with the data source identified and the plugin installed, you can write your This component architecture is part of what makes Grafana so powerful and general. Given the data source plugin and data frame abstraction, any data source you can access can work with the same general approach. {{% docs/reference %}} +[create-plugin]: "/docs/grafana/ -> /docs/grafana//developers/plugins/introduction-to-plugin-development/data-frames" +[create-plugin]: "/docs/grafana-cloud/ -> /docs/grafana//developers/plugins/introduction-to-plugin-development/data-frames" + [data-frames]: "/docs/grafana/ -> /docs/grafana//developers/plugins/introduction-to-plugin-development/data-frames" [data-frames]: "/docs/grafana-cloud/ -> /docs/grafana//developers/plugins/introduction-to-plugin-development/data-frames" diff --git a/docs/sources/panels-visualizations/visualizations/traces/index.md b/docs/sources/panels-visualizations/visualizations/traces/index.md index 489ecb03f0c..ec1c4d58bb1 100644 --- a/docs/sources/panels-visualizations/visualizations/traces/index.md +++ b/docs/sources/panels-visualizations/visualizations/traces/index.md @@ -41,7 +41,7 @@ For more information about dashboard variables, refer to the [Variables document To use this procedure, you need: - A Grafana instance -- A Tempo data source connected to your Grafana instance (see [documentation](/docs/grafana/datasources/tempo/)) +- A Tempo data source connected to your Grafana instance (refer to [documentation]({{< relref "../../../datasources/tempo" >}})) ### Add the Traces panel query