From 8eeb045d3f20719f6c6f993efbb65a906fb2ab86 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 18 Apr 2024 02:14:53 +0200 Subject: [PATCH] all: replace old https://docs.victoriametrics.com/MetricsQL.html url with the new one - https://docs.victoriametrics.com/metricsql/ --- README.md | 18 +-- .../prometheus/expand-with-exprs.qtpl | 6 +- .../prometheus/expand-with-exprs.qtpl.go | 6 +- app/vmselect/promql/binary_op.go | 2 +- dashboards/victoriametrics-cluster.json | 4 +- dashboards/victoriametrics.json | 4 +- dashboards/vm/victoriametrics-cluster.json | 4 +- dashboards/vm/victoriametrics.json | 4 +- .../digitialocean/one-click-droplet/README.md | 2 +- deployment/marketplace/vultr/README.md | 2 +- docs/CHANGELOG.md | 54 ++++----- docs/CHANGELOG_2020.md | 8 +- docs/CHANGELOG_2021.md | 68 +++++------ docs/CHANGELOG_2022.md | 108 +++++++++--------- docs/CHANGELOG_2023.md | 98 ++++++++-------- docs/CaseStudies.md | 4 +- docs/Cluster-VictoriaMetrics.md | 6 +- docs/ExtendedPromQL.md | 2 +- docs/FAQ.md | 10 +- docs/Quick-Start.md | 2 +- docs/README.md | 18 +-- docs/Single-server-VictoriaMetrics.md | 18 +-- docs/Troubleshooting.md | 10 +- docs/anomaly-detection/FAQ.md | 8 +- docs/anomaly-detection/components/reader.md | 2 +- .../guides/guide-vmanomaly-vmalert.md | 4 +- docs/grafana-datasource.md | 2 +- docs/guides/migrate-from-influx.md | 10 +- docs/keyConcepts.md | 32 +++--- docs/stream-aggregation.md | 14 +-- docs/vmagent.md | 12 +- docs/vmalert-tool.md | 2 +- docs/vmalert.md | 6 +- 33 files changed, 275 insertions(+), 275 deletions(-) diff --git a/README.md b/README.md index 070e80a537..2545240ffa 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ VictoriaMetrics has the following prominent features: * Easy and fast backups from [instant snapshots](https://medium.com/@valyala/how-victoriametrics-makes-instant-snapshots-for-multi-terabyte-time-series-data-e1f3fb0e0282) can be done with [vmbackup](https://docs.victoriametrics.com/vmbackup/) / [vmrestore](https://docs.victoriametrics.com/vmrestore/) tools. See [this article](https://medium.com/@valyala/speeding-up-backups-for-big-time-series-databases-533c1a927883) for more details. -* It implements a PromQL-like query language - [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html), which provides improved functionality on top of PromQL. +* It implements a PromQL-like query language - [MetricsQL](https://docs.victoriametrics.com/metricsql/), which provides improved functionality on top of PromQL. * It provides a global query view. Multiple Prometheus instances or any other data sources may ingest data into VictoriaMetrics. Later this data may be queried via a single query. * It provides high performance and good vertical and horizontal scalability for both [data ingestion](https://medium.com/@valyala/high-cardinality-tsdb-benchmarks-victoriametrics-vs-timescaledb-vs-influxdb-13e6ee64dd6b) @@ -335,7 +335,7 @@ In the "Type and version" section it is recommended to set the type to "Promethe This allows Grafana to use a more efficient API to get label values. Then build graphs and dashboards for the created datasource using [PromQL](https://prometheus.io/docs/prometheus/latest/querying/basics/) -or [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html). +or [MetricsQL](https://docs.victoriametrics.com/metricsql/). Alternatively, use VictoriaMetrics [datasource plugin](https://github.com/VictoriaMetrics/grafana-datasource) with support of extra features. See more in [description](https://github.com/VictoriaMetrics/grafana-datasource#victoriametrics-data-source-for-grafana). @@ -380,7 +380,7 @@ The UI allows exploring query results via graphs and tables. It also provides th - [WITH expressions playground](https://play.victoriametrics.com/select/accounting/1/6a716b0f-38bc-4856-90ce-448fd713e3fe/prometheus/graph/#/expand-with-exprs) - test how WITH expressions work; - [Metric relabel debugger](https://play.victoriametrics.com/select/accounting/1/6a716b0f-38bc-4856-90ce-448fd713e3fe/prometheus/graph/#/relabeling) - playground for [relabeling](#relabeling) configs. -VMUI provides auto-completion for [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html) functions, metric names, label names and label values. The auto-completion can be enabled +VMUI provides auto-completion for [MetricsQL](https://docs.victoriametrics.com/metricsql/) functions, metric names, label names and label values. The auto-completion can be enabled by checking the `Autocomplete` toggle. When the auto-completion is disabled, it can still be triggered for the current cursor position by pressing `ctrl+space`. VMUI automatically switches from graph view to heatmap view when the query returns [histogram](https://docs.victoriametrics.com/keyConcepts.html#histogram) buckets @@ -735,7 +735,7 @@ The `/api/v1/export` endpoint should return the following response: {"metric":{"__name__":"foo.bar.baz","tag1":"value1","tag2":"value2"},"values":[123],"timestamps":[1560277406000]} ``` -[Graphite relabeling](https://docs.victoriametrics.com/vmagent/#graphite-relabeling) can be used if the imported Graphite data is going to be queried via [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html). +[Graphite relabeling](https://docs.victoriametrics.com/vmagent/#graphite-relabeling) can be used if the imported Graphite data is going to be queried via [MetricsQL](https://docs.victoriametrics.com/metricsql/). ## Querying Graphite data @@ -747,7 +747,7 @@ Data sent to VictoriaMetrics via `Graphite plaintext protocol` may be read via t ## Selecting Graphite metrics -VictoriaMetrics supports `__graphite__` pseudo-label for selecting time series with Graphite-compatible filters in [MetricsQL](https://docs.victoriametrics.com/MetricsQL.html). For example, `{__graphite__="foo.*.bar"}` is equivalent to `{__name__=~"foo[.][^.]*[.]bar"}`, but it works faster and it is easier to use when migrating from Graphite to VictoriaMetrics. See [docs for Graphite paths and wildcards](https://graphite.readthedocs.io/en/latest/render_api.html#paths-and-wildcards). VictoriaMetrics also supports [label_graphite_group](https://docs.victoriametrics.com/MetricsQL.html#label_graphite_group) function for extracting the given groups from Graphite metric name. +VictoriaMetrics supports `__graphite__` pseudo-label for selecting time series with Graphite-compatible filters in [MetricsQL](https://docs.victoriametrics.com/metricsql/). For example, `{__graphite__="foo.*.bar"}` is equivalent to `{__name__=~"foo[.][^.]*[.]bar"}`, but it works faster and it is easier to use when migrating from Graphite to VictoriaMetrics. See [docs for Graphite paths and wildcards](https://graphite.readthedocs.io/en/latest/render_api.html#paths-and-wildcards). VictoriaMetrics also supports [label_graphite_group](https://docs.victoriametrics.com/metricsql/#label_graphite_group) function for extracting the given groups from Graphite metric name. The `__graphite__` pseudo-label supports e.g. alternate regexp filters such as `(value1|...|valueN)`. They are transparently converted to `{value1,...,valueN}` syntax [used in Graphite](https://graphite.readthedocs.io/en/latest/render_api.html#paths-and-wildcards). This allows using [multi-value template variables in Grafana](https://grafana.com/docs/grafana/latest/variables/formatting-multi-value-variables/) inside `__graphite__` pseudo-label. For example, Grafana expands `{__graphite__=~"foo.($bar).baz"}` into `{__graphite__=~"foo.(x|y).baz"}` if `$bar` template variable contains `x` and `y` values. In this case the query is automatically converted into `{__graphite__=~"foo.{x,y}.baz"}` before execution. @@ -1017,7 +1017,7 @@ VictoriaMetrics accepts optional query args: `extra_label==

