go-graphite / graphite-clickhouse

Graphite cluster backend with ClickHouse support
MIT License
213 stars 52 forks source link

finder: restrict seriesByTag (require minimum non-wildcarded eq arguments) #230

Closed msaf1980 closed 1 year ago

msaf1980 commented 1 year ago

On large setup some requests like seriesByTag('name=~test.*.*.rabbitmq_overview.connections') or seriesByTag('name=test.*.*.rabbitmq_overview.connections') may be too costly. Yes, this a bad pattern, but we need a way restrict bad queries before execution query and max_read_rows limit for reduce database load.