1

When I search for SELECT count(*) FROM requests WHERE foo = 'bar' FACET dateOf(eventtime) SINCE 3 days ago in New Relic, it gives me the following table:

DATE OF EVENTTIME COUNT
December 9, 2021 1.76 M

However, I want to know what numbers I have after 6 but New Relic doesn't show it. How can I make New Relic show the entire number?

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
sidney
  • 1,241
  • 15
  • 32

2 Answers2

1

There are 3 options suggested by Andy Cunningham in newrelic discuss

  1. You can, however, access the JSON widget type to get the raw values.

  2. multiply the count() function by 1, like so:

SELECT count(*)*1 AS 'Total' FROM 
  1. you may want to look at using the Query API instead. This will allow you to get the query results in JSON format

Ori Marko
  • 56,308
  • 23
  • 131
  • 233
1

You can get the absolute value like so:

SELECT abs(count(*)) FROM requests WHERE foo = 'bar' FACET dateOf(eventtime) SINCE 3 days ago

Neil
  • 7,861
  • 4
  • 53
  • 74