ARTIFACTORY: How do I customize how frequently I receive Project Storage quota alerts?

Fadi Rouhana
2023-01-22 11:10

By default, projects are set with an unlimited storage quota. Platform admins can limit the space allocated for the project repositories by setting storage quotas at the project level when creating a new project:

User-added image

To help Project Admins manage storage quotas, a set of quota alerts are displayed within the Project dashboard in the UI. These alerts are displayed when a project reaches 75 percent capacity and at 100 percent, whereby no additional artifacts can be deployed.

User-added image

At the project level, under the Storage tab in the left pane, you can view the “Artifacts Size” for each repository in the project:

User-added image

By default, these alerts are sent to the platform admins' and project admins' email addresses every hour. However, they can be set up to run with a longer interval for less frequent alerts.

To do so, we will need to add the following property to the Artifactory System Properties file (See ​​Configuration Files – JFrog – JFrog Documentation for more), which is responsible for setting the interval of minutes the storage quota job is scheduled to run:

artifactory.projects.storage.quota.notification.job.interval.minutes=60

The property should be placed under the $JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties file. A restart is required for the changes to take effect.
 
By default, the “artifactory.projects.storage.quota.notification.job.interval.minutes” property is set to 60 minutes.
 
For instance, you may change its value to 1440 to make it run once per day:

artifactory.projects.storage.quota.notification.job.interval.minutes=1440

Should you need any further information, please do not hesitate to contact support@jfrog.com.