Hey guys, I’m trying to use this example but it doesn’t seem to work for this pair of sources (PageAction
and Metric
):
I have
SELECT
filter(count(*), WHERE eventtype() = 'PageAction') /
filter(average(newrelic.timeslice.value), where metricTimesliceName = 'Custom/gameserver.health_users')
FROM PageAction, Metric WHERE appName LIKE '%' TIMESERIES auto
Which doesn’t work (with no error), while
SELECT
filter(count(*), WHERE eventtype() = 'PageAction')
FROM PageAction, Metric WHERE appName LIKE '%' TIMESERIES auto
and
SELECT
filter(average(newrelic.timeslice.value), where metricTimesliceName = 'Custom/gameserver.health_users')
FROM PageAction, Metric WHERE appName LIKE '%' TIMESERIES auto
Do work, as does dividing by something else:
SELECT
filter(count(*), WHERE eventtype() = 'PageAction') /
filter(count(*), WHERE eventtype() = 'Metric')
FROM PageAction, Metric WHERE appName LIKE '%' TIMESERIES auto
Interestingly, if I replace the /
with a ,
in the original query, only the second value (users) shows up, despite it working alone.
I’ve combed the forum for every example of division and can’t figure out why this doesn’t work