mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: Basics docs refactor (#56905)
* renames directory * fixes relrefs
This commit is contained in:
parent
c137cf60f0
commit
385079bea7
@ -55,15 +55,15 @@ title: Grafana documentation
|
||||
<h4>Getting started</h4>
|
||||
<p>Learn the basics of using Grafana.</p>
|
||||
</a>
|
||||
<a href="{{< relref "basics/" >}}" class="nav-cards__item nav-cards__item--guide">
|
||||
<h4>Grafana basics</h4>
|
||||
<a href="{{< relref "fundamentals/" >}}" class="nav-cards__item nav-cards__item--guide">
|
||||
<h4>Grafana fundamentals</h4>
|
||||
<p>Learn basic observability.</p>
|
||||
</a>
|
||||
<a href="{{< relref "setup-grafana/configure-grafana/" >}}" class="nav-cards__item nav-cards__item--guide">
|
||||
<h4>Configure Grafana</h4>
|
||||
<p>Review the configuration and setup options.</p>
|
||||
</a>
|
||||
<a href="{{< relref "basics/timeseries/" >}}" class="nav-cards__item nav-cards__item--guide">
|
||||
<a href="{{< relref "fundamentals/timeseries/" >}}" class="nav-cards__item nav-cards__item--guide">
|
||||
<h4>Intro to time series</h4>
|
||||
<p>Learn about time series data.</p>
|
||||
</a>
|
||||
|
@ -1,30 +0,0 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/basics/exemplars/
|
||||
description: Exemplars
|
||||
keywords:
|
||||
- grafana
|
||||
- concepts
|
||||
- exemplars
|
||||
- prometheus
|
||||
title: Exemplars
|
||||
weight: 400
|
||||
---
|
||||
|
||||
# Introduction to exemplars
|
||||
|
||||
An exemplar is a specific trace representative of measurement taken in a given time interval. While metrics excel at giving you an aggregated view of your system, traces give you a fine grained view of a single request; exemplars are a way to link the two.
|
||||
|
||||
Suppose your company website is experiencing a surge in traffic volumes. While more than eighty percent of the users are able to access the website in under two seconds, some users are experiencing a higher than normal response time resulting in bad user experience.
|
||||
|
||||
To identify the factors that are contributing to the latency, you must compare a trace for a fast response against a trace for a slow response. Given the vast amount of data in a typical production environment, it will be extremely laborious and time-consuming effort.
|
||||
|
||||
Use exemplars to help isolate problems within your data distribution by pinpointing query traces exhibiting high latency within a time interval. Once you localize the latency problem to a few exemplar traces, you can combine it with additional system based information or location properties to perform a root cause analysis faster, leading to quick resolutions to performance issues.
|
||||
|
||||
Support for exemplars is available for the Prometheus data source only. Once you enable the functionality, exemplars data is available by default. For more information on exemplar configuration and how to enable exemplars, refer to [configuring exemplars in Prometheus data source]({{< relref "../../datasources/prometheus/#configuring-exemplars" >}}).
|
||||
|
||||
Grafana shows exemplars alongside a metric in the Explore view and in dashboards. Each exemplar displays as a highlighted star. You can hover your cursor over an exemplar to view the unique traceID, which is a combination of a key value pair. To investigate further, click the blue button next to the `traceID` property.
|
||||
|
||||
{{< figure src="/static/img/docs/v74/exemplars.png" class="docs-image--no-shadow" max-width= "750px" caption="Screenshot showing the detail window of an Exemplar" >}}
|
||||
|
||||
Refer to [View exemplar data]({{< relref "view-exemplars/" >}}) for instructions on how to drill down and view exemplar trace details from metrics and logs. To know more about exemplars, refer to the blogpost [Intro to exemplars, which enable Grafana Tempo’s distributed tracing at massive scale](https://grafana.com/blog/2021/03/31/intro-to-exemplars-which-enable-grafana-tempos-distributed-tracing-at-massive-scale/).
|
@ -74,7 +74,7 @@ A data transformation is any function that accepts a data frame as input, and re
|
||||
|
||||
A data frame with at least one time field is considered a _time series_.
|
||||
|
||||
For more information on time series, refer to our [Introduction to time series]({{< relref "../../basics/timeseries/" >}}).
|
||||
For more information on time series, refer to our [Introduction to time series]({{< relref "../../fundamentals/timeseries/" >}}).
|
||||
|
||||
### Wide format
|
||||
|
||||
|
@ -1,11 +1,12 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/basics/
|
||||
title: Grafana basics
|
||||
weight: 15
|
||||
- /docs/grafana/latest/fundamentals/
|
||||
title: Fundamentals
|
||||
weight: 8
|
||||
---
|
||||
|
||||
# Grafana basics
|
||||
# Fundamentals
|
||||
|
||||
This section provides basic information about observability topics in general and Grafana in particular. These topics will help people who are just starting out with observability and monitoring.
|
||||
|
@ -1,21 +1,41 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/basics/exemplars/
|
||||
- /docs/grafana/latest/basics/exemplars/view-exemplars/
|
||||
- /docs/grafana/latest/fundamentals/exemplars/
|
||||
description: Exemplars
|
||||
keywords:
|
||||
- grafana
|
||||
- concepts
|
||||
- exemplars
|
||||
- prometheus
|
||||
title: View exemplar data
|
||||
title: Exemplars
|
||||
weight: 400
|
||||
---
|
||||
|
||||
# View exemplar data
|
||||
# Introduction to exemplars
|
||||
|
||||
An exemplar is a specific trace representative of measurement taken in a given time interval. While metrics excel at giving you an aggregated view of your system, traces give you a fine grained view of a single request; exemplars are a way to link the two.
|
||||
|
||||
Suppose your company website is experiencing a surge in traffic volumes. While more than eighty percent of the users are able to access the website in under two seconds, some users are experiencing a higher than normal response time resulting in bad user experience.
|
||||
|
||||
To identify the factors that are contributing to the latency, you must compare a trace for a fast response against a trace for a slow response. Given the vast amount of data in a typical production environment, it will be extremely laborious and time-consuming effort.
|
||||
|
||||
Use exemplars to help isolate problems within your data distribution by pinpointing query traces exhibiting high latency within a time interval. Once you localize the latency problem to a few exemplar traces, you can combine it with additional system based information or location properties to perform a root cause analysis faster, leading to quick resolutions to performance issues.
|
||||
|
||||
Support for exemplars is available for the Prometheus data source only. Once you enable the functionality, exemplars data is available by default. For more information on exemplar configuration and how to enable exemplars, refer to [configuring exemplars in Prometheus data source]({{< relref "../../datasources/prometheus/#configuring-exemplars" >}}).
|
||||
|
||||
Grafana shows exemplars alongside a metric in the Explore view and in dashboards. Each exemplar displays as a highlighted star. You can hover your cursor over an exemplar to view the unique traceID, which is a combination of a key value pair. To investigate further, click the blue button next to the `traceID` property.
|
||||
|
||||
{{< figure src="/static/img/docs/v74/exemplars.png" class="docs-image--no-shadow" max-width= "750px" caption="Screenshot showing the detail window of an Exemplar" >}}
|
||||
|
||||
Refer to [View exemplar data]({{< relref "#view-exemplar-data" >}}) for instructions on how to drill down and view exemplar trace details from metrics and logs. To know more about exemplars, refer to the blogpost [Intro to exemplars, which enable Grafana Tempo’s distributed tracing at massive scale](https://grafana.com/blog/2021/03/31/intro-to-exemplars-which-enable-grafana-tempos-distributed-tracing-at-massive-scale/).
|
||||
|
||||
## View exemplar data
|
||||
|
||||
When support for exemplar support is enabled for a Prometheus data source, you can view exemplar data either in the Explore view or from the Loki log details.
|
||||
|
||||
## In Explore
|
||||
### In Explore
|
||||
|
||||
Explore visualizes exemplar traces as highlighted stars alongside metrics data. For more information on how Explore visualizes trace data, refer to [Tracing in Explore]({{< relref "../../explore/trace-integration/" >}}).
|
||||
|
||||
@ -31,7 +51,7 @@ To examine the details of an exemplar trace:
|
||||
|
||||
For more information on how to drill down and analyze the trace and span details, refer to the [Analyze trace and span details](#analyze-trace-and-spans) section.
|
||||
|
||||
## In logs
|
||||
### In logs
|
||||
|
||||
You can also view exemplar trace details from the Loki logs in Explore. Use regex within the Derived fields links for Loki to extract the `traceID` information. Now when you expand Loki logs, you can see a `traceID` property under the **Detected fields** section. To learn more about how to extract a part of a log message into an internal or external link, refer to [using derived fields in Loki]({{< relref "../../explore/logs-integration/" >}}).
|
||||
|
||||
@ -45,7 +65,7 @@ To view the details of an exemplar trace:
|
||||
|
||||
For more information on how to drill down and analyze the trace and span details, refer to the [Analyze trace and span details](#analyze-trace-and-spans) section.
|
||||
|
||||
## Analyze trace and spans
|
||||
### Analyze trace and spans
|
||||
|
||||
This panel shows the details of the trace in different segments.
|
||||
|
@ -3,6 +3,7 @@ aliases:
|
||||
- /docs/grafana/latest/basics/glossary/
|
||||
- /docs/grafana/latest/getting-started/glossary/
|
||||
- /docs/grafana/latest/guides/glossary/
|
||||
- /docs/grafana/latest/fundamentals/glossary/
|
||||
description: Grafana glossary
|
||||
keywords:
|
||||
- grafana
|
@ -2,6 +2,7 @@
|
||||
aliases:
|
||||
- /docs/grafana/latest/basics/intro-histograms/
|
||||
- /docs/grafana/latest/getting-started/intro-histograms/
|
||||
- /docs/grafana/latest/fundamentals/intro-histograms/
|
||||
description: An introduction to histograms and heatmaps
|
||||
keywords:
|
||||
- grafana
|
||||
@ -32,7 +33,7 @@ Here is an example showing height distribution of people.
|
||||
|
||||
{{< figure src="/static/img/docs/histogram-panel/histogram-example-v8-0.png" max-width="625px" caption="Bar chart example" >}}
|
||||
|
||||
For more information about histogram visualization options, refer to [Histogram]({{< relref "../panels-visualizations/visualizations/histogram/" >}}).
|
||||
For more information about histogram visualization options, refer to [Histogram]({{< relref "../../panels-visualizations/visualizations/histogram/" >}}).
|
||||
|
||||
Histograms only look at _value distributions_ over a specific time range. The problem with histograms is that you cannot see any trends or changes in the distribution over time. This is where heatmaps become useful.
|
||||
|
||||
@ -44,7 +45,7 @@ In this example, you can clearly see what values are more common and how they tr
|
||||
|
||||

|
||||
|
||||
For more information about heatmap visualization options, refer to [Heatmap]({{< relref "../panels-visualizations/visualizations//heatmap/" >}}).
|
||||
For more information about heatmap visualization options, refer to [Heatmap]({{< relref "../../panels-visualizations/visualizations/heatmap/" >}}).
|
||||
|
||||
## Pre-bucketed data
|
||||
|
@ -3,6 +3,7 @@ aliases:
|
||||
- /docs/grafana/latest/basics/timeseries-dimensions/
|
||||
- /docs/grafana/latest/getting-started/timeseries-dimensions/
|
||||
- /docs/grafana/latest/guides/timeseries-dimensions/
|
||||
- /docs/rafana/latest/fundamentals/timeseries-dimensions/
|
||||
description: time series dimensions
|
||||
keywords:
|
||||
- grafana
|
||||
@ -91,4 +92,4 @@ In this case the labels that represent the dimensions will have two keys based o
|
||||
|
||||
In the case of SQL-like data sources, more than one numeric column can be selected, with or without additional string columns to be used as dimensions. For example, `AVG(Temperature) AS AvgTemp, MAX(Temperature) AS MaxTemp`. This, if combined with multiple dimensions, can result in a lot of series. Selecting multiple values is currently only designed to be used with visualization.
|
||||
|
||||
Additional technical information on tabular time series formats and how dimensions are extracted can be found in [the developer documentation on data frames as time series]({{< relref "../developers/plugins/data-frames/#data-frames-as-time-series" >}}).
|
||||
Additional technical information on tabular time series formats and how dimensions are extracted can be found in [the developer documentation on data frames as time series]({{< relref "../../developers/plugins/data-frames/#data-frames-as-time-series" >}}).
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
aliases:
|
||||
- /docs/grafana/latest/basics/timeseries/
|
||||
- /docs/grafana/latest/fundamentals/timeseries/
|
||||
description: Introduction to time series
|
||||
keywords:
|
||||
- grafana
|
@ -3,7 +3,7 @@ aliases:
|
||||
- /docs/grafana/latest/getting-started/
|
||||
- /docs/grafana/latest/guides/what-is-grafana/
|
||||
title: Get started
|
||||
weight: 15
|
||||
weight: 9
|
||||
---
|
||||
|
||||
# Get started
|
||||
|
@ -29,7 +29,7 @@ Expressions are meant to augment data sources by enabling queries from different
|
||||
|
||||
> **Note:** When possible, you should do data processing inside the data source. Copying data from storage to the Grafana server for processing is inefficient, so expressions are targeted at lightweight data processing.
|
||||
|
||||
Expressions work with data source queries that return time series or number data. They also operate on [multiple-dimensional data]({{< relref "../../../basics/timeseries-dimensions/" >}}). For example, a query that returns multiple series, where each series is identified by labels or tags.
|
||||
Expressions work with data source queries that return time series or number data. They also operate on [multiple-dimensional data]({{< relref "../../../fundamentals/timeseries-dimensions/" >}}). For example, a query that returns multiple series, where each series is identified by labels or tags.
|
||||
|
||||
An individual expression takes one or more queries or other expressions as input and adds data to the result. Each individual expression or query is represented by a variable that is a named identifier known as its RefID (e.g., the default letter `A` or `B`).
|
||||
|
||||
@ -42,7 +42,7 @@ Expressions work with two types of data.
|
||||
- A collection of time series.
|
||||
- A collection of numbers, where each number is an item.
|
||||
|
||||
Each collection is returned from a single data source query or expression and represented by the RefID. Each collection is a set, where each item in the set is uniquely identified by its dimensions which are stored as [labels]({{< relref "../../../basics/timeseries-dimensions/#labels" >}}) or key-value pairs.
|
||||
Each collection is returned from a single data source query or expression and represented by the RefID. Each collection is a set, where each item in the set is uniquely identified by its dimensions which are stored as [labels]({{< relref "../../../fundamentals/timeseries-dimensions/#labels" >}}) or key-value pairs.
|
||||
|
||||
### Data source queries
|
||||
|
||||
|
@ -15,7 +15,7 @@ weight: 600
|
||||
|
||||
# Heatmap
|
||||
|
||||
The Heatmap panel visualization allows you to view histograms over time. For more information about histograms, refer to [Introduction to histograms and heatmaps]({{< relref "../../../basics/intro-histograms/" >}}).
|
||||
The Heatmap panel visualization allows you to view histograms over time. For more information about histograms, refer to [Introduction to histograms and heatmaps]({{< relref "../../../fundamentals/intro-histograms/" >}}).
|
||||
|
||||

|
||||
|
||||
|
@ -85,7 +85,7 @@ Grafana graphs now support Prometheus _exemplars_. They are displayed as diamond
|
||||
|
||||
{{< figure src="/static/img/docs/v74/exemplars.png" max-width="900px" caption="Exemplar example" >}}
|
||||
|
||||
For more information, refer to [Exemplars]({{< relref "../datasources/prometheus/#exemplars" >}}).
|
||||
For more information, refer to [Exemplars]({{< relref "../fundamentals/exemplars/" >}}).
|
||||
|
||||
### Trace to logs
|
||||
|
||||
@ -102,7 +102,7 @@ The following topics were updated as a result of this feature:
|
||||
|
||||
_Server-side expressions_ is an experimental feature that allows you to manipulate data returned from backend data source queries. Expressions allow you to manipulate data with math and other operations when the data source is a backend data source or a **--Mixed--** data source.
|
||||
|
||||
The main use case is for [multi-dimensional]({{< relref "../basics/timeseries-dimensions/" >}}) data sources used with the upcoming next generation alerting, but expressions can be used with backend data sources and visualization as well.
|
||||
The main use case is for [multi-dimensional]({{< relref "../fundamentals/timeseries-dimensions/" >}}) data sources used with the upcoming next generation alerting, but expressions can be used with backend data sources and visualization as well.
|
||||
|
||||
> **Note:** Queries built with this feature might break with minor version upgrades until Grafana 8 is released. This feature does not work with the current Grafana Alerting.
|
||||
|
||||
|
@ -85,7 +85,7 @@ As part of the upcoming improvements to Grafana's navigation, you can now direct
|
||||
#### Heatmap improvements
|
||||
|
||||
The beta heatmap announced in version 9.0 is now used throughout Grafana.
|
||||
Its performance is improved, and it now supports [exemplars]({{< relref "../basics/exemplars/" >}}).
|
||||
Its performance is improved, and it now supports [exemplars]({{< relref "../fundamentals/exemplars/" >}}).
|
||||
To learn more about the heatmap panel, see the [documentation]({{< relref "../panels-visualizations/visualizations/heatmap/" >}}).
|
||||
|
||||
{{< figure src="/static/img/docs/panels/heatmap-panel-9-1.png" max-width="750px" caption="A heatmap panel" >}}
|
||||
|
Loading…
Reference in New Issue
Block a user