about summary refs log tree commit diff
path: root/scrape.c
Commit message (Collapse)AuthorAgeFilesLines
* support binding to a specific host addressLeah Neukirchen2024-07-101-2/+2
|
* add --stdoutLeah Neukirchen2024-06-071-0/+19
|
* Add a timeout for scrape requests.Heikki Kallasjoki2018-12-231-6/+82
| | | | | This ensures hung or otherwise really slow requests won't take up request slots from other requests.
* Allow multiple requests in parallel.Heikki Kallasjoki2018-12-231-81/+245
| | | | | | | | | | | | Mostly resolves #19, though a follow-up commit will add a request timeout to stop overly slow requests from taking up slots. The implementation basically turns the request sockets non-blocking, and adds them to the poll loop used to accept new connections. Scrape writes are collected to a request-specific buffer, one collector at a time, and then queued for writing. Every time poll reports progress can be made, that request is processed until the next read/write operation would block, after which control returns to the poll loop.
* Move the collector loop into scrape server code.Heikki Kallasjoki2018-12-231-3/+5
| | | | | | This paves the way for supporting parallel scrapes (#19); the implementation for that is going to need to track the state of the current scrape.
* Rename `cbuf` to `bbuf` in byte buffer utilities.Heikki Kallasjoki2018-12-221-24/+24
| | | | | The `cbuf_alloc` and `cbuf_free` functions conflict with the OpenWrt `libubox` library naming.
* Use a struct type for metric labels.Heikki Kallasjoki2018-12-071-4/+4
| | | | | | Resolves #4. The real readability benefits are for test code, which will follow up in due course.
* Add Apache License 2.0 headers and files.Heikki Kallasjoki2018-11-301-0/+16
|
* Remove prometheus- prefix from project name.Heikki Kallasjoki2018-11-301-2/+2
|
* Split the scrape setup and serving to separate functions.Heikki Kallasjoki2018-11-301-29/+34
| | | | This is a refactoring in preparation for supporting daemonization: we'll want to set up the port before daemonizing, so that any failures can be reported early.
* Bugfix: add missing \n to bind error message.Heikki Kallasjoki2018-11-161-1/+1
|
* Add rudimentary (fake) HTTP server.Heikki Kallasjoki2018-11-161-2/+106
|
* Initial prototype.Heikki Kallasjoki2018-08-051-0/+152