- MetricsQL query with optional WITH expressions: + MetricsQL query with optional WITH expressions:


- MetricsQL query after expanding WITH expressions and applying other optimizations: + MetricsQL query after expanding WITH expressions and applying other optimizations:

@@ -79,7 +79,7 @@ textarea { margin: 1em } {% endstripspace %} {% func withExprsTutorial() %} -

Tutorial for WITH expressions in MetricsQL

+

Tutorial for WITH expressions in MetricsQL

Let's look at the following real query from Node Exporter Full dashboard: diff --git a/app/vmselect/prometheus/expand-with-exprs.qtpl.go b/app/vmselect/prometheus/expand-with-exprs.qtpl.go index dd2f4c0256..05928f0390 100644 --- a/app/vmselect/prometheus/expand-with-exprs.qtpl.go +++ b/app/vmselect/prometheus/expand-with-exprs.qtpl.go @@ -28,11 +28,11 @@ var ( //line app/vmselect/prometheus/expand-with-exprs.qtpl:9 func StreamExpandWithExprsResponse(qw422016 *qt422016.Writer, q string) { //line app/vmselect/prometheus/expand-with-exprs.qtpl:9 - qw422016.N().S(`Expand WITH expressions

MetricsQL query with optional WITH expressions:


MetricsQL query after expanding WITH expressions and applying other optimizations:


MetricsQL query after expanding WITH expressions and applying other optimizations: