promql-langserver icon indicating copy to clipboard operation
promql-langserver copied to clipboard

Caching layer for Prometheus metadata API

Open slrtbtfs opened this issue 6 years ago • 1 comments

For performance reasons it is desirable to keep the number of requests to the connected Prometheus instance small.

To achieve that it would be nice to have some kind if in-memory caching layer between the language server and parts of the Prometheus v1 API.

@gotjosh mentioned that reusing the internal data structures of Prometheus implemented here would help reduce the memory footprint of such a cache.

slrtbtfs avatar Nov 18 '19 16:11 slrtbtfs

Before working on this should be performed some testing to figure out how much load on the Prometheus server the language server actually causes.

slrtbtfs avatar Feb 19 '20 17:02 slrtbtfs