Docs: Fix note format for documentation (#27940)
This commit is contained in:
@@ -22,18 +22,18 @@ build dashboards or use Explore with CloudWatch metrics and CloudWatch Logs.
|
||||
2. Click the `Add data source` button.
|
||||
3. Select `Cloudwatch` in the `Cloud` section.
|
||||
|
||||
> NOTE: If at any moment you have issues with getting this data source to work and Grafana is giving you undescriptive errors then don't
|
||||
> **Note:** If at any moment you have issues with getting this data source to work and Grafana is giving you undescriptive errors then don't
|
||||
> forget to check your log file (try looking in /var/log/grafana/grafana.log).
|
||||
|
||||
| Name | Description |
|
||||
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
||||
| _Name_ | The data source name. This is how you refer to the data source in panels and queries. |
|
||||
| _Default_ | Default data source means that it will be pre-selected for new panels. |
|
||||
| _Default Region_ | Used in query editor to set region (can be changed on per query basis) |
|
||||
| _Custom Metrics namespace_ | Specify the CloudWatch namespace of Custom metrics |
|
||||
| _Auth Provider_ | Specify the provider to get credentials. |
|
||||
| _Credentials_ profile name | Specify the name of the profile to use (if you use `~/.aws/credentials` file), leave blank for default. |
|
||||
| _Assume Role Arn_ | Specify the ARN of the role to assume |
|
||||
| Name | Description |
|
||||
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
|
||||
| _Name_ | The data source name. This is how you refer to the data source in panels and queries. |
|
||||
| _Default_ | Default data source means that it will be pre-selected for new panels. |
|
||||
| _Default Region_ | Used in query editor to set region (can be changed on per query basis) |
|
||||
| _Custom Metrics namespace_ | Specify the CloudWatch namespace of Custom metrics |
|
||||
| _Auth Provider_ | Specify the provider to get credentials. |
|
||||
| _Credentials_ profile name | Specify the name of the profile to use (if you use `~/.aws/credentials` file), leave blank for default. |
|
||||
| _Assume Role Arn_ | Specify the ARN of the role to assume |
|
||||
| _External ID_ | If you are assuming a role in another account, that has been created with an external ID, specify the external ID here. |
|
||||
|
||||
## Authentication
|
||||
@@ -45,7 +45,7 @@ server is running on AWS you can use IAM Roles and authentication will be handle
|
||||
|
||||
See the AWS documentation on [IAM Roles](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html)
|
||||
|
||||
> NOTE: AWS Role Switching as described [here](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-cli.html) is not supported at the moment.
|
||||
> **Note:** AWS Role Switching as described [here](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_use_switch-role-cli.html) is not supported at the moment.
|
||||
|
||||
## IAM Policies
|
||||
|
||||
@@ -116,7 +116,7 @@ See the AWS documentation on [Configuring the AWS SDK for Go](https://docs.aws.a
|
||||
|
||||
Create a file at `~/.aws/credentials`. That is the `HOME` path for user running grafana-server.
|
||||
|
||||
> NOTE: If you think you have the credentials file in the right place but it is still not working then you might try moving your .aws file to '/usr/share/grafana/' and make sure your credentials file has at most 0644 permissions.
|
||||
> **Note:** If you think you have the credentials file in the right place but it is still not working then you might try moving your .aws file to '/usr/share/grafana/' and make sure your credentials file has at most 0644 permissions.
|
||||
|
||||
Example content:
|
||||
|
||||
|
||||
@@ -22,14 +22,14 @@ visualize logs or metrics stored in Elasticsearch. You can also annotate your gr
|
||||
3. Click the `+ Add data source` button in the top header.
|
||||
4. Select *Elasticsearch* from the *Type* dropdown.
|
||||
|
||||
> NOTE: If you're not seeing the `Data Sources` link in your side menu it means that your current user does not have the `Admin` role for the current organization.
|
||||
> **Note:** If you're not seeing the `Data Sources` link in your side menu it means that your current user does not have the `Admin` role for the current organization.
|
||||
|
||||
Name | Description
|
||||
------------ | -------------
|
||||
*Name* | The data source name. This is how you refer to the data source in panels and queries.
|
||||
*Default* | Default data source means that it will be pre-selected for new panels.
|
||||
*Url* | The HTTP protocol, IP, and port of your Elasticsearch server.
|
||||
*Access* | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser.
|
||||
| Name | Description |
|
||||
| --------- | ------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| *Name* | The data source name. This is how you refer to the data source in panels and queries. |
|
||||
| *Default* | Default data source means that it will be pre-selected for new panels. |
|
||||
| *Url* | The HTTP protocol, IP, and port of your Elasticsearch server. |
|
||||
| *Access* | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser. |
|
||||
|
||||
Access mode controls how requests to the data source will be handled. Server should be the preferred way if nothing else stated.
|
||||
|
||||
@@ -68,16 +68,16 @@ A lower limit for the auto group by time interval. Recommended to be set to writ
|
||||
This option can also be overridden/configured in a dashboard panel under data source options. It's important to note that this value **needs** to be formatted as a
|
||||
number followed by a valid time identifier, e.g. `1m` (1 minute) or `30s` (30 seconds). The following time identifiers are supported:
|
||||
|
||||
Identifier | Description
|
||||
------------ | -------------
|
||||
`y` | year
|
||||
`M` | month
|
||||
`w` | week
|
||||
`d` | day
|
||||
`h` | hour
|
||||
`m` | minute
|
||||
`s` | second
|
||||
`ms` | millisecond
|
||||
| Identifier | Description |
|
||||
| ---------- | ----------- |
|
||||
| `y` | year |
|
||||
| `M` | month |
|
||||
| `w` | week |
|
||||
| `d` | day |
|
||||
| `h` | hour |
|
||||
| `m` | minute |
|
||||
| `s` | second |
|
||||
| `ms` | millisecond |
|
||||
|
||||
### Logs (BETA)
|
||||
|
||||
@@ -111,11 +111,11 @@ metrics or group by clauses. Some metrics and group by clauses haves options, cl
|
||||
|
||||
You can control the name for time series via the `Alias` input field.
|
||||
|
||||
Pattern | Description
|
||||
------------ | -------------
|
||||
*{{term fieldname}}* | replaced with value of a term group by
|
||||
*{{metric}}* | replaced with metric name (ex. Average, Min, Max)
|
||||
*{{field}}* | replaced with the metric field name
|
||||
| Pattern | Description |
|
||||
| -------------------- | ------------------------------------------------- |
|
||||
| *{{term fieldname}}* | replaced with value of a term group by |
|
||||
| *{{metric}}* | replaced with metric name (ex. Average, Min, Max) |
|
||||
| *{{field}}* | replaced with the metric field name |
|
||||
|
||||
## Pipeline metrics
|
||||
|
||||
@@ -136,11 +136,11 @@ types of template variables.
|
||||
|
||||
The Elasticsearch data source supports two types of queries you can use in the *Query* field of *Query* variables. The query is written using a custom JSON string.
|
||||
|
||||
Query | Description
|
||||
------------ | -------------
|
||||
*{"find": "fields", "type": "keyword"}* | Returns a list of field names with the index type `keyword`.
|
||||
*{"find": "terms", "field": "@hostname", "size": 1000}* | Returns a list of values for a field using term aggregation. Query will use current dashboard time range as time range for query.
|
||||
*{"find": "terms", "field": "@hostname", "query": '<lucene query>'}* | Returns a list of values for a field using term aggregation and a specified lucene query filter. Query will use current dashboard time range as time range for query.
|
||||
| Query | Description |
|
||||
| -------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| *{"find": "fields", "type": "keyword"}* | Returns a list of field names with the index type `keyword`. |
|
||||
| *{"find": "terms", "field": "@hostname", "size": 1000}* | Returns a list of values for a field using term aggregation. Query will use current dashboard time range as time range for query. |
|
||||
| *{"find": "terms", "field": "@hostname", "query": '<lucene query>'}* | Returns a list of values for a field using term aggregation and a specified lucene query filter. Query will use current dashboard time range as time range for query. |
|
||||
|
||||
There is a default size limit of 500 on terms queries. Set the size property in your query to set a custom limit.
|
||||
You can use other variables inside the query. Example query definition for a variable named `$host`.
|
||||
@@ -185,13 +185,13 @@ Example dashboard:
|
||||
queries via the Dashboard menu / Annotations view. Grafana can query any Elasticsearch index
|
||||
for annotation events.
|
||||
|
||||
Name | Description
|
||||
------------ | -------------
|
||||
Query | You can leave the search query blank or specify a lucene query.
|
||||
Time | The name of the time field, needs to be date field.
|
||||
Time End | Optional name of the time end field needs to be date field. If set, then annotations will be marked as a region between time and time-end.
|
||||
Text | Event description field.
|
||||
Tags | Optional field name to use for event tags (can be an array or a CSV string).
|
||||
| Name | Description |
|
||||
| -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| Query | You can leave the search query blank or specify a lucene query. |
|
||||
| Time | The name of the time field, needs to be date field. |
|
||||
| Time End | Optional name of the time end field needs to be date field. If set, then annotations will be marked as a region between time and time-end. |
|
||||
| Text | Event description field. |
|
||||
| Tags | Optional field name to use for event tags (can be an array or a CSV string). |
|
||||
|
||||
## Querying Logs (BETA)
|
||||
|
||||
|
||||
@@ -27,12 +27,12 @@ Just add it as a data source and you are ready to query your log data in [Explor
|
||||
1. Click the `Add data source` button at the top.
|
||||
1. Select `Loki` from the list of data sources.
|
||||
|
||||
> Note: If you're not seeing the `Data Sources` link in your side menu it means that your current user does not have the `Admin` role for the current organization.
|
||||
> **Note:** If you're not seeing the `Data Sources` link in your side menu it means that your current user does not have the `Admin` role for the current organization.
|
||||
|
||||
| Name | Description |
|
||||
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| _Name_ | The data source name. This is how you refer to the data source in panels, queries, and Explore. |
|
||||
| _Default_ | Default data source means that it will be pre-selected for new panels. |
|
||||
| _Name_ | The data source name. This is how you refer to the data source in panels, queries, and Explore. |
|
||||
| _Default_ | Default data source means that it will be pre-selected for new panels. |
|
||||
| _URL_ | The URL of the Loki instance, e.g., `http://localhost:3100` |
|
||||
| _Maximum lines_ | Upper limit for number of log lines returned by Loki (default is 1000). Decrease if your browser is sluggish when displaying logs in Explore. |
|
||||
|
||||
@@ -124,7 +124,7 @@ The following filter types are currently supported:
|
||||
* `|~` line matches regular expression.
|
||||
* `!~` line does not match regular expression.
|
||||
|
||||
> Note: For more details about LogQL, Loki's query language, refer to the [documentation](https://grafana.com/docs/loki/latest/logql/)
|
||||
> **Note:** For more details about LogQL, Loki's query language, refer to the [documentation](https://grafana.com/docs/loki/latest/logql/)
|
||||
|
||||
## Live tailing
|
||||
|
||||
@@ -135,7 +135,7 @@ Note that Live Tailing relies on two Websocket connections: one between the brow
|
||||
ProxyPassMatch "^/(api/datasources/proxy/\d+/loki/api/v1/tail)" "ws://127.0.0.1:3000/$1"
|
||||
```
|
||||
|
||||
> Note: This feature is only available in Grafana v6.3+
|
||||
> **Note:** This feature is only available in Grafana v6.3+
|
||||
|
||||
## Log Context
|
||||
|
||||
@@ -143,7 +143,7 @@ When using a search expression as detailed above, you now have the ability to re
|
||||
By clicking the `Show Context` link on the filtered rows, you'll be able to investigate the log messages that came before and after the
|
||||
log message you're interested in.
|
||||
|
||||
> Note: This feature is only available in Grafana v6.3+
|
||||
> **Note:** This feature is only available in Grafana v6.3+
|
||||
|
||||
## Templating
|
||||
|
||||
@@ -155,7 +155,7 @@ Check out the [Templating]({{< relref "../../variables/templates-and-variables"
|
||||
|
||||
You can use any non-metric Loki query as a source for annotations. Log content will be used as annotation text and your log stream labels as tags, so there is no need for additional mapping.
|
||||
|
||||
> Note: Annotations for Loki are only available in Grafana v6.4+
|
||||
> **Note:** Annotations for Loki are only available in Grafana v6.4+
|
||||
|
||||
## Configure the data source with provisioning
|
||||
|
||||
|
||||
@@ -21,16 +21,16 @@ Grafana ships with advanced support for OpenTSDB.
|
||||
3. Click the `+ Add data source` button in the top header.
|
||||
4. Select *OpenTSDB* from the *Type* dropdown.
|
||||
|
||||
> NOTE: If you're not seeing the `Data Sources` link in your side menu it means that your current user does not have the `Admin` role for the current organization.
|
||||
> **Note:** If you're not seeing the `Data Sources` link in your side menu it means that your current user does not have the `Admin` role for the current organization.
|
||||
|
||||
Name | Description
|
||||
------------ | -------------
|
||||
*Name* | The data source name. This is how you refer to the data source in panels and queries.
|
||||
*Default* | Default data source means that it will be pre-selected for new panels.
|
||||
*Url* | The HTTP protocol, ip and port of you opentsdb server (default port is usually 4242)
|
||||
*Access* | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser.
|
||||
*Version* | Version = opentsdb version, either <=2.1 or 2.2
|
||||
*Resolution* | Metrics from opentsdb may have datapoints with either second or millisecond resolution.
|
||||
| Name | Description |
|
||||
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| *Name* | The data source name. This is how you refer to the data source in panels and queries. |
|
||||
| *Default* | Default data source means that it will be pre-selected for new panels. |
|
||||
| *Url* | The HTTP protocol, ip and port of you opentsdb server (default port is usually 4242) |
|
||||
| *Access* | Server (default) = URL needs to be accessible from the Grafana backend/server, Browser = URL needs to be accessible from the browser. |
|
||||
| *Version* | Version = opentsdb version, either <=2.1 or 2.2 |
|
||||
| *Resolution* | Metrics from opentsdb may have datapoints with either second or millisecond resolution. |
|
||||
|
||||
## Query editor
|
||||
|
||||
@@ -40,7 +40,7 @@ can be used to query opentsdb. Fill Policy is also introduced in OpenTSDB 2.2.
|
||||
|
||||

|
||||
|
||||
> Note: While using OpenTSDB 2.2 data source, make sure you use either Filters or Tags as they are mutually exclusive. If used together, might give you weird results.
|
||||
> **Note:** While using OpenTSDB 2.2 data source, make sure you use either Filters or Tags as they are mutually exclusive. If used together, might give you weird results.
|
||||
|
||||
### Auto complete suggestions
|
||||
|
||||
@@ -63,13 +63,13 @@ that fetch the values from OpenTSDB. For example, metric names, tag names, or ta
|
||||
|
||||
When using OpenTSDB with a template variable of `query` type you can use following syntax for lookup.
|
||||
|
||||
Query | Description
|
||||
------------ | -------------
|
||||
*metrics(prefix)* | Returns metric names with specific prefix (can be empty)
|
||||
*tag_names(cpu)* | Returns tag names (i.e. keys) for a specific cpu metric
|
||||
*tag_values(cpu, hostname)* | Returns tag values for metric cpu and tag key hostname
|
||||
*suggest_tagk(prefix)* | Returns tag names (i.e. keys) for all metrics with specific prefix (can be empty)
|
||||
*suggest_tagv(prefix)* | Returns tag values for all metrics with specific prefix (can be empty)
|
||||
| Query | Description |
|
||||
| --------------------------- | --------------------------------------------------------------------------------- |
|
||||
| *metrics(prefix)* | Returns metric names with specific prefix (can be empty) |
|
||||
| *tag_names(cpu)* | Returns tag names (i.e. keys) for a specific cpu metric |
|
||||
| *tag_values(cpu, hostname)* | Returns tag values for metric cpu and tag key hostname |
|
||||
| *suggest_tagk(prefix)* | Returns tag names (i.e. keys) for all metrics with specific prefix (can be empty) |
|
||||
| *suggest_tagv(prefix)* | Returns tag values for all metrics with specific prefix (can be empty) |
|
||||
|
||||
If you do not see template variables being populated in `Preview of values` section, you need to enable
|
||||
`tsd.core.meta.enable_realtime_ts` in the OpenTSDB server settings. Also, to populate metadata of
|
||||
@@ -81,10 +81,10 @@ One template variable can be used to filter tag values for another template vari
|
||||
second parameter is the tag key for which you need to find tag values, and after that all other dependent template variables.
|
||||
Some examples are mentioned below to make nested template queries work successfully.
|
||||
|
||||
Query | Description
|
||||
------------ | -------------
|
||||
*tag_values(cpu, hostname, env=$env)* | Return tag values for cpu metric, selected env tag value and tag key hostname
|
||||
*tag_values(cpu, hostname, env=$env, region=$region)* | Return tag values for cpu metric, selected env tag value, selected region tag value and tag key hostname
|
||||
| Query | Description |
|
||||
| ----------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
|
||||
| *tag_values(cpu, hostname, env=$env)* | Return tag values for cpu metric, selected env tag value and tag key hostname |
|
||||
| *tag_values(cpu, hostname, env=$env, region=$region)* | Return tag values for cpu metric, selected env tag value, selected region tag value and tag key hostname |
|
||||
|
||||
For details on OpenTSDB metric queries, check out the official [OpenTSDB documentation](http://opentsdb.net/docs/build/html/index.html)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user