Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Airseeker monitoring changes to accommodate Grafana #432

Merged
merged 41 commits into from
Oct 9, 2023

Conversation

aquarat
Copy link
Contributor

@aquarat aquarat commented Jun 29, 2023

In preparation for the 14th of August we required additional monitoring and a lot of changes to the existing monitoring system/apps.

Generally the approach was to try and make the logged data as easy as possible to query - so this PR tries to add that extra data.

There's a lot of mutating going on, that can't be helped.

I suggest the reviewer not worry about the migration files and instead go straight to alerting.ts and /src/ changes.

This branch is being actively used.

And apologies for the big PR.

@aquarat aquarat changed the base branch from main to airseeker-telemetry June 29, 2023 11:05
@aquarat aquarat self-assigned this Aug 8, 2023
@aquarat aquarat changed the title Airseeker monitoring tuning Airseeker monitoring changes to accommodate Grafana Aug 22, 2023
@aquarat aquarat marked this pull request as ready for review August 22, 2023 16:40
Copy link
Contributor

@vponline vponline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was much easier to understand than the old Telemetry 😄. Hopefully, maintaining this will be easier as well

@@ -159,3 +615,155 @@ export const checkAndReport = async (
]);
}
};

// TODO this needs to come out of the DB or some other static resource
export const DB_CHAINS = [
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be replaced with the CHAINS export from the chains repo? The alias field there corresponds to the ChainInfrastructure.name field.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just saw this, I tried that originally but the aliases didn't match at the time. I'll try again. If they still don't match we may have to formally change them in the DBs. Warren also recently complained about the mismatch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The aliases don't match, I'll paste the mismatch here so we have something to refer to in future. Given the priorities we probably shouldn't fix this 🤷

Chain alias mismatch for ID          1 | Package alias: ethereum                        DB alias: mainnet                       
Chain alias mismatch for ID   11155111 | Package alias: ethereum-sepolia-testnet        DB alias: sepolia                       
Chain alias mismatch for ID       1442 | Package alias: polygon-zkevm-goerli-testnet    DB alias: polygon-zkevm-testnet         
Chain alias mismatch for ID       2001 | Package alias: milkomeda-c1                    DB alias: milkomeda                     
Chain alias mismatch for ID     200101 | Package alias: milkomeda-c1-testnet            DB alias: milkomeda-testnet             
Chain alias mismatch for ID        420 | Package alias: optimism-goerli-testnet         DB alias: optimism-testnet              
Chain alias mismatch for ID     421613 | Package alias: arbitrum-goerli-testnet         DB alias: arbitrum-testnet              
Chain alias mismatch for ID          5 | Package alias: ethereum-goerli-testnet         DB alias: goerli                        
Chain alias mismatch for ID        599 | Package alias: metis-goerli-testnet            DB alias: metis-testnet     

@@ -29,11 +71,14 @@ describe('alerting', () => {
// eslint-disable-next-line no-console
mockLimitedSendToOpsGenieLowLevel.mockImplementation(console.log);
setOpsGenieHandlers(mockLimitedCloseOpsGenieAlertWithAlias, mockLimitedSendToOpsGenieLowLevel);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's also possible to mock the operations-utilities package for these handlers like here, but I don't mind the current way either 😄

@aquarat aquarat merged commit 03468ec into airseeker-telemetry Oct 9, 2023
@aquarat aquarat deleted the airseeker-monitoring-tuning branch October 9, 2023 10:59
@aquarat aquarat restored the airseeker-monitoring-tuning branch October 9, 2023 10:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants