hyperjumptech / monika

Monika is a command line application to monitor every part of your web app using a simple YAML configuration file. Get alert not only when your site is down but also when it's slow.
https://monika.hyperjump.tech
MIT License
605 stars 67 forks source link

Configurable Follow HTTP Redirect for Probe Requests #1259

Closed haricnugraha closed 7 months ago

haricnugraha commented 8 months ago

Currently, Monika only supports a globally configurable follow HTTP redirect. To enhance flexibility, each request should be able to configure its own follow HTTP redirect. The following is a sample configuration to implement the follow HTTP redirect in a request.

probes:
  - id: "1"
    requests:
      - url: https://example.com
        followRedirects: 0

The rule must be consistent with the follow-redirects flag. If it is set to empty, it should use the value of the follow-redirects flag.