Skip to content

Conversation

@csfmomo
Copy link
Contributor

@csfmomo csfmomo commented Aug 17, 2020

feat: add error log and metrics to AI telemetry.

chore: Maintenance 🔧
style: Code Style 🎶

Notes:

  1. Refactor AI telemetry initialization. Move it from npm.go to ai-utils.go under metrics pakcage.
  2. Move constants into constant.go under util package.
  3. Add SendErrorMetric function to handle error log / metrics emitting to AI telemtry.
  4. Only send error metrics from iptm, ipsm and npm these 3 packages now for incremental delivery purpose.

@csfmomo csfmomo requested review from matmerr and neaggarwMS August 17, 2020 06:01
@codecov
Copy link

codecov bot commented Aug 17, 2020

Codecov Report

Merging #656 into master will decrease coverage by 0.04%.
The diff coverage is 3.27%.

@@            Coverage Diff             @@
##           master     #656      +/-   ##
==========================================
- Coverage   42.10%   42.05%   -0.05%     
==========================================
  Files          71       72       +1     
  Lines       10270    10350      +80     
==========================================
+ Hits         4324     4353      +29     
- Misses       5471     5524      +53     
+ Partials      475      473       -2     

@csfmomo csfmomo requested a review from tamilmani1989 August 17, 2020 20:32
Copy link
Contributor

@ramiro-gamarra ramiro-gamarra left a comment

Choose a reason for hiding this comment

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

A few comments

Copy link
Contributor

@ramiro-gamarra ramiro-gamarra left a comment

Choose a reason for hiding this comment

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

One last comment

Copy link
Contributor

@ramiro-gamarra ramiro-gamarra left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Member

@matmerr matmerr left a comment

Choose a reason for hiding this comment

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

lgtm

@csfmomo csfmomo merged commit 1330e4a into Azure:master Sep 4, 2020
@csfmomo csfmomo deleted the metric branch September 5, 2020 18:44
neaggarwMS pushed a commit to neaggarwMS/azure-container-networking that referenced this pull request Nov 13, 2020
* Accelerate metrics report from every 30 mins to every 5 mins.

* Add errCountTest metric.

* Refactor SendAiMetrics. AI initialization is in main routine while send metrics is in another go routine.

* Add aiMetadata config.

* Add SendErrorMetrics function in ai utils.

* Going to push error log to AI telemetry.

* Add error log to AI telemetry.

* Change error message format.

* Add error log and metrics to AI telemetry.

* Remove unnecessary const.

* Change heartbeat back to every 30 mins.

* Seperate send log from SendErrorMetric function for better reuse.

* Change a unit test set name to avoid kernel conflict.

* Address comments. Make error log and metrics sending more generic.

* Fix typo.

* Fix indentation.

* Fix AI initialize issue.

* Remove unnecessary log.

* Use break in if condition.
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.

3 participants