Asterisk - The Open Source Telephony Project
21.4.1
|
Prometheus Endpoint Metrics. More...
#include "asterisk.h"
#include "asterisk/stasis_endpoints.h"
#include "asterisk/res_prometheus.h"
#include "prometheus_internal.h"
Go to the source code of this file.
Data Structures | |
struct | endpoint_metric_defs |
Macros | |
#define | ENDPOINTS_CHANNELS_COUNT_HELP "Count of the number of channels currently existing that are associated with the endpoint." |
#define | ENDPOINTS_STATE_HELP "Individual endpoint states. 0=unknown; 1=offline; 2=online." |
Functions | |
int | endpoint_metrics_init (void) |
Initialize endpoint metrics. More... | |
static void | endpoint_metrics_unload_cb (void) |
static void | endpoints_scrape_cb (struct ast_str **response) |
static void | get_endpoint_channel_count (struct prometheus_metric *metric, struct ast_endpoint_snapshot *snapshot) |
static void | get_endpoint_state (struct prometheus_metric *metric, struct ast_endpoint_snapshot *snapshot) |
Variables | |
struct endpoint_metric_defs | endpoint_metric_defs [] |
struct prometheus_callback | endpoints_callback |
static struct prometheus_metrics_provider | provider |
Prometheus Endpoint Metrics.
Definition in file res/prometheus/endpoints.c.
int endpoint_metrics_init | ( | void | ) |
Initialize endpoint metrics.
0 | success |
-1 | error |
Definition at line 198 of file res/prometheus/endpoints.c.
References prometheus_callback_register(), and prometheus_metrics_provider_register().
struct prometheus_callback endpoints_callback |
Definition at line 175 of file res/prometheus/endpoints.c.
|
static |
Definition at line 193 of file res/prometheus/endpoints.c.