diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | collector.h | 6 | ||||
-rw-r--r-- | scrape.c | 4 | ||||
-rw-r--r-- | scrape.h | 6 | ||||
-rw-r--r-- | util.h | 6 |
6 files changed, 13 insertions, 13 deletions
diff --git a/Makefile b/Makefile index 4e4db4e..62e8980 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ LDFLAGS = -Os -s # build rules -PROG = prometheus-nano-exporter +PROG = nano-exporter SRCS = main.c scrape.c util.c $(foreach c,$(COLLECTORS),$(c).c) OBJS = $(patsubst %.c,%.o,$(SRCS)) diff --git a/README.md b/README.md index 543d321..208ffef 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# prometheus-nano-exporter +# nano-exporter A minimalistic exporter of node metrics for the Prometheus monitoring system. diff --git a/collector.h b/collector.h index 8ab9c61..9aa291a 100644 --- a/collector.h +++ b/collector.h @@ -1,5 +1,5 @@ -#ifndef PNANOE_COLLECTOR_H_ -#define PNANOE_COLLECTOR_H_ 1 +#ifndef NANO_EXPORTER_COLLECTOR_H_ +#define NANO_EXPORTER_COLLECTOR_H_ 1 #include "stdbool.h" @@ -12,4 +12,4 @@ struct collector { bool has_args; }; -#endif // PNANOE_COLLECTOR_H_ +#endif // NANO_EXPORTER_COLLECTOR_H_ diff --git a/scrape.c b/scrape.c index 5bc7ee3..9621108 100644 --- a/scrape.c +++ b/scrape.c @@ -162,14 +162,14 @@ void scrape_write_raw(scrape_req *req, const void *buf, size_t len) { static const char http_success[] = "HTTP/1.1 200 OK\r\n" - "Server: prometheus-nano-exporter\r\n" + "Server: nano-exporter\r\n" "Content-Type: text/plain; charset=UTF-8\r\n" "Connection: close\r\n" "\r\n" ; static const char http_error[] = "HTTP/1.1 400 Bad Request\r\n" - "Server: prometheus-nano-exporter\r\n" + "Server: nano-exporter\r\n" "Content-Type: text/plain; charset=UTF-8\r\n" "Connection: close\r\n" "\r\n" diff --git a/scrape.h b/scrape.h index 8464cfe..9f99bf3 100644 --- a/scrape.h +++ b/scrape.h @@ -1,5 +1,5 @@ -#ifndef PNANOE_SCRAPE_H_ -#define PNANOE_SCRAPE_H_ 1 +#ifndef NANO_EXPORTER_SCRAPE_H_ +#define NANO_EXPORTER_SCRAPE_H_ 1 #include <stdbool.h> #include <stddef.h> @@ -41,4 +41,4 @@ void scrape_write(scrape_req *req, const char *metric, const char *(*labels)[2], */ void scrape_write_raw(scrape_req *req, const void *buf, size_t len); -#endif // PNANOE_SCRAPE_H_ +#endif // NANO_EXPORTER_SCRAPE_H_ diff --git a/util.h b/util.h index e1acc35..5ed1e45 100644 --- a/util.h +++ b/util.h @@ -1,5 +1,5 @@ -#ifndef PNANOE_UTIL_H_ -#define PNANOE_UTIL_H_ 1 +#ifndef NANO_EXPORTER_UTIL_H_ +#define NANO_EXPORTER_UTIL_H_ 1 #include <stdbool.h> #include <stddef.h> @@ -62,4 +62,4 @@ char *fgets_line(char *s, int size, FILE *stream); */ int write_all(int fd, const void *buf, size_t len); -#endif // PNANOE_UTIL_H_ +#endif // NANO_EXPORTER_UTIL_H_ |