Skip to content

Infrastructure Integration

Configuration

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

    #
    #   There are two ways to get started with the supervisord check.
    #
    #   You can configure inet_http_server in /etc/supervisord.conf. Below is an
    #   example inet_http_server configuration:
    #
    #       [inet_http_server]
    #       port:localhost:9001
    #       username:user  # optional
    #       password:pass  # optional
    #
    #   OR, you can use supervisorctl socket to communicate with supervisor.
    #   If supervisor is running as root, make sure chmod property is set
    #   to a permission accessible to non-root users. See the example below:
    #
    #       [supervisorctl]
    #       serverurl=unix:///var/run//supervisor.sock
    #
    #       [unix_http_server]
    #       file=/var/run/supervisor.sock
    #       chmod=777
    #
    #  Reload supervisor, specify the inet or unix socket server information
    #  in this yaml file along with an optional list of the processes you want
    #  to monitor per instance, and you're good to go!
    #
    #  See http://supervisord.org/configuration.html for more information on
    #  configuring supervisord sockets and inet http servers.
    #
    
    init_config:
    
    instances:
    #   - name: server0    # Required. An arbitrary name to identify the supervisord server
    #     host: localhost  # Optional. Defaults to localhost. The host where supervisord server is running
    #     port: 9001       # Optional. Defaults to 9001. The port number.
    #     user: user       # Optional. Required only if a username is configured.
    #     pass: pass       # Optional. Required only if a password is configured.
    #     proc_regex:      # Optional. Regex pattern[s] matching the names of processes to monitor
    #      - 'myprocess-\d\d$'
    #     proc_names:      # Optional. The process to monitor within this supervisord instance.
    #      - apache2       #           If not specified, the check will monitor all processes.
    #      - webapp
    #      - java
    #   - name: server1
    #     host: localhost
    #     port: 9002
    #   - name: server2
    #     socket: unix:///var/run//supervisor.sock
    #     host: http://127.0.0.1        # Optional. Defaults to http://127.0.0.1
    
  2. Check and make sure that all yaml files are valid with following command:

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

    /etc/init.d/epoch-collectors restart
    
  4. 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
    ======

      [...]

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

Infrastructure Datasources

Datasource Available Aggregations Unit Description
supervisord.process.count avg max min sum process The number of supervisord monitored processes
supervisord.process.uptime avg max min sum second The process uptime