Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: add "collect" fn, make scrape fns async, ... #361

Merged
merged 1 commit into from
Jul 4, 2020

Commits on Jul 4, 2020

  1. 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 siimon#238)
    
    * Cleans up the readme a bit (removes some out-of-date info)
    zbjornson committed Jul 4, 2020
    Configuration menu
    Copy the full SHA
    2e94b01 View commit details
    Browse the repository at this point in the history