quickwit-oss / quickwit

Cloud-native search engine for observability. An open-source alternative to Datadog, Elasticsearch, Loki, and Tempo.
https://quickwit.io
Other
7.31k stars 298 forks source link

Disable per-index metrics in config. #5117

Closed fulmicoton closed 3 weeks ago

fulmicoton commented 1 month ago

On some of our users with a lot of indexes, we ended exposing thousands of metrics. The endpoint is fast enough, ... but metric backend can suffer from the high cardinality.

Solution 1

Just add a disable_index_level_metrics to quickwit config, that would use the label "_any" for all index label in metrics.

Solution 2

One neat way we could do that for instance, could be by adding a index_metric_group parameter in the index config that would be used instead of the index in the metric label if supplied. (if not fallback to the index id)

It might not be a proper solution for the control plane metrics however. We could entirely remove the index labels for that one.

esatterwhite commented 1 month ago

The index level information is valuable / useful. If it could be exposed from an API endpoint, people could build their own tooling around it.

guilload commented 3 weeks ago

Closed via #5125.

trinity-1686a commented 3 weeks ago

the solution 1 has been implemented, do we want to eventually support solution2?