about summary refs log tree commit diff
path: root/scrape.h
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2024-06-07 13:13:49 +0200
committerLeah Neukirchen <leah@vuxu.org>2024-06-07 13:13:49 +0200
commit9d5a71c7bab5e7273af938f974d97ef0098502fb (patch)
treee83a1e147486040ad4fce08a1ff2c667b97450e2 /scrape.h
parentbdfbcbc2a9b44040fa1cccabe7ea275a5a15ebfb (diff)
downloadnano-exporter-9d5a71c7bab5e7273af938f974d97ef0098502fb.tar.gz
nano-exporter-9d5a71c7bab5e7273af938f974d97ef0098502fb.tar.xz
nano-exporter-9d5a71c7bab5e7273af938f974d97ef0098502fb.zip
add --stdout
Diffstat (limited to 'scrape.h')
-rw-r--r--scrape.h3
1 files changed, 3 insertions, 0 deletions
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;