Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make server status metrics optional #210

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

0xAX
Copy link
Member

@0xAX 0xAX commented Jul 27, 2021

This commits adds new configuration option - server_status_metrics_enabled to
enable new RADIUS server status metrics.

This was done to avoid situation when eradius is used without prometheus library
so creation/usage of this metric will not be crashed at startup of eradius
application.

The default value of the new configuration option is set to false to preserve
backward compatibility.

@0xAX 0xAX requested a review from a team as a code owner July 27, 2021 15:42
METRICS.md Outdated Show resolved Hide resolved
METRICS.md Outdated Show resolved Hide resolved
@0xAX 0xAX force-pushed the fix-radius-server-metrics-initialization branch from 8b4c9db to 322dc19 Compare July 27, 2021 16:03
@vkatsuba
Copy link
Contributor

Could you please also add description and examples how and what for need enable this new metrics?

@0xAX 0xAX force-pushed the fix-radius-server-metrics-initialization branch from 322dc19 to 3f823e0 Compare July 28, 2021 07:34
README.md Outdated
@@ -232,6 +232,8 @@ Example of full configuration with keys which can use in `eradius`:
{{127, 0, 0, 3}, 1812, <<"secret">>}
]}
]},
{server_status_metrics_enabled, false},
{counter_aggregator, false},,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

,,

This commits adds new configuration option - `server_status_metrics_enabled` to
enable new RADIUS server status metrics.

This was done to avoid situation when eradius is used without prometheus library
so creation/usage of this metric will not be crashed at startup of eradius
application.

The default value of the new configuration option is set to `false` to preserve
backward compatibility.
@0xAX 0xAX force-pushed the fix-radius-server-metrics-initialization branch from 3f823e0 to dfb668c Compare July 28, 2021 07:41
Copy link
Contributor

@vkatsuba vkatsuba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@vkatsuba vkatsuba merged commit 82a01d2 into master Jul 28, 2021
@vkatsuba vkatsuba deleted the fix-radius-server-metrics-initialization branch July 28, 2021 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants