Граф коммитов

45 Коммитов

Автор SHA1 Сообщение Дата
Paul Yu ae37d40982
[CNI] zap logger for platform package (#2233)
* zap logger for platform package
2023-10-13 12:08:58 -07:00
Paul Yu ae0c08c9d7
[CNI] zap logger telemetry package (#2266)
* zap logger telemetry package
2023-10-04 11:43:46 -07:00
Camryn Lee f4d1c9b451
fix: unblock channel for cni (#1667)
* implement select case

* remove calls to tb.cancel() in telemetry.go
2022-10-24 13:16:27 -07:00
tamilmani1989 ba3bbe0f26
Remove azure-vnet-telemetry for windows multitenancy (#1430)
* Remove azure-vne-telemetry for windows multitenancy and telemetry service for windows multitenancy will be started from cns.

* start telemetry service from cns

* lint and log fix

* minor change

* addressed comment
2022-07-01 15:09:39 -07:00
tamilmani1989 1c26dfc7fe
chore: Log CNI events to kusto for debugging (#1193)
* sending cni critical events to kusto

* lint fix

* addressing comments
2022-01-25 09:44:51 -08:00
tamilmani1989 cdab7d0241
Use Lockedfile api to acquire lock (#1070)
* added lockedfileapi support for CNI

* fixed interface changes

* addressed comments
fixed ut

* addressed comments

* fixed copy to buffer part in writer api

* fixed copy to buffer part in writer api

* keeping old code not changing it.
2021-11-09 08:19:44 -08:00
tamilmani1989 30b1de2218
chore: Refactor UTs in telemetry packages (#1011) (#1024)
* Refactor UTs to cleanup UTs and increase UT coverages

* User assert for consistency

* Applied comments and resolve lint error

* Delete unnecessary license header

Co-authored-by: JungukCho <jungukcho@microsoft.com>
2021-09-20 13:55:21 -05:00
tamilmani1989 35fb886db9
Remove dead codes from telemetry package (#1004) (#1022)
Co-authored-by: JungukCho <jungukcho@microsoft.com>
2021-09-20 13:49:08 -05:00
JungukCho 3817a98350
Remove dead codes in NPM-related metrics from telemetry and NPM (#999) 2021-09-14 09:38:58 -07:00
Evan Baker 96bec09d41
chore: appease the linter (3/?), the big gofumpt (#987)
* gofumpt -w -s .

* small addtl cleanups after gofumpt

* rerun after rebase
2021-09-02 16:33:18 -05:00
Evan Baker 1087201b28
chore: appease the linter, pt 2 of ? (#925) 2021-09-01 18:28:17 -05:00
Jaeryn 8acc37d6eb
Removing telemetry processed on HostNetAgent (#903)
Co-authored-by: Jaeryn <tsun.chu@microsoft.com>
2021-06-21 13:22:44 -07:00
tamilmani1989 2d619b78fe
AppInsightTelemetry support for CNI (#458)
* Added AITelemetry support for CNI

* added new files

* added other configs in config file

* fixed ut

* updated disableall similar to cns

* added container name to report

* addressed review comments

* addressed review comments

* added check for azure environment

* added log

* close log handle in unit test

* addressed review comments

* addressed review comments

* fixed a condition

* keep the netagent channel for logs

* fixed error

* addressed review comments
2020-01-14 14:53:24 -08:00
tamilmani1989 e0605e90f6
added application insights telemetry package to send metrics and logs (#421)
* added application insights telemetry package to send metrics and logs to appinsights

* moved a function common to both packages
acquired a lock before writing to file

* added read write lock as per chandan comment. Addressed jaeryn comments

* fixed telemetry unit test

* defined interface and added appinsights package as vendor to acn

* added vendor package.go(appinsights)

* dependencies of appinsights

* added AI dependencies

* updated unit tests

* addressed review comments
2019-10-16 13:08:42 -07:00
jaer-tsun fccf269d1b
Adding container type field. (#389) 2019-08-12 14:57:42 -07:00
jaer-tsun 76cab93c2b
Adding new fields in DNCReport. (#385) 2019-08-02 13:06:27 -07:00
Yongli Chen f6bff8e3af
change telemetry to message queue and add npm (#366)
* change telemetry to message queue and add npm

* remove [Azure-NPM] prefix

* remove npmreport url

* fair scheduling

* holds up to 1k reports for each type

* fix cap on reports
2019-06-19 14:08:35 -07:00
tamilmani1989 a75fbe77b3 Set dns server on azure bridge for ubuntu version >= 17 (#345)
* configure dns server on azure bridge for ubuntu versions > 18. Moved hns related apis from platform package to hsnclient package

* read dns server from interface instead of file and fixed few issues

* renturn error on fail to configure dns

* added unitest and fixed an issue in ReadFileByLines method

* added a UT

* addressed comments and added few tests to get code coverage

* confiure dns for ubuntu17 also

* corrected typo error of filename
2019-04-30 16:27:48 -07:00
jaer-tsun 3043dc9736
CNS to start telemetry process and connect to it (#324)
* Spawn telemetry buffer in a separate process instead of goroutine.

* Adding an option to disable telemetry.

* Addressing some of Tamilmani's comments.
2019-04-08 16:20:05 -07:00
tamilmani1989 a11d5104a0
Config support for Telemetry service (#317)
* 1. Start telemetry service as separate process for all components cns/networkmonitor
2. Added telemetry config through which we can configure reportTohost interval
3. Added unit tests for changes

* added new files for telemetry testing

* added tests for invalid cases

* updated with dummy subid
2019-03-25 14:12:32 -07:00
tamilmani1989 83945fd6bf
fixed logging part of telemetry (#312)
* fixed logging part of telemetry

* fixed an issue

* added more test coverage

* fixed an issue

* fixed invalid condition and added UT

* initialize telemetry logger as part of telemetry server

* changed checkifsockexists to sockexists

* changed interval time to push telemetry data to host
2019-03-13 14:01:30 -07:00
Tamilmani Manoharan 7eb2391ff2 addressed review comments and added separate logger for telemetry service 2019-02-06 17:05:01 -08:00
Tamilmani Manoharan bff9bed007 addressed review comments and modified unit tests 2019-02-05 15:14:44 -08:00
Tamilmani Manoharan 55dbf50359 fixed compilation issue in npm 2019-02-01 17:10:18 -08:00
Tamilmani Manoharan 4055fa9f51 Added support for CNI telmetry report to mds 2019-02-01 16:24:45 -08:00
Tamilmani Manoharan d04d6bd9ed added new fields for telemetry 2019-01-23 17:10:29 -08:00
Tamilmani Manoharan 63a4d0f469 temp changes 2019-01-22 17:07:32 -08:00
Tamilmani Manoharan 0ac1ea6f92 telemetry changes 2019-01-14 15:04:17 -08:00
jaer-tsun 136f03caf7 Cns telemetry (#275)
Adds telemetry capability for CNS.
2018-12-12 10:45:48 -08:00
jaer-tsun e6000f2894
Adding telemetry buffer. (#270)
* Adding telemetry buffer.

* Addressing Ashvin's comments.

* Adding changes to cleanup linux socket after programme fails to close.
2018-12-06 09:31:57 -08:00
jaer-tsun 5f123a0c15 Replacing go log with cns log. (#262) 2018-10-17 09:52:08 -07:00
jaer-tsun 6b3da467f9 Removing CNI specific logging from generic SendReport function. (#244) 2018-09-11 13:05:07 -07:00
jaer-tsun d28b594619
Moving dnc specific material out. (#233) 2018-08-16 16:28:46 -07:00
jaer-tsun 45914be23d
Adding telemetry report functions for DNC. (#216)
* Adding telemetry report functions for DNC.

* Addressing Yongli's suggestions.

* commit to switch branches

* Adding some changes to npm due to telemetry change.

* Modifying tests for interface reports...
2018-08-16 14:12:58 -07:00
Yongli Chen 1c14dd0ad3
make archive for npm (#200) 2018-07-19 16:06:11 -07:00
Yongli Chen 6a0f9ff207
Add Azure-npm to provide k8s network policy support (#173)
* address comments

* make azure-npm versiona consistent with main version

* Npm telemetry (#12)

* azure-npm

* set logging file

* parameterize telemetry API

* avoid null ptr derefence

* add telemetry to npm

* address comments

* add descriptive comments

* add copyright info

* returns on err
2018-07-19 14:23:11 -07:00
jaer-tsun c22b4da324 Closing response bodies to prevent socket exhaustion. (#160) 2018-05-31 14:49:17 -07:00
jaer-tsun 5018a365aa Adding CniSucceeded flag to report whether CNI had been run successfully. (#122) 2018-04-26 14:09:47 -07:00
jaer-tsun 58ad07b658 Added CniSucceeded flag in telemetry.go (#107)
* Added CniSucceeded flag in telemetry.go

* Removed setting CniSucceeded to false.
2018-03-30 17:49:27 -07:00
tamilmani1989 2009917134 Added support for cnm reboot scenario (#98)
* Added support cnm reboot scenario

* Addressed review comments
2018-02-22 11:22:47 -08:00
tamilmani1989 e83e088af6 VSTS#1748724 Minimal Support for Windows Telemetry (#88)
* VSTS#1748724 Made minor changes for windows telemetry to work

* Spellchecked Orchestrator and corrected MB value
2018-01-04 12:14:28 -08:00
Tamilmani Manoharan b887155ba1 Added log for 400 error 2017-12-12 13:21:38 -08:00
Tamilmani Manoharan aad93c52cf Fixed review comments 2017-12-12 10:45:53 -08:00
Tamilmani Manoharan 1669082f90 Moved xmldocument structure to common directory 2017-12-12 10:45:53 -08:00
Tamilmani Manoharan 104d6dc191 VSTS#1728451 Added telemetry support for CNI 2017-12-12 10:45:53 -08:00