瀏覽代碼

docs: fix example for graphite tag query

Was missing a tilde in the tag_values example
Daniel Lee 7 年之前
父節點
當前提交
492f842c53
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. 10 2
      docs/sources/features/datasources/graphite.md

+ 10 - 2
docs/sources/features/datasources/graphite.md

@@ -94,7 +94,7 @@ Query | Description
 *tags(server=~backend\*)* | Returns only tags that occur in series matching the filter expression.
 *tag_values(server)*  | Return tag values for the specified tag.
 *tag_values(server, server=~backend*)*  | Returns filtered tag values that occur for the specified tag in series matching those expressions.
-*tag_values(server, server=~backend*, app=${apps:regex})* | Multiple filter expressions and expressions can contain other variables.
+*tag_values(server, server=~backend*, app=~${apps:regex})* | Multiple filter expressions and expressions can contain other variables.
 
 For more details, see the [Graphite docs on the autocomplete api for tags](http://graphite.readthedocs.io/en/latest/tags.html#auto-complete-support).
 
@@ -124,7 +124,15 @@ Example:
 
 ### Variable Usage in Tag Queries
 
-Multi-value variables in tag queries use the advanced formatting syntax introduced in Grafana 5.0 for variables: `{var:regex}`. Non-tag queries will use the default glob formatting for multi-value variables. Checkout the [Advanced Formatting Options section in the Variables]({{< relref "reference/templating.md#advanced-formatting-options" >}}) documentation for examples and details.
+Multi-value variables in tag queries use the advanced formatting syntax introduced in Grafana 5.0 for variables: `{var:regex}`. Non-tag queries will use the default glob formatting for multi-value variables.
+
+Example of a tag expression with regex formatting and using the Equal Tilde operator, `=~`:
+
+```text
+server=~${servers:regex}
+```
+
+Checkout the [Advanced Formatting Options section in the Variables]({{< relref "reference/templating.md#advanced-formatting-options" >}}) documentation for examples and details.
 
 ## Annotations