azure - 如何在 KQL 上创建转化指标

标签 azure kql kusto-explorer

我正在尝试 KQL 查询,目前他们给了我比特/秒的输出,我希望接口(interface)速度为千兆比特/秒,而不是每秒比特。

enter image description here

  current out put. 

 networkInterfaces_IN       networkInterfaces_OUT
 983,777,544,056             834,528,195,752
 83,777,544,0568             734,528,195,752

谢谢!

最佳答案

  • 尝试使用 format_bytes() 将输入从位转换为千兆位。
  • format_bytes() 的语法如下,
    format_bytes( [, 精度 [, 单位>]])
    值:您需要作为数据传递的数字(以字节为单位)。
    精度:默认为0,即需要四舍五入的位数。 (可选)
    单位:结果数据大小,字符串格式,如字节、KB、MB、GB、TB。 (可选)

您应该注意转换值,例如 1024 字节 等于 1 KB

有关此内容的更多信息,您可以引用下面的内容,

  1. format-bytes function
  2. Function to convert bytes into KB MB GB TB PB, etc.,
  3. Convert bits per second to gigabit/second

关于azure - 如何在 KQL 上创建转化指标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72399684/

相关文章:

azure - 如何以编程方式删除或重命名 Azure Active Directory?

azure-data-explorer - 仅当满足某些其他条件时才可能有 Kusto where 语句吗?

azure - 如何基于ALA渲染累积直方图

kql - KUSTO 查询语言 (KQL) - 无法解压字典

azure - 使用 REST API 创建 Azure App Insights 失败需要 ROLE

azure - Microsoft Azure - Multi-Tenancy 架构和登陆区

azure-data-explorer - Azure 数据资源管理器 - 跟踪查询、仪表板集群的内存使用情况

azure - 如何使用 Azure Kusto 从列中的拆分部分获取唯一 ID

azure-data-explorer - 检查 Kusto 的特定列中是否存在字典的键?

sql-server - 如何在Azure中备份和维护SQL Server表?