Commit Graph

19 Commits

Author SHA1 Message Date
Carlos Quintana
9d2a35b9c2
fix: monitoring table name (#2120) 2024-05-24 11:09:10 +02:00
Carlos Quintana
5f190d4b46
fix: monitoring table name 2024-05-24 10:52:08 +02:00
Carlos Quintana
6862ed3602
fix: event listener (#2119)
* fix: commit transaction after taking event

* feat: allow to reconnect to postgres for event listener

* chore: log sync events pending to process to metrics

* fix: make dead_letter runner able to process events without needing to have lock on the event

* chore: close Session after reconnect

* refactor: make EventSource emit only events that can be processed
2024-05-24 10:21:19 +02:00
Carlos Quintana
0e82801512
chore: add upcloud monitoring (#1835)
* chore: add upcloud monitoring

* Added db_role to new_relic metrics

---------

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2023-08-04 12:19:00 +02:00
Adrià Casajús
2660c96fa7
Fix: Track processes that start with the same chars independently (smtp vs stmpd) (#974)
* Fix: Track processes that start with the same chars independently (smtp vs stmpd)

* Format

* Added more test

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
2022-05-12 12:37:19 +02:00
Adrià Casajús
924f286db1
Add monitoring for postfix processes 2022-05-11 15:30:09 +02:00
Son
ed089109bb make sure to close session in monitoring 2022-03-07 17:52:16 +01:00
Son
e73a46cf36 fix init_app 2022-01-13 16:34:22 +01:00
Son
ca971567c5 use newrelic in monitoring. Monitor the number of db connection 2022-01-13 10:39:22 +01:00
Son
c132e3fbbc flake8 2021-10-12 15:03:16 +02:00
Son
eb0e327402 remove "with app.app_context():" 2021-10-12 14:47:01 +02:00
Son
372466ab06 do not use flask-sqlalchemy
- add __tablename__ for all models
- use sa and orm instead of db
- rollback all changes in tests
- remove session in @app.teardown_appcontext
2021-10-12 14:36:47 +02:00
Son Nguyen Kim
5ac78f2694 reformat 2021-09-08 11:29:55 +02:00
Son NK
7c0b3b290b only check incoming queue (ignore active queue) 2020-10-11 18:13:17 +02:00
Son NK
c2e03854ef refactor monitoring 2020-10-11 18:11:49 +02:00
Son NK
731b8db5cb monitoring: alert when fails for 10 minutes 2020-10-03 10:34:07 +02:00
Son NK
6a8c0d6f76 monitoring alert when more than 50 emails in queue. Check every 2 mins. 2020-09-08 18:52:36 +02:00
Son NK
118862ead0 only alert if monitoring fails >3 times consecutive 2020-08-16 10:27:35 +02:00
Son NK
3d638f1a97 extract monitoring to its own file 2020-08-15 19:55:56 +02:00