influxdata / influxdb

Scalable datastore for metrics, events, and real-time analytics
https://influxdata.com
Apache License 2.0
29k stars 3.56k forks source link

Add a REST API to create metadata caches #25546

Open hiltontj opened 1 week ago

hiltontj commented 1 week ago

Metadata caches can be created via the following API:

POST /api/v3/configure/meta_cache

with body parameters:

The API should respond with a structure representing the created cache. This API should be idempotent, so duplicate calls to create a cache will not result in duplicate caches being created, but only a single cache. The last cache create API behaves similar.

The columns, if not provided in the request, will be selected as the tag set in lexicographical order, or the series key, of the table. Only string columns, i.e., tags or string fields, are allowed for the time being - specifying another column type is an error.

The max_cardinality will default to 100,000 if not specified.