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

Add support for publishing custom prometheus data ( not stat driven ) #3310

Merged
merged 2 commits into from
May 7, 2024

Conversation

vladpaiu
Copy link
Member

Summary
Add support for publishing custom prometheus data ( not stat driven ).

Details
Certain data in OpenSIPS relies on internal counters ( ie. ratelimit, dialog profiles, etc ). There is currently no way to export these to prometheus. Also allows for the script writer to push it's own custom/external data to prometheus ( fetched on the spot, without keeping it as internal statistic in OpenSIPS )

Solution
Run custom OpenSIPS route which returns a JSON formatted AVP containing data to be published to prometheus.

Compatibility
Backwards-compatible.

Special Thanks to Voicenter for sponsoring the work.

@vladpaiu vladpaiu added this to the 3.5-dev milestone Feb 23, 2024
@razvancrainea razvancrainea self-assigned this Feb 23, 2024
@bogdan-iancu bogdan-iancu removed their request for review February 23, 2024 16:39
@razvancrainea razvancrainea merged commit 3452068 into master May 7, 2024
69 of 91 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants