[Asterisk-code-review] res_prometheus: Add Asterisk endpoint metrics (...asterisk[master])

George Joseph asteriskteam at digium.com
Tue May 21 08:54:19 CDT 2019


George Joseph has posted comments on this change. ( https://gerrit.asterisk.org/c/asterisk/+/11373 )

Change subject: res_prometheus: Add Asterisk endpoint metrics
......................................................................


Patch Set 2: Code-Review+1

(1 comment)

https://gerrit.asterisk.org/#/c/11373/2/res/prometheus/endpoints.c 
File res/prometheus/endpoints.c:

https://gerrit.asterisk.org/#/c/11373/2/res/prometheus/endpoints.c@137 
PS2, Line 137: 	for (i = 0; i < ARRAY_LEN(endpoint_metric_defs); i++) {
> Can you swap the "for" loops so we don't have to traverse the
 > endpoint container multiple times?

Nevermind.  It's not worth it.  You'd have to create an array of string buffers to accumulate the output for each metric.



-- 
To view, visit https://gerrit.asterisk.org/c/asterisk/+/11373
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-Change-Id: I46443963330c206a7d12722d08dcaabef672310e
Gerrit-Change-Number: 11373
Gerrit-PatchSet: 2
Gerrit-Owner: Matt Jordan <mjordan at digium.com>
Gerrit-Reviewer: Friendly Automation
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Comment-Date: Tue, 21 May 2019 13:54:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: George Joseph <gjoseph at digium.com>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20190521/41df5fca/attachment.html>


More information about the asterisk-code-review mailing list