Commit graph

54 commits

Author SHA1 Message Date
Samuel Clay
2a8f8678dc Splitting not master error and server selection timeout in mongo monitor. 2021-10-19 11:15:47 -04:00
Samuel Clay
e86967bfba Don't check consul vs haproxy. Let consul be the exception adn the default being a full test. 2021-10-19 11:08:46 -04:00
Jonathan Math
dd13af5bf1 add querystring logic to mongo db health check to accommodate consul vs haproxy checking 2021-10-11 11:11:42 -05:00
Samuel Clay
a7fded7e8c Bootstrapping issue with mongo. 2021-09-30 18:19:12 -04:00
Samuel Clay
9ae6730f76 Bootstrapping issue with mongo. 2021-09-30 18:17:46 -04:00
Samuel Clay
443bf9c5f5 Can't use hostname, monitor needs container name. 2021-08-13 12:22:04 -04:00
Samuel Clay
84feed0011 Using localhost 2021-08-11 19:17:51 -04:00
Samuel Clay
9258f5e112 Updating db monitor for elasticsearch 7 2021-08-11 19:13:23 -04:00
Samuel Clay
af390d5fd1 Adding elasticsearch to py3, upgrading monitor, need to fix boto -> boto3. 2021-08-04 18:42:58 -04:00
Samuel Clay
4a81611b01 Mongo analytics is its own server, with authentication. 2021-08-03 19:43:27 -04:00
Samuel Clay
bc69e859eb Adding mongo analytics flask db monitor. 2021-08-03 19:10:20 -04:00
Samuel Clay
de4098e023 Moving to SERVER_NAME for monitor as network mode is host. 2021-07-24 09:55:52 -04:00
Samuel Clay
fedbf08ae8 Pull out old mongos. 2021-07-24 09:38:29 -04:00
Samuel Clay
1974597cca Ignore optime 2021-07-24 09:15:49 -04:00
Samuel Clay
03e8117c06 Old optimes on mongo are OK for monitor. 2021-07-24 09:13:48 -04:00
Samuel Clay
f916862bb2 Auth errors should raise exceptions. 2021-07-23 14:46:28 -04:00
Samuel Clay
df050acb8e Don't disregard authentication error 2021-07-21 21:27:56 -04:00
Samuel Clay
1ac16508f8 Changing how mongo is registered on consul. Now allows members before they are part of the replica set. 2021-07-21 21:10:02 -04:00
Samuel Clay
5eea1c6b76 Mongo optime format namespaced under 'ts'. 2021-07-14 21:45:12 -04:00
Samuel Clay
a78e21de90 Capturing mongo internal IP for use with db monitor. 2021-07-14 21:37:49 -04:00
Samuel Clay
6876005b6e Mongo changed the optime date format. 2021-07-14 20:48:48 -04:00
Samuel Clay
47a8173e39 Flask requires a string 2021-07-14 20:20:27 -04:00
Samuel Clay
3399ead66f Faking mongo monitor to get the site up 2021-07-14 20:19:35 -04:00
Samuel Clay
4c68df53e0 Mongodb monitor auth 2021-07-14 20:17:46 -04:00
Samuel Clay
f36276d099 Typo on mongo auth. 2021-07-14 20:15:33 -04:00
Samuel Clay
00a24984c8 Disabling most mongo checks due to protocol change. 2021-07-14 20:13:26 -04:00
Samuel Clay
4458994e1c Using admin auth source for mongodb. 2021-07-12 22:01:07 -04:00
Samuel Clay
4dd3bafbfb Adding authSource to mongodb auth 2021-07-12 21:53:16 -04:00
Samuel Clay
0754c0c049 Adding authentication for mongo. Hopefully this covers everything needed. 2021-07-12 11:45:25 -04:00
Samuel Clay
22cc6de301 Switching from LOCAL_HOST to named server for monitor. 2021-05-19 23:01:12 -04:00
Samuel Clay
49d84af67c Updating monitor to use new elasticsearch. 2021-05-19 22:40:45 -04:00
Samuel Clay
50806a0014 Also handling server selection errors in monitor. 2021-05-10 19:23:24 -04:00
Samuel Clay
dab140a4a1 Error codes need to be known 2021-05-10 19:21:48 -04:00
Samuel Clay
32e1395317 Handling down mongo. 2021-05-10 19:19:40 -04:00
Samuel Clay
72d8f07cf8 Adding db mongo secondary 2021-05-10 18:08:04 -04:00
Samuel Clay
f0aafc7413 Forgive me for this commit. It's a stopgap in consul configs. I need to be able to automate changes to consul configs, but what I was doing was manually juggling these configs on the old datacenter. While this is ugly, it works and as soon as the old DC is retired, we can rip this out. I mean this is basically /etc/hosts, just uglier. 2021-04-08 15:55:58 -04:00
Samuel Clay
e1b2583950 Swapping out pyes for elasticsearch-py. Half-way done, got indices and mappings in, now need to work on querying and storing. 2021-03-18 16:34:28 -04:00
Samuel Clay
d27c8fd91a Fixing pubsub monitor 2021-03-11 10:31:25 -05:00
Samuel Clay
c5a9b863b2 Bad merge 2021-03-11 10:17:27 -05:00
Samuel Clay
71eff77f1a Forgot to remove cruft 2021-03-11 10:16:38 -05:00
Samuel Clay
31c1ce3b0e Merge branch 'master' into dashboard3
* master:
  Handling cold start
  Handling cold start
  Changing redis hosts
  Adding redis host
  Retroactively adding redis pubsub monitor.
  Convertng ObjectId to str
2021-03-11 10:11:15 -05:00
Samuel Clay
e1ab3bd649 Logging db monitor 2021-03-10 10:44:35 -05:00
Samuel Clay
662a52e8a4 Normalizing status codes for monitor. 2021-03-10 10:31:20 -05:00
Samuel Clay
7603e28c72 Gracefully handling redis monitor failure. 2021-03-09 09:58:01 -05:00
Jonathan Math
3debb6d2ff use localhost for endpoints in db_monitor 2021-03-04 12:26:29 -05:00
Jonathan Math
1922e34954 use local_settings.py for db_monitor instead of using dockerbuild env variable to control local settings 2021-03-04 11:18:12 -05:00
Jonathan Math
d3f50c38a3 change back 2021-03-01 21:28:49 -05:00
Jonathan Math
9ffd196182 fixing "No module named 'flask_monitor.flask_settings'" error 2021-03-01 21:20:20 -05:00
Samuel Clay
f9b7bbcd6e Merge branch 'master' into dashboard3
* master:
  Adding a preference to notification title only.
  Adding in preference to only send full title in iOS notifications.
  Forgot primary state
  Adding replset oplog timing to db monitor.
2021-02-01 15:01:58 -05:00
Jonathan Math
934550fde7 update newsblur dir to newsblur_web in code 2021-01-19 09:40:13 -05:00