Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Create new json file in includes/modules/Hosting/cpanel2/custommetrics directory
  2. Copy contents of includes/modules/Hosting/cpanel2/custommetrics/sample.json to your custom file to be used 
  3. Update file contents to match your list of packages in cPanel installs
    1. Ensure your variable names (keys in json structure) are prefixed with "reselleraccounts_"
    2. If your cPanel package is named ie: "large", key should be: "reselleraccounts_large"

includes/modules/Hosting/cpanel2/custommetrics/sample.json file:

Code Block
languagejs
{
  "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."
  }
}

...