search_table_semantics
Find tables by observability concept when the exact table name is unknown. Searches table names and semantic metadata, ranking matches to identify which table holds a metric like 'Redis memory usage'.
Instructions
Find tables by observability concept when the right table name is unknown.
Searches table names, semantic options, and entity declarations, and ranks
tables by how many query terms they matched. Use it before describe_table
when the schema is wide or table names do not say what they hold.
It searches schema metadata only, never telemetry row values, so it can say
which table holds Redis memory usage but not which row belongs to
`Redis02`. It ranks on the values in that metadata, not on the schema's own
key names, so search for `gauge` or `bytes` rather than `metric type`. Once
it returns candidates, query their data or describe one of them; do not
describe every candidate in turn.
It covers only the database this server is connected to, unlike
describe_table, which accepts a schema-qualified name.
Only tables carrying a `greptime.semantic.*` option, or one a built-in
convention derives a declaration for, are visible here. A table absent from
the results may still exist and hold the data, so fall back to SHOW TABLES
rather than concluding it is not there.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| signal_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |