Monitor License Usage

Obtain information about your Kong Gateway deployment, including license usage and deployment information using the License Report module. Share this information with Kong to perform a health-check analysis of product utilization and overall deployment performance to ensure your organization is optimized with the best license and deployment plan for your needs.

How the license report module works:

  • The license report module manually generates a report containing usage and deployment data by sending a request to an endpoint, as defined below.
  • Share this report with your Kong representative to perform an analysis of your deployment.

What the license report module does not do:

  • The license report module does not automatically generate a report or send any data to any Kong servers.
  • The license report module does not track or generate any data other than the data that is returned in the response after you send a request to the endpoint.

Generate a License Report

Run the license report module and share the output information with your Kong representative for a deployment analysis.

Prerequisites: You must have Admin privileges to generate a license report.

To generate a license report, from an HTTP client:

  • For a JSON response, send an HTTP request to the Kong node endpoint /license/report. For example, use this cURL command:

    1. curl '<ADMIN_API_URL>/license/report'

    A JSON response returns, similar to the example below.

    1. HTTP/1.1 200 OK
    2. Access-Control-Allow-Credentials: true
    3. Access-Control-Allow-Origin: http://localhost:8002
    4. Connection: keep-alive
    5. Content-Length: 262
    6. Content-Type: application/json; charset=utf-8
    7. Date: Wed, 19 Feb 2020 05:54:23 GMT
    8. Server: kong/1.3-enterprise-edition
    9. Vary: Origin
    10. X-Kong-Admin-Request-ID: 6fmfr4Zl3RGmOs5oY0HvT47zt0oDq54o
    11. {
    12. "counters":{
    13. "req_cnt":22
    14. },
    15. "db_version":"postgres 9.5.20",
    16. "kong_version":"1.3-enterprise-edition",
    17. "license_key":"ASDASDASDASDASDASDASDASDASD_a1VASASD",
    18. "rbac_users":0,
    19. "services_count": 27,
    20. "system_info":{
    21. "cores":6,
    22. "hostname":"264da9b95dfa",
    23. "uname":"Linux x86_64"
    24. },
    25. "workspaces_count":1
    26. }
  • For a TAR file, enter the following cURL command to make a call to Kong Admin API.

    1. curl <ADMIN_API_URL>/license/report -o response.json && tar -cf report-$(date +"%Y_%m_%d_%I_%M_%p").tar response.json

    A license report file is generated and archives a report to *.tar file.

Report Structure

FieldDescription
kong_versionKong Gateway version
license_keyCurrent license key identifier
db_versionStorage name and version of node/cluster
system_info.coresSystem CPU cores of node
system_info.hostnameSystem hostname
system_info.unameSystem uname
workspaces_countNumber of workspaces
rbac_usersNumber of RBAC users
services_countNumber of Kong Services
counters.req_countNumber of requests node/cluster processed