From 9d5a71c7bab5e7273af938f974d97ef0098502fb Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Fri, 7 Jun 2024 13:13:49 +0200 Subject: add --stdout --- scrape.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scrape.h') diff --git a/scrape.h b/scrape.h index 0c93828..f163e52 100644 --- a/scrape.h +++ b/scrape.h @@ -43,6 +43,9 @@ void scrape_serve(scrape_server *server, unsigned ncoll, const struct collector /** Closes the scrape server sockets and frees any resources. */ void scrape_close(scrape_server *server); +/** Run all scrapers once and print to stdout. */ +void scrape_print(unsigned ncoll, const struct collector *coll[], void *coll_ctx[]); + /** Container for label keys and values. */ struct label { char *key; -- cgit 1.4.1