How do I make CSV files that check to server's cpu, memory in hourly within the range of 2 months

Hi, i’m using NewRelic one for Server Monitoring in my datacenter
but I have some Problems
my problems are this.

Scenario: I want to make CSV files that check to server’s cpu, memory in hourly within the range of 2 months
Problem: I tried to create a file using Nrql, but it failed because of the following restrictions.
Restriction:

  1. Extract metric timeslice data | New Relic Documentation
  • so, it can only Util 7 days
  1. I did excute My Query, but Result is only one day
  • E.G.) FROM SystemSample SELECT latest(timestamp), average(cpuPercent), average(memoryUsedPercent) FACET displayName, hourOf(timestamp) where displayName = ‘Hostname’ SINCE 7 days ago UNTIL NOW LIMIT MAX
  • Result) Yes, it’s a Only one day’s value

If I don’t use Nrql, I want to see an answer that fits the scenario
so, Could you help me?
Even if you doesn’t, Thanks for reading this long post.