isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

feat(monitoring): add dns reporter #1376

Closed kishore03109 closed 3 months ago

kishore03109 commented 5 months ago

Problem

This is a first pr that is up to add some level of sane reporting. While scheduling is part of this feature, it is not within the scope of this pr. This pr only adds (currently dead code) logic to grab the domains that we own in isomer, and do a dns dig. This is meant to be verbose, and in the future alarms can be added based on the results of this.

This is not meant to replace monitoring, it is just meant to fine tune some blind spots that uptime robot currently has + some sane checker during incident response to show history of dns records for a site that we manage.

I am opting to log it directly in our backend to keep things simple. will add alarms + the scheduler in subsequent prs.

Solution

grab ALL domains from keycdn + amplify + redirection records + log dns records on them.

Breaking Changes

Tests

in server.ts add: monitoringService.driver()

should see this in the logs:

Screenshot 2024-05-15 at 5.48.05 PM.png

Deploy Notes

New environment variables:

New scripts:

New dependencies:

New dev dependencies:

kishore03109 commented 5 months ago

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @kishore03109 and the rest of your teammates on Graphite Graphite

kishore03109 commented 3 months ago

Merge activity