The Agent can collect data from Supervisor through a HTTP server or UNIX socket. The Agent collects the same data no matter which collection method you configure.
init_config:instances:## Used to tag service checks and metrics, i.e. supervisor_server:supervisord0- name:supervisord0host:localhostport:9001## To collect from the socket instead# - name: supervisord0# socket: unix:///var/run/supervisor.sock
Use the proc_names and/or proc_regex options to list processes you want the Agent to collect metrics on and create service checks for. If you don’t provide either option, the Agent tracks all child processes of Supervisor. If you provide both options, the Agent tracks processes from both lists meaning the two options are not mutually exclusive.
supervisord.can_connect Returns CRITICAL if the Agent check is unable to connect to the supervisor daemon. Returns OK otherwise. Statuses: ok, critical
supervisord.process.status Returns CRITICAL if the process is not running or stopping, UNKNOWN if starting or unknown, OK otherwise. Statuses: ok, critical, unknown