<%inherit file="base.html"/> % for endpoint, stat_endpoint in endpoints.items():
${endpoint} Watchers
Reload config
Add Watcher
Name
Processes
Command
Shell
uid
gid
Status
% for watcher, options in controller.get_client(endpoint).watchers: % if watcher not in controller.get_client(endpoint).plugins:
${watcher}
${options['numprocesses']}
${options['cmd']} ${options['args']}
${options['shell']}
${options['uid']}
${options['gid']}
% endif % endfor
Circus Daemons
CPU
Memory
%if controller.get_client(endpoint).use_sockets:
Socket reads
%endif
<%def name='draw_graph_div(watcher, name=None, display_status=False, socket=False, endpoint=None, stat_endpoint=None)'>
${name or watcher} %if display_status:
%endif
%if socket:
Reads 0
%else:
CPU 0 %
Mem 0 %
%endif
${draw_graph_div('circus', endpoint=endpoint, stat_endpoint=stat_endpoint)} ${draw_graph_div('circusd-stats', endpoint=endpoint, stat_endpoint=stat_endpoint)} %if controller.get_client(endpoint).embed_httpd: ${draw_graph_div('circushttpd', 'circushttpd', endpoint=endpoint, stat_endpoint=stat_endpoint)} %endif %if controller.get_client(endpoint).use_sockets: ${draw_graph_div('socket-stats', 'Socket Activity (see all the sockets for the endpoint)', socket=True, endpoint=endpoint, stat_endpoint=stat_endpoint)} %endif %for plugin in controller.get_client(endpoint).plugins: ${draw_graph_div(plugin, plugin.split(':')[1].replace('-', '.'), True, endpoint=endpoint, stat_endpoint=stat_endpoint)} %endfor
Options
ZeroMQ endpoint used to connect clients like circusctl or circushttpd ${endpoint}
ZeroMQ endpoint used for pub/sub ${controller.get_client(endpoint).pubsub_endpoint}
ZeroMQ endpoint used for the pub/sub stats ${controller.get_client(endpoint).stats_endpoint}
Delay in seconds for the ZMQ polling. ${controller.get_client(endpoint).check_delay}
% endfor