VictoriaMetrics/app/vmselect/graphite
Evgeniy Negriy 98fe1950a1
app/vmselect: fixes graphite function transformRemoveEmptySeries
Previously it incorrectly applied xFilesFactor, if it's value equal to 0.

 This commit properly handles this case and returns result according to
the graphite documentation:

`xFilesFactor follows the same semantics as in Whisper storage schemas. Setting it to 0 (the default) means that only a single value in the series needs to be non-null for it to be considered non-empty, setting it to 1 means that all values ​​in the series must be non-null. A setting of 0.5 means that at least half the values ​​in the series must be non-null.`

Signed-off-by: f41gh7 <nik@victoriametrics.com>
Co-authored-by: Evgeniy Negriy <einegriy@avito.ru>
(cherry picked from commit d27dfac5c6)
2024-11-07 13:00:18 +01:00
..
aggr.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00
aggr_state.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:25:49 +02:00
eval.go app/vmselect/graphite: respect denyPartialResponse for graphite requests (#6748) 2024-08-07 12:34:23 +02:00
eval_test.go app/vmselect: fixes graphite function transformRemoveEmptySeries 2024-11-07 13:00:18 +01:00
functions.json app/vmselect/graphite: follow-up for 23ab865035 2024-04-03 03:07:15 +03:00
functions_api.go all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:23:26 +02:00
metrics_api.go Makefile: update golangci-lint from v1.51.2 to v1.54.2 2023-09-01 10:25:49 +02:00
metrics_api_test.go app/vmselect,lib/storage: properly parse Graphite selectors with inner wildcards 2021-02-03 20:16:28 +02:00
metrics_expand_response.qtpl app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
metrics_expand_response.qtpl.go app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
metrics_find_response.qtpl app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
metrics_find_response.qtpl.go app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
metrics_index_response.qtpl app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
metrics_index_response.qtpl.go app/vmselect: propagate errors from vmstorage to response to the client if -search.denyPartialResponse command-line flag is set 2020-11-14 13:20:10 +02:00
natural_compare.go app/vmselect/graphite: open source Graphite Render API 2023-03-31 23:37:40 -07:00
natural_compare_test.go app/vmselect/graphite: open source Graphite Render API 2023-03-31 23:37:40 -07:00
render_api.go app/vmselect/graphite: respect denyPartialResponse for graphite requests (#6748) 2024-08-07 12:34:23 +02:00
render_api_test.go app/vmselect/graphite: open source Graphite Render API 2023-03-31 23:37:40 -07:00
render_response.qtpl app/vmselect: return +Inf as null in graphite render api (#5009) 2023-09-18 16:41:39 +02:00
render_response.qtpl.go app/vmselect: return +Inf as null in graphite render api (#5009) 2023-09-18 16:41:39 +02:00
tag_values_response.qtpl app/vmselect/graphite: add /tags/<tag_name> handler for Graphite Tags API 2020-11-16 03:41:41 +02:00
tag_values_response.qtpl.go app/vmselect/graphite: add /tags/<tag_name> handler for Graphite Tags API 2020-11-16 03:41:41 +02:00
tags_api.go lib/prompb: change type of Label.Name and Label.Value from []byte to string 2024-01-16 20:41:37 +02:00
tags_autocomplete_response.qtpl app/vmselect/graphite: add /tags/autoComplete/values handler from Graphite Tags API 2020-11-16 15:29:29 +02:00
tags_autocomplete_response.qtpl.go app/vmselect/graphite: add /tags/autoComplete/values handler from Graphite Tags API 2020-11-16 15:29:29 +02:00
tags_find_series_response.qtpl app/vmselect/graphite: add /tags/findSeries handler from Graphite Tags API 2020-11-16 12:52:23 +02:00
tags_find_series_response.qtpl.go app/vmselect/graphite: add /tags/findSeries handler from Graphite Tags API 2020-11-16 12:52:23 +02:00
tags_response.qtpl app/vmselect/graphite: add /tags handler from Graphite Tags API 2020-11-16 02:57:20 +02:00
tags_response.qtpl.go app/vmselect/graphite: add /tags handler from Graphite Tags API 2020-11-16 02:57:20 +02:00
tags_tag_multi_series_response.qtpl app/vmselect: implement /tags/tagSeries and /tags/tagMultiSeries` in order to be consistent with single-node VictoriaMetrics 2020-11-23 14:57:08 +02:00
tags_tag_multi_series_response.qtpl.go app/vmselect: implement /tags/tagSeries and /tags/tagMultiSeries` in order to be consistent with single-node VictoriaMetrics 2020-11-23 14:57:08 +02:00
transform.go app/vmselect: fixes graphite function transformRemoveEmptySeries 2024-11-07 13:00:18 +01:00
transform_test.go app/vmselect/graphite: properly handle -N index for the array of N items 2024-01-17 00:16:37 +02:00