diff options
author | Heikki Kallasjoki <fis@zem.fi> | 2018-12-07 00:17:09 +0000 |
---|---|---|
committer | Heikki Kallasjoki <fis+github@zem.fi> | 2018-12-12 19:10:51 +0000 |
commit | 8569c2c85bec19daa36e013448399c42cf75a257 (patch) | |
tree | 7444488e4e5ae5c98f575a2eafd522c6427ffbdf /scrape.h | |
parent | d03dea4d7dbfb62ed0c3c21cdd9ad350f0526432 (diff) | |
download | nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.tar.gz nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.tar.xz nano-exporter-8569c2c85bec19daa36e013448399c42cf75a257.zip |
Add a simple test harness and tests for the cpu collector.
Diffstat (limited to 'scrape.h')
-rw-r--r-- | scrape.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scrape.h b/scrape.h index 8f55a6c..25a1e68 100644 --- a/scrape.h +++ b/scrape.h @@ -46,6 +46,8 @@ struct label { #define LABEL_END ((struct label){ .key = 0, .value = 0 }) +#define LABEL_LIST(...) ((struct label[]){ __VA_ARGS__, LABEL_END }) + /** * Writes a metric value as a response to a scrape. * |