Retention of Prometheus Plugin metrics in Jenkins

Currently the prometheus plugin exposes the jenkins metrics on /prometheus endpoint. But the data is only 2 days old. How do we increase this retention so that we get old executor data as well.

Not relevant. It’s an issue with our prometheus retention size.