...
- Create new json file in includes/modules/Hosting/cpanel2/custommetrics directory
- Copy contents of includes/modules/Hosting/cpanel2/custommetrics/sample.json to your custom file to be used
- Update file contents to match your list of packages in cPanel installs
- Ensure your variable names (keys in json structure) are prefixed with "reselleraccounts_"
- If your cPanel package is named ie: "large", key should be: "reselleraccounts_large"
includes/modules/Hosting/cpanel2/custommetrics/sample.json file:
Code Block | ||
---|---|---|
| ||
{ "reselleraccounts_default": { "name": "Reseller accounts default", "unit": "accounts", "description": "Count of reseller owned accounts using default package." }, "reselleraccounts_small": { "name": "Reseller accounts small", "unit": "accounts", "description": "Count of reseller owned accounts using small package." } } |
...