Influxdb 将字段转换为标记后,没有查询结果
我正在使用Telegraf和遥测技术,我想根据接口的描述,“/interfaces/interface/subinterfaces/subinterface/state/description”查看接口上的通信量级别。不幸的是,接口描述是字段键,我使用processors.converter转换了它。因为在这之后我需要重写数据,所以我只是删除了整个测量,这样新的标记就可以发生了 我将描述视为标记字段,并将接口描述视为标记键 不幸的是,当我尝试按接口描述进行查询时,在任何查询上仍然得到空白结果Influxdb 将字段转换为标记后,没有查询结果,influxdb,telegraf,telemetry,Influxdb,Telegraf,Telemetry,我正在使用Telegraf和遥测技术,我想根据接口的描述,“/interfaces/interface/subinterfaces/subinterface/state/description”查看接口上的通信量级别。不幸的是,接口描述是字段键,我使用processors.converter转换了它。因为在这之后我需要重写数据,所以我只是删除了整个测量,这样新的标记就可以发生了 我将描述视为标记字段,并将接口描述视为标记键 不幸的是,当我尝试按接口描述进行查询时,在任何查询上仍然得到空白结果 #
### Relevant telegraf.conf:
# Convert values to another metric value type
[[processors.converter]]
# Fields to convert
[processors.converter.fields]
tag = ["/interfaces/interface/subinterfaces/subinterface/state/description"]
系统信息:
Telegraf 1.14.5
德比安
复制步骤:
(空结果)这是预期的,因为现在它是一个标记
> show tag keys
name: /interfaces/
tagKey
------
/interfaces/interface/subinterfaces/subinterface/state/description
我们可以在这里看到,现在它是一个标记键
> show tag values with key = "/interfaces/interface/subinterfaces/subinterface/state/description"
(提供所有说明)
(空结果)我希望根据接口描述得到一些结果
预期行为:
为具有该描述的接口提供一些结果
实际行为:
(未返回任何结果)
补充资料
我也在使用计时器,它也不会给出结果。你不能只从测量中选择一个标签。要使inflow返回结果,它至少需要select子句中的一个字段。select“/interface/interface/subinterfaces/subinterface/state/counters/out pkts”from/interfaces/where”/interfaces/interface/subinterface/state/description”=“some_description”这不是那个查询吗?因此,out pkts是一个字段/接口/测量和/接口/接口/子接口/子接口/状态/描述is标记。
> show tag values with key = "/interfaces/interface/subinterfaces/subinterface/state/description"
> SELECT "/interfaces/interface/subinterfaces/subinterface/state/counters/out-pkts" from /interfaces/ where "/interfaces/interface/subinterfaces/subinterface/state/description" = 'some_description'
SELECT "/interfaces/interface/subinterfaces/subinterface/state/counters/out-pkts" from /interfaces/ where "/interfaces/interface/subinterfaces/subinterface/state/description" = 'some_description'
SELECT "/interfaces/interface/subinterfaces/subinterface/state/counters/out-pkts" from /interfaces/ where "/interfaces/interface/subinterfaces/subinterface/state/description" = 'some_description'