How to get the agent node load statistics for 30 days

How to get the agent node load statistics for 30 days

The node load statistics offers only 3 ranges
short: 6 hours
medium: 2 days
long: 2 months I think (my instance doesn’t run that long usually)
Also the data is only kept in memory, so only the data since the start is available.

If you want to have the data persisted, you will need to extract the data and store it in an outside system. I have written a job that runs some system groovy script that will collect data for nodes, label expressions from freestyle jobs and some list of hard coded label expressions (used in pipeline jobs) and pushes that data to an external system where I can visualize the data (with whatever timeframe I want).