From 046f52df6e38b40853f7de2b12f42f0ba5de0596 Mon Sep 17 00:00:00 2001 From: Zhu Jiekun Date: Fri, 30 Aug 2024 16:31:14 +0800 Subject: [PATCH] docs: fix incorrect URLs for resetCache and OTel guide (#6906) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Describe Your Changes This pull request fixes incorrect URLs in two places: 1. In the OTel guide, which has been corrected in https://github.com/VictoriaMetrics/VictoriaMetrics/pull/6880, but one incorrect URL is still missing. 2. In the URL example, the cache reset endpoint for vmselect / Cluster version is `/internal/resetRollupResultCache`, but it is mistakenly noted as `/select/internal/resetRollupResultCache`, which misguides the user. (introduced in #4468) ### Checklist The following checks are **mandatory**: - [x] My change adheres [VictoriaMetrics contributing guidelines](https://docs.victoriametrics.com/contributing/). (cherry picked from commit f572365a93dc62bd191441ec71cd9c25e5b22b4f) --- docs/guides/getting-started-with-opentelemetry/README.md | 2 +- docs/url-examples.md | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/guides/getting-started-with-opentelemetry/README.md b/docs/guides/getting-started-with-opentelemetry/README.md index 25e57a6a9..35a6fe638 100644 --- a/docs/guides/getting-started-with-opentelemetry/README.md +++ b/docs/guides/getting-started-with-opentelemetry/README.md @@ -314,7 +314,7 @@ func newMetricsController(ctx context.Context) (*controller.Controller, error) { This controller will collect and push collected metrics to VictoriaMetrics address with interval of `10s`. -See the full source code of the example [here](/guides/app.go.example). +See the full source code of the example [here](app.go.example). ### Test metrics ingestion diff --git a/docs/url-examples.md b/docs/url-examples.md index ad09bb7c4..6c85ef78d 100644 --- a/docs/url-examples.md +++ b/docs/url-examples.md @@ -617,12 +617,10 @@ Single-node VictoriaMetrics: curl -Is http://localhost:8428/internal/resetRollupResultCache ``` - Cluster version of VictoriaMetrics: - ```sh -curl -Is http://:8481/select/internal/resetRollupResultCache +curl -Is http://:8481/internal/resetRollupResultCache ``` vmselect will propagate this call to the rest of the vmselects listed in its `-selectNode` cmd-line flag. If this