Go to the source code of this file.
|
#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>" |
|
◆ NOT_FOUND_ERROR
#define NOT_FOUND_ERROR "<html><head><title>Document not found</title></head><body><h1>404 - Document not found</h1></body></html>" |
◆ ROOTPAGE
#define ROOTPAGE "<html><head><title>Metrics exporter</title></head><body><ul><li><a href=\"/metrics\">metrics</a></li></ul></body></html>" |
◆ SERVER_PORT
◆ dump_metrics()
static void dump_metrics |
( |
FILE * |
stream, |
|
|
u8 ** |
patterns |
|
) |
| |
|
static |
◆ http_handler()
static void http_handler |
( |
FILE * |
stream, |
|
|
u8 ** |
patterns |
|
) |
| |
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ prom_string()
static char* prom_string |
( |
char * |
s | ) |
|
|
static |
◆ start_listen()
static int start_listen |
( |
u16 |
port | ) |
|
|
static |