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