Skip to content

Commit

Permalink
[req-change] Use verbose label for SAML in radius monitoring charts
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Apr 4, 2024
1 parent 78e65a0 commit b239d05
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openwisp_radius/integrations/monitoring/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@
from openwisp_monitoring.monitoring.configuration import DEFAULT_COLORS

from openwisp_radius.registration import REGISTRATION_METHOD_CHOICES
from openwisp_radius.settings import SAML_REGISTRATION_METHOD_LABEL

user_signups_chart_traces = {'total': 'lines'}
user_signups_chart_order = ['total']
user_signups_chart_trace_labels = {
'total': _('Total'),
'saml': SAML_REGISTRATION_METHOD_LABEL,
}
user_signups_chart_summary_labels = [_('Total new users')]

for (method, label) in REGISTRATION_METHOD_CHOICES:
Expand All @@ -27,6 +32,7 @@
'label': _('User Registration'),
'description': _('Daily user registration grouped by registration method'),
'summary_labels': user_signups_chart_summary_labels,
'trace_labels': user_signups_chart_trace_labels,
'order': 240,
'__all__': True,
'unit': '',
Expand Down Expand Up @@ -141,6 +147,7 @@
'RADIUS Network traffic (total, download and upload).'
),
'summary_labels': user_signups_chart_summary_labels,
'trace_labels': user_signups_chart_trace_labels,
'unit': '',
'order': 222,
'query': {
Expand Down Expand Up @@ -219,6 +226,7 @@
'RADIUS Network traffic (total, download and upload).'
),
'summary_labels': user_signups_chart_summary_labels,
'trace_labels': user_signups_chart_trace_labels,
'unit': '',
'order': 243,
'query': {
Expand Down

0 comments on commit b239d05

Please sign in to comment.