Skip to content

Infrastructure Integration

Configuration

  1. Configure the agent by editing /etc/nutanix/epoch-dd-agent/conf.d/kong.yamlin the collectors.

Example:

    init_config:
    instances:
      # For every instance, you need an `kong_status_url` and can optionally
      # supply a list of tags.
      #
      - kong_status_url: http://localhost:8001/status/
      #   tags:
      #     - instance:foo
      #
      # - kong_status_url: http://example2.com:8001/status/
      #   tags:
      #     - instance:bar
  1. Check and make sure that all yaml files are valid with following command:

    /etc/init.d/epoch-collectors configcheck
    
  2. Restart the Agent using the following command:

    /etc/init.d/epoch-collectors restart
    
  3. Execute the info command to verify that the integration check has passed:

    /etc/init.d/epoch-collectors info
    

The output of the command should contain a section similar to the following:

        Checks
        ======

          [...]

          kong
          ----
              - instance #0 [OK]
              - Collected 8 metrics & 0 events

Infrastructure Datasources

Datasource Available Aggregations Unit Description
kong.table.count avg max min sum table Total number of tables in the database.
kong.table.items avg max min sum row Number of items in each table of the database.
kong.connections_accepted avg max min sum connection Total number of accepted client connections.
kong.connections_active avg max min sum connection Current number of active client connections including Waiting connections.
kong.connections_handled avg max min sum connection Total number of handled connections. (Same as accepts unless resource limits were reached).
kong.connections_reading avg max min sum connection Current number of connections where Kong is reading the request header.
kong.connections_waiting avg max min sum connection Current number of idle client connections waiting for a request.
kong.connections_writing avg max min sum connection Current number of connections where nginx is writing the response back to the client.
kong.total_requests avg max min sum request Total number of client requests.