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

Feat: Disable Cache by Default #1297

Closed haricnugraha closed 5 months ago

haricnugraha commented 5 months ago

Monika Pull Request (PR)

What feature/issue does this PR add

Disable cache by default.

How did you implement / how did you fix it

Change the default value of the ttl-cache flag.

How to test

  1. Run docker compose -f ./dev/docker-compose.yaml up httpbin.
  2. Run npm start with the following configuration.
    
    probes:
    - id: '1'
    requests:
      - url: http://localhost:3002/status/200
    interval: 3
    incidentThreshold: 1
    recoveryThreshold: 1

3. Stop the docker compose command from the step one.
4. Re-run the docker compose command from the step one.

## Demo

### Before

https://github.com/hyperjumptech/monika/assets/15191978/82f64438-879c-4abf-90b8-560da9d0fc8a

### After

https://github.com/hyperjumptech/monika/assets/15191978/77fbcd82-6465-4d25-a163-8000064f70d2