Settings -> Polling Settings
Retentions for custom pollers can be changed with:
Detailed UnDP Statistics Retention
Hourly UnDP Statistics Retention
Daily UnDP Statistics Retention
Depends on your NPM version, this settings are not available in older NPM versions.