Coder Social home page Coder Social logo

Comments (11)

vblagomir avatar vblagomir commented on May 5, 2024 1

Unfortunately I do not use Slack. The alerts are being sent every 10 seconds repeatedly. In the log it kept on showing "sendTriggered" and seem never "sendCleared".

from meteor-apm-server.

lmachens avatar lmachens commented on May 5, 2024

I never setup mailing (Slack alerts should work fine).
Do you get multiple alerts at the same time or are there some minutes between?
You can check console.log which should show you if a send is triggered or cleared:

if (!armed && checkedResult.success) {
// We don't need to wait until the trigger sends
// to mark the alert as armed.
messenger.sendTriggered(alert, checkedResult);
await alertsStore.setArmed(alert, true);
console.log('sendTriggered');
return;
}
if (armed && !checkedResult.success) {
// We don't need to wait until the trigger sends
// to mark the alert as cleared.
messenger.sendCleared(alert, checkedResult);
await alertsStore.setArmed(alert, false);
console.log('sendCleared');
return;
}

from meteor-apm-server.

afrokick avatar afrokick commented on May 5, 2024

Me too, but i use slack. Every 10 seconds. I'll try to find steps to reproduce.

from meteor-apm-server.

markreid avatar markreid commented on May 5, 2024

I've also had this one. Alert triggered and then flooded a slack channel until I removed it. Didn't really have time to investigate it though, just had to leave it off.

from meteor-apm-server.

afrokick avatar afrokick commented on May 5, 2024

@vblagomir @markreid do you use oplog? I dont. I think AlertsManager cannot receive updates from DB without Oplog.

from meteor-apm-server.

vblagomir avatar vblagomir commented on May 5, 2024

I have initially wrote 'Yes', but then thought that depending on how the whole setup has been done, oplog might have been NOT enabled. This might be the issue indeed.

from meteor-apm-server.

afrokick avatar afrokick commented on May 5, 2024

Yes.

Could you please try to run monitoring with DEBUG env var?
DEBUG=alertsman:altersStore meteor

You should see the message like this
Mon, 15 Jul 2019 14:08:20 GMT alertsman:altersStore reset and load 1 alerts in console after run.

from meteor-apm-server.

vblagomir avatar vblagomir commented on May 5, 2024

I have edited my 'Yes'. And because of workload the earliest time I could check this would be in couple of months.

from meteor-apm-server.

afrokick avatar afrokick commented on May 5, 2024

I have edited my 'Yes'. And because of workload the earliest time I could check this would be in couple of months.

Ok, it is the reason of issue. Without Oplog it doesn't work.

@lmachens did you start to work on item 'Direct db access of alertsman' from ToDo ? Maybe I can help with it

from meteor-apm-server.

afrokick avatar afrokick commented on May 5, 2024

@lmachens Done afrokick#1

from meteor-apm-server.

vblagomir avatar vblagomir commented on May 5, 2024

Ok, it is the reason of issue. Without Oplog it doesn't work.

I hope this is the reason, if after checking it appears not the case, I will reopen it then. Thank you for your effort investigating!

from meteor-apm-server.

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.