FD.io VPP  v19.01.2-3-gf61a1a8
Vector Packet Processing
vpp_prometheus_export.c File Reference
+ Include dependency graph for vpp_prometheus_export.c:

Go to the source code of this file.

Data Structures

union  my_sockaddr
 

Macros

#define SERVER_PORT   9482
 
#define ROOTPAGE   "<html><head><title>Metrics exporter</title></head><body><ul><li><a href=\"/metrics\">metrics</a></li></ul></body></html>"
 
#define NOT_FOUND_ERROR   "<html><head><title>Document not found</title></head><body><h1>404 - Document not found</h1></body></html>"
 

Functions

static char * prom_string (char *s)
 
static void dump_metrics (FILE *stream, u8 **patterns)
 
static void http_handler (FILE *stream, u8 **patterns)
 
static int start_listen (u16 port)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define NOT_FOUND_ERROR   "<html><head><title>Document not found</title></head><body><h1>404 - Document not found</h1></body></html>"

Definition at line 122 of file vpp_prometheus_export.c.

#define ROOTPAGE   "<html><head><title>Metrics exporter</title></head><body><ul><li><a href=\"/metrics\">metrics</a></li></ul></body></html>"

Definition at line 121 of file vpp_prometheus_export.c.

#define SERVER_PORT   9482

Definition at line 36 of file vpp_prometheus_export.c.

Function Documentation

static void dump_metrics ( FILE *  stream,
u8 **  patterns 
)
static

Definition at line 52 of file vpp_prometheus_export.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void http_handler ( FILE *  stream,
u8 **  patterns 
)
static

Definition at line 125 of file vpp_prometheus_export.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int main ( int  argc,
char **  argv 
)

Definition at line 235 of file vpp_prometheus_export.c.

+ Here is the call graph for this function:

static char* prom_string ( char *  s)
static

Definition at line 39 of file vpp_prometheus_export.c.

+ Here is the caller graph for this function:

static int start_listen ( u16  port)
static

Definition at line 181 of file vpp_prometheus_export.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function: