From c5daf8a27b2f462378b2d283e03b56393838896c Mon Sep 17 00:00:00 2001 From: Anton Markelov Date: Fri, 13 Nov 2020 15:31:07 +0200 Subject: [PATCH] Add note about maxUniqueTimeseries for export (#898) --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fc497bab..4f9c9426c 100644 --- a/README.md +++ b/README.md @@ -699,7 +699,16 @@ VictoriaMetrics provides the following handlers for exporting data: Send a request to `http://:8428/api/v1/export/native?match[]=`, where `` may contain any [time series selector](https://prometheus.io/docs/prometheus/latest/querying/basics/#time-series-selectors) -for metrics to export. Use `{__name__!=""}` selector for fetching all the time series. +for metrics to export. Use `{__name__=~".*"}` selector for fetching all the time series. + +On large databases you may experience problems with limit on unique timeseries (default value is 300000). In this case you need to adjust `-search.maxUniqueTimeseries` parameter: + +```bash +# count unique timeseries in database +wget -O- -q 'http://your_victoriametrics_instance:8428/api/v1/series/count' | jq '.data[0]' + +# relaunch victoriametrics with search.maxUniqueTimeseries more than value from previous command +``` Optional `start` and `end` args may be added to the request in order to limit the time frame for the exported data. These args may contain either unix timestamp in seconds or [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) values.