收到有关InfluxDB问题的查询,这让我抓狂。我一直在通过Telegraf从Windows主机中放入数据,并且工作正常。但是,前几天我的剪切和粘贴记事本显示,当我执行以下操作时,我会获得价值。是同一数据库,我没有删除它或重新创建它。
> show tag values from win_net with key = instance
name:
win_net
key value
--- -----
instance Broadcom NetXtreme Gigabit Ethernet
instance Broadcom NetXtreme Gigabit Ethernet _2
instance Broadcom NetXtreme Gigabit Ethernet _3
>
但是,今天我这样做了,并且没有返回任何行。
> select * from win_net limit 1
name: win_net
time Bytes_Received_persec Bytes_Sent_persec Packets_Outbound_Discarded Packets_Outbound_Errors Packets_Received_Discarded Packets_Received_Errors Packets_Received_persec Packets_Sent_persec host instance objectname
---- --------------------- ----------------- -------------------------- ----------------------- -------------------------- ----------------------- ----------------------- ------------------- ---- -------- ----------
2018-08-23T08:57:02Z 6419.5498046875 6281.89697265625 0 0 0 0 73.74272155761719 62.9271240234375 FS-AWLAP Microsoft Hyper-V Network Adapter Network Interface
> show tag values from win_net with key = instance
>
是的,我在正确的数据库中,据我所知,我没有进行任何更改-执行Select *时,那里的数据很多。据我所知,Influx的版本为1.6.1。
此外,我还设计了这种用于查询ScaleIO / VxFlex的架构,对于熟悉的人来说,它看起来是否最佳?群集可以是备份群集也可以是生产群集,备份中有1个池,生产中有4个池。所有的统计信息只是领域。根据我的阅读,这是正确的方法,但是希望对您有帮助。
> show measurements with measurement = scaleio
name: measurements
name
----
scaleio
> show tag keys from scaleio
name: scaleio
tagKey
------
Cluster
Pool
> show field keys from scaleio
name: scaleio
fieldKey fieldType
-------- ---------
SecondaryReadBwc integer
SecondaryReadFromDevBwc integer
atRestCapacityInKb integer
bckRebuildReadBwc integer
bckRebuildWriteBwc integer
capacityAvailableForVolumeAllocationInKb integer
capacityInUseInKb integer
capacityLimitInKb integer
degradedHealthyCapacityInKb integer
failedCapacityInKb integer
fwdRebuildReadBwc integer
fwdRebuildWriteBwc integer
inUseVacInKb integer
maxCapacityInKb integer
normRebuildWriteBwc integer
primaryReadBWC integer
primaryReadFromDevBWC integer
primaryVacInKb integer
primaryWriteBwc integer
protectedCapacityInKb integer
protectedVacInKb integer
rebalanceReadBwc integer
rebalanceWriteBwc integer
secondaryVacInKb integer
secondaryWriteBwc integer
snapCapacityInUseInKb integer
spareCapacityInKb integer
thinCapacityAllocatedInKm integer
thinCapacityInUseInKb integer
totalReadBwc integer
totalWriteBwc integer
unusedCapacityInKb integer
先谢谢了。 A