Skip to content

Commit

Permalink
[docs] Added documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Sep 8, 2023
1 parent a0bd8fb commit 0190960
Show file tree
Hide file tree
Showing 7 changed files with 82 additions and 1 deletion.
Binary file added docs/source/images/radius-traffic-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/images/user-registration-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ that are common in WiFi and ISP deployments.
/user/social_login
/user/saml
/user/change_of_authorization
/user/radius_monitoring
/user/api
/developer/signals
/developer/how_to_extend
Expand Down
78 changes: 78 additions & 0 deletions docs/source/user/radius_monitoring.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
Integration with OpenWISP Monitoring
------------------------------------

OpenWISP RADIUS includes an optional Django sub-app that adds integration with
`OpenWISP Monitoring <https://github.com/openwisp/openwisp-monitoring#openwisp-monitoring>`_
to provide RADIUS metrics.

RADIUS metrics
==============

1. User registrations
~~~~~~~~~~~~~~~~~~~~~

.. image:: /images/user-registration-chart.png
:alt: User registration chart

This chart shows number of users signed up using different registration methods.

2. Cumulative user registrations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. image:: /images/total-user-registration-chart.png
:alt: Cumulative user registration chart

This chart shows total users registered using different registration methods
in the system on a given date.

3. Unique RADIUS Sessions
~~~~~~~~~~~~~~~~~~~~~~~~~

.. image:: /images/unique-radius-session-chart.png
:alt: Unique RADIUS session chart

This chart shows unique RADIUS sessions. It is helpful to know how many
unique users has used the system in a given time.

4. RADIUS traffic
~~~~~~~~~~~~~~~~~

.. image:: /images/radius-traffic-chart.png
:alt: RADIUS traffic chart

This chart shows the RADIUS traffic generated by user sessions.

Enabling RADIUS metrics in Django project
=========================================

You can enable the monitoring integration by including ``openwisp_radius.integrations.monitoring``
in ``INSTALLED_APPS`` of your Django project's settings as following:


.. code-block:: python
# In your_project/settings.py
INSTALLED_APPS = [
# ...
'openwisp_radius',
'openwisp_radius.integrations.monitoring' # <--- add the app after openwisp_radius
# ...
]
.. note::

Ensure your Django project is correctly configured to utilize OpenWISP Monitoring as
outlined in the `OpenWISP Monitoring's documentation <https://github.com/openwisp/openwisp-monitoring#setup-integrate-in-an-existing-django-project>`_.
For production environments, it is advisable to deploy OpenWISP using
`Ansible OpenWISP2 <https://github.com/openwisp/ansible-openwisp2>`_ or
`Docker OpenWISP <https://github.com/openwisp/docker-openwisp>`_, as they simplify
the deployment process considerably.

.. important::

If you are registering a :ref:`"registration method" <register_registration_method>`
in any other Django application, then ``openwisp_radius.integrations.monitoring``
should come after that app in the ``INSTALLED_APPS``. Otherwise, the
registration method would not appear in the chart.

4 changes: 3 additions & 1 deletion docs/source/user/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ or Cameroon (``+237``).

OpenWISP RADIUS only allow using mobile phone numbers for user registration.
This can cause issues in regions where fixed line and mobile phone numbers
uses the same pattern (e.g. USA). Setting the value to ``True``
uses the same pattern (e.g. USA). Setting the value to ``True``
would make phone number type checking less strict.

``OPENWISP_RADIUS_SMS_COOLDOWN``
Expand Down Expand Up @@ -638,6 +638,8 @@ The following choices are available by default:
**Disclaimer:** these are just suggestions on possible configurations
of OpenWISP RADIUS and must not be considered as legal advice.

.. _register_registration_method:

Adding support for more registration/verification methods
#########################################################

Expand Down

0 comments on commit 0190960

Please sign in to comment.