We commit to storing APM data for 90 days, but the system may store more than that as resources permit.
If the question about granularity has to do with the input granularity at the agent level, the answer is no. The granularity set at the agent (which has a minimum granularity of 15 seconds) does not affect the duration of storage.