Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change: add "collect" fn, make scrape fns async, ...
* Adds a `collect` fn, which may be async, to each metric type. This provides a cleaner interface than registering collectors, and allows the collector to do asynchronous work. (Previously it would be one scrape behind if it had to do async work.) * In turn, makes `registry.metrics()` and `registry.get...` async, and removes the `collectors`/`registerCollector` functions. * Fixes `process_max_fds` and `process_start_time_seconds` so that they have values after the registry is reset (same vein as #238) * Cleans up the readme a bit (removes some out-of-date info)
- Loading branch information