代码之家  ›  专栏  ›  技术社区  ›  Thomas Koelle

减去New Relic中的nql平均值(diskFreeBytes)

  •  0
  • Thomas Koelle  · 技术社区  · 4 年前

    NRQL有效

    SELECT average(diskFreeBytes)/pow(2,30) as 'GB free' FROM StorageSample WHERE mountPoint='F:' and hostname = 'ABC' SINCE 24 hours AGO TIMESERIES
    

    但我不能扣除太字节

    SELECT (average(diskFreeBytes)/pow(2,30))-1000 as 'GB free' FROM StorageSample WHERE mountPoint='F:' and hostname = 'ABC' SINCE 24 hours AGO TIMESERIES
    

    有谁能解释为什么它不起作用,并提供一个这样的例子。

    0 回复  |  直到 4 年前
        1
  •  1
  •   GalloCedrone    4 年前

    我不会除以每波(2,30),图表足够聪明,可以单独改变单位:

    enter image description here

    推荐文章