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

[Detector creation] UI workflow metrics #865

Merged
merged 6 commits into from
Feb 6, 2024

Conversation

amsiglan
Copy link
Collaborator

@amsiglan amsiglan commented Feb 6, 2024

Description

Adding metrics to understand detector creation hurdles in the UI.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7837a99) 31.03% compared to head (e3ab52f) 31.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #865      +/-   ##
==========================================
- Coverage   31.03%   31.00%   -0.03%     
==========================================
  Files         151      157       +6     
  Lines        5111     5179      +68     
  Branches      948      906      -42     
==========================================
+ Hits         1586     1606      +20     
- Misses       3335     3386      +51     
+ Partials      190      187       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: Amardeepsingh Siglani <[email protected]>
@amsiglan amsiglan marked this pull request as ready for review February 6, 2024 10:53
Copy link
Collaborator

@AWSHurneyt AWSHurneyt left a comment

Choose a reason for hiding this comment

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

@amsiglan said offline that the cypress tests are passing locally. Changes LGTM.

import { MetricsCounter, PartialMetricsCounter } from '../types';
import { SecurityAnalyticsPluginConfigType } from '../config';

export function aggregateMetrics(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nitpick: Some comments explaining these functions would be helpful.

Signed-off-by: Amardeepsingh Siglani <[email protected]>
@amsiglan amsiglan merged commit dff1ef3 into opensearch-project:main Feb 6, 2024
6 of 9 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 6, 2024
* implemented metrics for detector creation

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated tests

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* added config based flag; interval of 2 min to emit browser metrics

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* removed unused metrics counters

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* added null check

Signed-off-by: Amardeepsingh Siglani <[email protected]>

* updated code to check for window unload

Signed-off-by: Amardeepsingh Siglani <[email protected]>

---------

Signed-off-by: Amardeepsingh Siglani <[email protected]>
(cherry picked from commit dff1ef3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
amsiglan pushed a commit that referenced this pull request Feb 6, 2024
* implemented metrics for detector creation



* updated tests



* added config based flag; interval of 2 min to emit browser metrics



* removed unused metrics counters



* added null check



* updated code to check for window unload



---------


(cherry picked from commit dff1ef3)

Signed-off-by: Amardeepsingh Siglani <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants