From 8674963f6a32e9474fc06992a2e36d03a26cf519 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 17 Sep 2020 01:38:15 +0300 Subject: [PATCH] docs/Single-server-VictoriaMetrics.md: document that /api/v1/series/count may count delete time series Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/770 --- README.md | 5 +++-- docs/Single-server-VictoriaMetrics.md | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9dd888aab..38ba08b65 100644 --- a/README.md +++ b/README.md @@ -587,8 +587,9 @@ See [this feature request](https://github.com/prometheus/prometheus/issues/6178) Additionally VictoriaMetrics provides the following handlers: -* `/api/v1/series/count` - it returns the total number of time series in the database. Note that this handler scans all the inverted index, - so it can be slow if the database contains tens of millions of time series. +* `/api/v1/series/count` - it returns the total number of time series in the database. Some notes: + * the handler scans all the inverted index, so it can be slow if the database contains tens of millions of time series; + * the handler may count [deleted time series](#how-to-delete-time-series) additionally to normal time series due to internal implementation restrictions; * `/api/v1/labels/count` - it returns a list of `label: values_count` entries. It can be used for determining labels with the maximum number of values. * `/api/v1/status/active_queries` - it returns a list of currently running queries. diff --git a/docs/Single-server-VictoriaMetrics.md b/docs/Single-server-VictoriaMetrics.md index 9dd888aab..38ba08b65 100644 --- a/docs/Single-server-VictoriaMetrics.md +++ b/docs/Single-server-VictoriaMetrics.md @@ -587,8 +587,9 @@ See [this feature request](https://github.com/prometheus/prometheus/issues/6178) Additionally VictoriaMetrics provides the following handlers: -* `/api/v1/series/count` - it returns the total number of time series in the database. Note that this handler scans all the inverted index, - so it can be slow if the database contains tens of millions of time series. +* `/api/v1/series/count` - it returns the total number of time series in the database. Some notes: + * the handler scans all the inverted index, so it can be slow if the database contains tens of millions of time series; + * the handler may count [deleted time series](#how-to-delete-time-series) additionally to normal time series due to internal implementation restrictions; * `/api/v1/labels/count` - it returns a list of `label: values_count` entries. It can be used for determining labels with the maximum number of values. * `/api/v1/status/active_queries` - it returns a list of currently running queries.