rrb3942 / dialoginsight Goto Github PK
View Code? Open in Web Editor NEWDynamic Prometheus exporting for active dialogs
License: MIT License
Dynamic Prometheus exporting for active dialogs
License: MIT License
Hello, thanks for a great little project - @recourse set me upon it and I think it is going to be very useful!
However some of the dialog profile names that I used are suffixed with /b and /s naming flags as per the documentation for marking binary replicated and shared dialog profiles here https://opensips.org/html/docs/modules/3.2.x/dialog.html
I notice that the scraper does indeed request these profiles and a response is received with the correct profile flag set (replicated:yes in this case) but the data does not end up in prometheus.
Check the request (from dialoginfo to opensips) for egress/b
below
T 2023/09/12 12:29:48.258981 127.0.0.1:39022 -> 127.0.0.1:8888 [AP] #314
{"jsonrpc": "2.0", "id": "12360", "method": "profile_get_size", "params": ["egress/b"]}
T 2023/09/12 12:29:48.259047 127.0.0.1:8888 -> 127.0.0.1:39022 [AP] #316
HTTP/1.1 200 OK.
Connection: close.
Content-Length: 125.
Content-Type: application/json.
Date: Tue, 12 Sep 2023 11:29:48 GMT.
.
{"jsonrpc":"2.0","result":{"Profile":{"name":"egress","value":null,"count":0,"shared":"no","replicated":"yes"}},"id":"12360"}
Is this something I can solve with configuration somehow? If not, perhaps these could be exported with a naming convention of -b or -s into prometheus?
Thanks
Pete
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.