Git Product home page Git Product logo

Comments (6)

p0we7 avatar p0we7 commented on September 28, 2024

I'm trying to understand the code, but I need some time. But I am using Pythoner and still learning.

from uptimeflare.

lyc8503 avatar lyc8503 commented on September 28, 2024

Hello, actually I also encountered this problem (especially when accessing some domestic servers).

My current solution is to use the onIncident callback to detect whether an incident has been open for a certain amount of time (e.g. >3 minutes means 3 continuous failures) before sending a notification to prevent too many messages from being sent.

But I'd also be happy to implement a built-in “Grace period” to solve this problem: add an optional “Grace period” configuration to each monitor that ignores all incidents that last less than the Grace period (which may include not showing up on the WebUI, not counting in the over-all downtime calculation, not sending out messages, etc.)

from uptimeflare.

p0we7 avatar p0we7 commented on September 28, 2024

Additionally, I discovered today that using custom regions for detection significantly improves stability and reduces false triggers.

However, if no region is specified or if US nodes are used, false triggers become quite frequent. (In my project, I use nodes from the U.S., Japan, Hong Kong, and the Netherlands.)

And how to i use onIncident callback on my project?

from uptimeflare.

lyc8503 avatar lyc8503 commented on September 28, 2024

Additionally, I discovered today that using custom regions for detection significantly improves stability and reduces false triggers.

However, if no region is specified or if US nodes are used, false triggers become quite frequent. (In my project, I use nodes from the U.S., Japan, Hong Kong, and the Netherlands.)

And how to i use onIncident callback on my project?

The false positive is related to the connectivity of Cloudflare edge to your server by a number of complex factors including GFW, routing, distance, and more. So you may need to specify a region to reduce the number of false positives, which is normal.

onIncident is just a rougher workaround that I use myself, I may implement the grace period feature you proposed recently (although I won't give an ETA), you can wait and use the grace period feature directly to reduce the number of false positives.

from uptimeflare.

p0we7 avatar p0we7 commented on September 28, 2024

The false positive is related to the connectivity of Cloudflare edge to your server by a number of complex factors including GFW, routing, distance, and more. So you may need to specify a region to reduce the number of false positives, which is normal.

None of my servers are in China, and they all use the nearest Cloudflare nodes.

For example, Japan and Korea use Japan nodes, Hong Kong and Singapore use Hong Kong nodes, and the United States uses U.S. nodes. The latency is kept within 100ms, with some even within 10ms.

from uptimeflare.

lyc8503 avatar lyc8503 commented on September 28, 2024

A new way of notification has been implemented, along with the grace period, see the https://github.com/lyc8503/UptimeFlare/wiki/Setup-notification

from uptimeflare.

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.