expose hook result with a http api
When a hook-script generates output that we want to use somewhere else, we currently have to save it somewhere and deal with it somehow. Maybe it would be interesting to implement hooks, that can be dynamically triggered with http requests and the output is available over http.
For example, when prometheus sends a request to http://requestd.local:5050/prometheus
, requestd runs the configured script and returns the stdout as http response.
Thsi would of course make ddos the server alot easier, but a nginx reverse proxy can be used to rate-limit and cache.