<p>George Joseph <strong>uploaded patch set #4</strong> to the change originally created by Matt Jordan.</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/11372">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">res_prometheus: Add metrics for PJSIP outbound registrations<br><br>When monitoring Asterisk instances, it's often useful to know when an<br>outbound registration fails, as this often maps to the notion of a trunk<br>and having a trunk fail is usually a "bad thing". As such, this patch<br>adds monitoring metrics that track the state of PJSIP outbound registrations.<br>It does this by looking for the Registry events coming across the Stasis<br>system topic, and publishing those as metrics to Prometheus. Note that<br>while this may support other outbound registration types (IAX2, SIP, etc.)<br>those haven't been tested. Your mileage may vary.<br><br>(And why are you still using IAX2 and SIP? It's 2019 folks. Get with the<br>program.)<br><br>This patch also adds Sorcery observers to handle modifications to the<br>underlying PJSIP outbound registration objects. This is useful when a<br>reload is triggered that modifies the properties of an outbound registration,<br>or when ARI push configuration is used and an object is updated or<br>deleted. Because we rely on properties of the registration object to<br>define the metric (label key/value pairs), we delete the relevant metric when<br>we notice that something has changed and wait for a new Stasis message to<br>arrive to re-create the metric.<br><br>ASTERISK-28403<br><br>Change-Id: If01420e38530fc20b6dd4aa15cd281d94cd2b87e<br>---<br>A res/prometheus/pjsip_outbound_registrations.c<br>M res/prometheus/prometheus_internal.h<br>M res/res_prometheus.c<br>3 files changed, 386 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/72/11372/4</pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/11372">change 11372</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/11372"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If01420e38530fc20b6dd4aa15cd281d94cd2b87e </div>
<div style="display:none"> Gerrit-Change-Number: 11372 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: Matt Jordan <mjordan@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: George Joseph <gjoseph@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Matt Jordan <mjordan@digium.com> </div>
<div style="display:none"> Gerrit-MessageType: newpatchset </div>