Asterisk - The Open Source Telephony Project
21.4.1
|
Prometheus CLI Commands. More...
#include "asterisk.h"
#include "asterisk/cli.h"
#include "asterisk/localtime.h"
#include "asterisk/res_prometheus.h"
#include "prometheus_internal.h"
Go to the source code of this file.
Functions | |
int | cli_init (void) |
Initialize CLI command. More... | |
static void | cli_unload_cb (void) |
static char * | prometheus_show_metrics (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
static char * | prometheus_show_status (struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) |
Variables | |
static struct ast_cli_entry | cli_prometheus [] |
static struct prometheus_metrics_provider | provider |
Prometheus CLI Commands.
Definition in file res/prometheus/cli.c.
int cli_init | ( | void | ) |
Initialize CLI command.
0 | success |
-1 | error |
Definition at line 137 of file res/prometheus/cli.c.
References ast_cli_register_multiple, and prometheus_metrics_provider_register().
|
static |
Definition at line 114 of file res/prometheus/cli.c.
|
static |
Definition at line 132 of file res/prometheus/cli.c.