显示关于最新值缓存的信息
使用 influxdb3 show system table
命令 从 last_caches
系统表中查询并输出最新值缓存信息。
influxdb3 show system \
--database DATABASE_NAME \
--token AUTH_TOKEN \
table last_caches
这将返回一个类似于下表的表格
表 | 名称 | key_column_ids | key_column_names | value_column_ids | value_column_names | 计数 | ttl |
---|---|---|---|---|---|---|---|
weather | weather_last | [0] | [location] | [2, 3, 4, 5, 1] | [precip, temp_avg, temp_max, temp_min, wind_avg] | 1 | 86400 |
bitcoin | bitcoin_last | [0, 1] | [code, crypto] | [4] | [price] | 1 | 14400 |
numbers | numbers_last | [] | [] | [0, 1] | [a, b] | 5 | 14400 |
home | home_last | [0] | [room] | [1, 2, 3] | [temp, hum, co] | 5 | 60 |
从 last_caches 系统表中查询特定列
使用 --select
选项从 last_caches
系统表中查询特定列。提供一个逗号分隔的列列表以返回
influxdb3 show system \
--database DATABASE_NAME \
--token AUTH_TOKEN \
table last_caches \
--select name,key_column_names,value_column_names
排序 last_caches 系统表输出
使用 --order-by
选项按特定列对 last_caches
系统表中的数据进行排序。提供一个逗号分隔的列列表以进行排序
influxdb3 show system \
--database DATABASE_NAME \
--token AUTH_TOKEN \
table last_caches \
--order-by table,ttl
结果根据提供的列按升序排序。
在以上示例中,替换以下内容
DATABASE_NAME
: 要从中查询系统数据的数据库名称AUTH_TOKEN
: 您的 InfluxDB 3 Core 身份验证令牌
此页面是否对您有帮助?
感谢您的反馈!
支持与反馈
感谢您成为我们社区的一份子!我们欢迎并鼓励您的反馈和错误报告,以改进 InfluxDB 3 Core 和本文档。如需获得支持,请使用以下资源
拥有年度或支持合同的客户 可以联系 InfluxData 支持。