Prometheus exporter based on hurl rules #2361
-
I am considering an idea to describe all the various URLs of my project infrastructure in hurl file to automate testing for changes. But then it seems to make an extra step and somehow monitor continuously status of the infrastructure. For instance average response time of API endpoints of my project's infra. Something like prometheus exporter that monitors requests described in hurl file seems a good idea. Or maybe there is any alternative? Probably a solution that might consume list of targets to monitor that can be created automatically from hurl file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not sure to understand what you're trying to do (I'm not versed with Prometheus). Another possibility is to use Hurl programmatically (see https://crates.io/crates/hurl). This way you can use Hurl as a Rust library and build upon it a runner to do a more custom run. |
Beta Was this translation helpful? Give feedback.
Hi @Self-Perfection
I'm not sure to understand what you're trying to do (I'm not versed with Prometheus).
That said, with
--json
, you can run Hurl with and have a JSON output of the run, with timings on each response. You could use these timings metrics to monitor requests for instance.Another possibility is to use Hurl programmatically (see https://crates.io/crates/hurl). This way you can use Hurl as a Rust library and build upon it a runner to do a more custom run.