]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_prometheus: Add CLI commands
authorMatt Jordan <mjordan@digium.com>
Thu, 3 Jan 2019 16:28:28 +0000 (10:28 -0600)
committerMatt Jordan <mjordan@digium.com>
Wed, 22 May 2019 13:24:39 +0000 (08:24 -0500)
commita2648b22ebbdc53d95946d6c2b215febab49d376
treeeabe0c140451feb481731dc8e2d2d7a7c467d9d8
parent066280f0cc301ffc10c200212209df4450348815
res_prometheus: Add CLI commands

This patch adds a few CLI commands to the res_prometheus module to aid
system administrators setting up and configuring the module. This includes:

* prometheus show status: Display basic statistics about the Prometheus
  module, including its essential configuration, when it was last scraped,
  and how long the scrape took. The last two bits of information are useful
  when Prometheus isn't generating metrics appropriately, as it will at
  least tell you if Asterisk has had its HTTP route hit by the remote
  server.

* prometheus show metrics: Dump the current metrics to the CLI. Useful for
  system administrators to see what metrics are currently available without
  having to cURL or go to Prometheus itself.

ASTERISK-28403

Change-Id: Ic09813e5e14b901571c5c96ebeae2a02566c5172
res/prometheus/bridges.c
res/prometheus/cli.c [new file with mode: 0644]
res/prometheus/endpoints.c
res/prometheus/prometheus_internal.h
res/res_prometheus.c