Code Monkey home page Code Monkey logo

Comments (3)

Subhra264 avatar Subhra264 commented on July 22, 2024 1

I need a clarification for the 2nd case, is it alerts or reports? I cannot find an option to schedule alerts based on cron.

@iamsiddhant05 Scheduling alerts based on cron is actually possible through API, it is not yet included in the frontend though. For ref - #2935. I think, it should be done for both the alerts and reports.

from openobserve.

iamsiddhant05 avatar iamsiddhant05 commented on July 22, 2024

For the first case, the steps seem to be straightforward.

  1. Check the alert queue if there is a pending alert of the same id
  2. If found, pull it out of the queue, audit log it, and add the new alert.
  3. If not found continue to add the new alert.

I need a clarification for the 2nd case, is it alerts or reports? I cannot find an option to schedule alerts based on cron.

from openobserve.

hengfeiyang avatar hengfeiyang commented on July 22, 2024

@oasisk I am thinking this issue, we can simple add a timeout for the search request then it will auto canceled if it over x minutes. for example:

  1. the alert run every 5 minutes.
  2. we set the req.timeout=300 (s) when we fire the search request. https://github.com/openobserve/openobserve/blob/main/src/service/alerts/mod.rs#L467
  3. it will auto canceled if it over 5 mins.

from openobserve.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.