<commit_before>Configuration
=============

.. code-block:: yaml

    registry:
        class: lymph.discovery.zookeeper:ZookeeperServiceRegistry
        hosts: 127.0.0.1:2181
    
    event_system:
        class: lymph.events.kombu:KombuEventSystem
        transport: amqp
        hostname: 127.0.0.1

You can find this sample configuration file in :file:`conf/service.yml`.


Container Configuration
-----------------------

.. describe:: container:ip:

    use this IP address. The :option:`--ip <lymph --ip>` option for 
    :program:`lymph` takes precedence. Default: ``127.0.0.1``.


.. describe:: container:port:

    Use this port for the service endpoint. The :option:`--port <lymph --port>` 
    option for :program:`lymph` takes precedence. If no port is configured, lymph
    will pick a random port.


.. describe:: container:class:

    the container implementation. You probably don't have to change this.
    Default: ``lymph.core.container:Container``

.. _config-container-log_endpoint:

.. describe:: container:log_endpoint:

    the local ZeroMQ endpoint that should be used to publish logs via 
    the :ref:`_zmqpub <config-logging-_zmqpub>` handler.


.. _interface-config:

Interface Configuration
-----------------------<commit_msg>Added docs for monitor_endpoint config<commit_after>Configuration
=============

.. code-block:: yaml

    registry:
        class: lymph.discovery.zookeeper:ZookeeperServiceRegistry
        hosts: 127.0.0.1:2181
    
    event_system:
        class: lymph.events.kombu:KombuEventSystem
        transport: amqp
        hostname: 127.0.0.1

You can find this sample configuration file in :file:`conf/service.yml`.


Container Configuration
-----------------------

.. describe:: container:ip:

    use this IP address. The :option:`--ip <lymph --ip>` option for 
    :program:`lymph` takes precedence. Default: ``127.0.0.1``.


.. describe:: container:port:

    Use this port for the service endpoint. The :option:`--port <lymph --port>` 
    option for :program:`lymph` takes precedence. If no port is configured, lymph
    will pick a random port.


.. describe:: container:class:

    the container implementation. You probably don't have to change this.
    Default: ``lymph.core.container:Container``

.. _config-container-log_endpoint:

.. describe:: container:log_endpoint:

    the local ZeroMQ endpoint that should be used to publish logs via 
    the :ref:`_zmqpub <config-logging-_zmqpub>` handler.

.. describe:: container:monitor_endpoint:

    the ZeroMQ endpoint that monitoring data should be sent to.


.. _interface-config:

Interface Configuration
-----------------------
{'fraction_non_alphanumeric': 0.14620324896108802, 'fraction_numerical': 0.01662259161314696, 'mean_word_length': 2.8656934306569344, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4189413', 'n_tokens_mistral': 817, 'n_tokens_neox': 715, 'n_words': 232}