Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATAGO-78976: Quality | EMA metrics for number of ongoing jobs + health check metrics #199

Merged
merged 12 commits into from
Aug 30, 2024

Conversation

CameronRushton
Copy link
Collaborator

@CameronRushton CameronRushton commented Aug 21, 2024

What is the purpose of this change?

Add metrics for scan, config push, and heartbeat where it is easy to do, so that POs and devs can see how many requests are going through the system and if the EMA is connected to the EVMR via heartbeat.

How was this change implemented?

Adding counters on events sent and received for CEMA scans and config push. I'll say that again, it's cloud only.
Added a gauge for if the CEMA is connected to the EVMR. Returns a 1 if connected, 0 otherwise.
Added cycle time for config push since it was easy to do so. The request object exists the entire way until it gets converted into a response.
Scan is harder to implement because the initial request is lost in some mapping and async behaviour.

How was this change tested?

Deploying and running the CEMA for a scan and config push in ep-perf.

Is there anything the reviewers should focus on/be aware of?

None

@CameronRushton CameronRushton marked this pull request as ready for review August 26, 2024 14:19
@CameronRushton CameronRushton changed the title DATAGO-78976: cmea metrics DATAGO-78976: Quality | EMA metrics for number of ongoing jobs + health check metrics Aug 26, 2024
Comment on lines +76 to 83
ScanTypeRepository scanTypeRepository,
ScanStatusRepository scanStatusRepository,
ScanRouteService scanRouteService,
RouteService routeService,
ProducerTemplate producerTemplate,
IDGenerator idGenerator,
MeterRegistry meterRegistry) {
this.repository = repository;
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link

SonarQube Quality Gate

Quality Gate failed

Failed condition 70.0% 70.0% Coverage on New Code (is less than 80%)

See analysis details on SonarQube

@CameronRushton CameronRushton merged commit 2169498 into main Aug 30, 2024
5 of 6 checks passed
@CameronRushton CameronRushton deleted the crushton/DATAGO-78976_cmea_metrics branch August 30, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants