Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
5e0b429
consolidate windows agent image docker files (#422)
ganga1980 Aug 7, 2020
c5c28f0
Gangams/cluster creation scripts (#414)
ganga1980 Aug 13, 2020
d7a3750
fix: Pin to a particular version of ltsc2019 by SHA (#427)
bragi92 Aug 14, 2020
5e8de91
enable collecting npm metrics (optionally) (#425)
vishiy Aug 14, 2020
17e7ff8
Saaror patch 3 (#426)
saaror Aug 17, 2020
6c7c675
Gangams/add containerd support to windows agent (#428)
ganga1980 Aug 18, 2020
bac8a32
Gangams/arc k8s metrics (#413)
ganga1980 Aug 20, 2020
ab03640
fix: Reverting back to ltsc2019 tag (#429)
bragi92 Aug 21, 2020
af0f981
more kubelet metrics (#430)
vishiy Aug 27, 2020
7fc4d4c
fix nom issue when config is empty (#432)
vishiy Sep 1, 2020
281a77c
support multiple docker paths when docker root is updated thru knode …
vishiy Sep 1, 2020
d8d7f9f
Gangams/doc and other related updates (#434)
ganga1980 Sep 11, 2020
2d56087
add missing serviceprincipal in ps scripts (#435)
ganga1980 Sep 14, 2020
a28aaf0
fix telemetry bug (#436)
vishiy Sep 15, 2020
0062b32
Gangams/readmeupdates non aks 09162020 (#437)
ganga1980 Sep 16, 2020
1a7ef1c
Gangams/fix weird conflicts (#439)
ganga1980 Sep 16, 2020
bf75bf0
fix quote issue for the region (#441)
ganga1980 Sep 21, 2020
6287724
fix cpucapacity/limit bug (#442)
vishiy Sep 21, 2020
bd30a47
grwehner/pv-usage-metrics (#431)
gracewehner Sep 23, 2020
7304a6b
add new custom metric regions (#444)
vishiy Sep 23, 2020
2d8c03f
add 'Terminating' state (#443)
vishiy Sep 23, 2020
da06d76
Gangams/sept agent release tasks (#445)
ganga1980 Sep 25, 2020
5453054
grwehner/pv-collect-volume-name (#448)
gracewehner Sep 28, 2020
fe9f14d
Changes for september agent release (#449)
rashmichandrashekar Sep 30, 2020
f1657c6
Gangams/arc k8s related scripts, charts and doc updates (#450)
ganga1980 Oct 1, 2020
e6dad83
Install CA certs from wireserver (#451)
rashmichandrashekar Oct 1, 2020
23397ed
grwehner/pv-volume-name-in-mdm (#452)
gracewehner Oct 1, 2020
7562a96
Release changes for 10052020 release (#453)
vishiy Oct 5, 2020
4b47f44
Update onboarding_instructions.md (#456)
saaror Oct 12, 2020
3f86b23
chart update for sept2020 release (#457)
ganga1980 Oct 19, 2020
6203c3a
add missing version update in the script (#458)
ganga1980 Oct 19, 2020
5b15469
November release fixes - activate one agent, adx schema v2, win perf …
vishiy Oct 27, 2020
157ba20
remove hiphen for params in chart (#462)
vishiy Oct 28, 2020
7c448bc
Changes for cutting a new build for ciprod10272020 release (#460)
vishiy Oct 28, 2020
62b27d7
using latest stable version of msys2 (#465)
ganga1980 Oct 29, 2020
909cc16
fixing the windows-perf-dups (#466)
rashmichandrashekar Oct 29, 2020
d481c06
chart updates related to new microsoft/charts repo (#467)
ganga1980 Nov 6, 2020
aff1e13
Changes for creating 11092020 release (#468)
vishiy Nov 9, 2020
ca18850
MDM exception aggregation (#470)
rashmichandrashekar Nov 10, 2020
18c27dd
grwehner/mdm custom metric regions (#471)
gracewehner Nov 23, 2020
a5c12e9
updaitng rs limit to 1gb (#474)
rashmichandrashekar Dec 4, 2020
7453fd4
grwehner/pv inventory (#455)
gracewehner Dec 10, 2020
24b709f
Gangams/fix for build release pipeline issue (#476)
ganga1980 Dec 15, 2020
9061201
add pv fluentd plugin config to helm rs config (#477)
gracewehner Dec 15, 2020
064bc06
Gangams/fix rs ooming (#473)
ganga1980 Dec 16, 2020
9cb058c
Gangams/enable arc onboarding to ff (#478)
ganga1980 Dec 18, 2020
ef9d726
Convert PV type dictionary to json for telemetry so it shows up in lo…
gracewehner Jan 4, 2021
97bdb94
fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX ro…
vishiy Jan 6, 2021
94237be
fix ci envvar collection in large pods (#483)
ganga1980 Jan 6, 2021
aacd496
grwehner/jan agent tasks (#481)
gracewehner Jan 7, 2021
148d739
updating fbit version and cpu limit (#485)
rashmichandrashekar Jan 8, 2021
bd33dd9
reverting to older version (#487)
rashmichandrashekar Jan 8, 2021
d5164d2
Gangams/add fbsettings configurable via configmap (#486)
ganga1980 Jan 11, 2021
908d9b0
Gangams/jan agent release tasks (#484)
ganga1980 Jan 11, 2021
8ede536
remove per container logs in ci (#488)
ganga1980 Jan 11, 2021
37e5218
updates for ciprod01112021 release (#489)
ganga1980 Jan 12, 2021
3c97af6
new yaml files (#491)
deagraw Jan 14, 2021
90e1a5b
Use cloud-specific instrumentation keys (#494)
daweim0 Jan 22, 2021
98b6d77
upgrade apt to latest version (#492)
ganga1980 Jan 22, 2021
ddcd3ee
Gangams/add support for extension msi for arc k8s cluster (#495)
ganga1980 Jan 27, 2021
0cd99e4
Gangams/arm template arc k8s extension (#496)
ganga1980 Jan 27, 2021
13521c5
Gangams/aks monitoring via policy (#497)
ganga1980 Feb 1, 2021
e4f36c7
revert to use operatingSystem from osImage for node os telemety (#498)
ganga1980 Feb 1, 2021
ec15ac1
Container log v2 schema changes (#499)
vishiy Feb 4, 2021
6031be8
Add priority class to the daemonsets (#500)
Michael-Sinz Feb 9, 2021
4212e1a
fix node metric issue (#502)
ganga1980 Feb 11, 2021
24644ce
Bug fixes for Feb release (#504)
rashmichandrashekar Feb 18, 2021
e56104c
Gangams/feb 2021 agent bug fix (#505)
ganga1980 Feb 23, 2021
e00b2aa
changes for release -ciprod02232021 (#506)
vishiy Feb 23, 2021
31f0e5f
Gangams/e2e test framework (#503)
ganga1980 Feb 23, 2021
91f954f
scrape new kubelet pod count metric name (#508)
gracewehner Feb 25, 2021
4a8ff23
Adding explicit json output to az commands as the script fails if az …
nyuen Mar 20, 2021
512e5c0
Gangams/arc proxy contract and token renewal updates (#511)
ganga1980 Mar 22, 2021
6b48b6a
doc updates for microsoft charts repo release (#512)
ganga1980 Mar 22, 2021
d93c680
Update enable-monitoring.sh (#514)
seenu433 Mar 23, 2021
4d386ce
Prometheus scraping from sidecar and OSM changes (#515)
rashmichandrashekar Mar 25, 2021
16936aa
add liveness timeout for exec (#518)
vishiy Mar 26, 2021
12964be
chart and other updates (#519)
rashmichandrashekar Mar 26, 2021
73548c0
Saaror osmdoc (#523)
saaror Apr 5, 2021
fea4ffa
telemetry bug fix (#527)
rashmichandrashekar Apr 6, 2021
e31cc87
Fix conflicting logrotate settings (#526)
gracewehner Apr 6, 2021
ca8fa12
bug fix (#528)
rashmichandrashekar Apr 6, 2021
1f6f6d2
Gangams/arc ev2 deployment (#522)
ganga1980 Apr 7, 2021
97678b6
added liveness and telemetry for telegraf (#517)
daweim0 Apr 9, 2021
63ea896
Windows metric fix (#530)
daweim0 Apr 13, 2021
42730a4
OSM doc update (#533)
rashmichandrashekar Apr 13, 2021
7ad52cd
Adding MDM metrics for threshold violation (#531)
rashmichandrashekar Apr 14, 2021
34d1f64
Rashmi/april agent 2021 (#538)
rashmichandrashekar Apr 21, 2021
fcc5048
add Read_from_Head config for all fluentbit tail plugins (#539)
gracewehner Apr 21, 2021
01e5529
fix programdata mount issue on containerd win nodes (#542)
ganga1980 Apr 22, 2021
b5d074a
Update sidecar mem limits (#541)
rashmichandrashekar Apr 22, 2021
5feeb3e
David/release 4 22 2021 (#544)
daweim0 Apr 22, 2021
1b2da4a
1m, 1m, 1s by default (#543)
daweim0 Apr 23, 2021
83e5816
David/aad stage 1 release (#556)
daweim0 May 12, 2021
8beabe3
Update ReleaseNotes.md (#558)
ganga1980 May 13, 2021
3805f44
Add wait time for telegraf and also force mdm egress to use tls 1.2 (…
vishiy May 19, 2021
7c5087f
partially disabled telegraf liveness probe check, we'll still have te…
daweim0 May 19, 2021
0d33489
changes for 05202021 release (#563)
daweim0 May 20, 2021
486acfd
Rashmi/jedi wireserver (#566)
rashmichandrashekar May 21, 2021
0fa350e
Update ReadMe.md (#565)
saaror May 21, 2021
c707539
Gangams/aad stage2 full switch to mdsd (#559)
ganga1980 May 22, 2021
959b455
Send perf metrics to MDM from windows daemonset (#568)
rashmichandrashekar May 27, 2021
e4da519
updating json gem to address CVE-2020-10663 (#567)
daweim0 May 28, 2021
49486a8
update recommended alerts readme (#570)
daweim0 May 28, 2021
ef23fc6
trying again to fix the json gem (#571)
daweim0 May 28, 2021
cfa804a
Addressing PR comments for - https://github.com/microsoft/Docker-Prov…
rashmichandrashekar Jun 1, 2021
0d3e4a1
Mem_Buf_limit is configurable via ConfigMap (#574)
tsubasaxZZZ Jun 10, 2021
50b99ff
add log rotation settings for fluentd logs (#577)
ganga1980 Jun 11, 2021
4cebe73
Gangams/release 06112021 (#578)
ganga1980 Jun 11, 2021
adabaf9
release note update (#579)
ganga1980 Jun 11, 2021
0c70120
Make sidecar fluentbit chunk size configurable (#573)
rashmichandrashekar Jun 14, 2021
a7a2d73
Fix vulnerabilities (#583)
vishiy Jun 15, 2021
154c11d
Windows build optimization (#582)
rashmichandrashekar Jun 16, 2021
68e90b6
fix windows build failure due to msys2 version
vishiy Jun 23, 2021
cf68a4f
Fix telegraf startup issue when endpoint is unreachable (#587)
rashmichandrashekar Jun 23, 2021
cd22753
revert fbit tail plugins defaults to std defaults (#586)
ganga1980 Jun 23, 2021
8c41a42
fixed another bug (#593)
daweim0 Jul 1, 2021
00f1a0d
feat: add new metrics to MDM for allocatable % calculation of cpu and…
bragi92 Jul 9, 2021
e1f9978
update adx sdk for perf issue (#601)
vishiy Jul 12, 2021
c9ade1b
remove md check
vishiy Jul 13, 2021
6e2732e
Gangams/release notes update for hotfix (#596)
ganga1980 Jul 13, 2021
6df299f
Cherry picking hotfix changes to ci_dev (#605)
rashmichandrashekar Jul 14, 2021
3b38337
release changes (#607)
rashmichandrashekar Jul 15, 2021
bcea7fc
Gangams/aad stage3 msi auth (#585)
ganga1980 Jul 19, 2021
13eb3a6
Gangams/remove chart version dependency (#589)
ganga1980 Jul 20, 2021
63f22d9
Gangams/july 2021 release tasks 3 (#613)
ganga1980 Jul 23, 2021
902c939
remove un-used output plugin (#614)
vishiy Jul 23, 2021
a76905a
fix telegraf telemetry and improve fluentd liveness (#611)
ganga1980 Jul 23, 2021
52612b5
Gangams/july 2021 release tasks 2 (#612)
ganga1980 Jul 23, 2021
5b5d048
Fix out_oms.go dependency vulnerabilities (#623)
gracewehner Aug 13, 2021
2a0f4ec
revert libsystemd0 update (#616)
ganga1980 Aug 13, 2021
45f35ae
updates for ci-prod release instructions (#619)
ganga1980 Aug 13, 2021
10b2ea6
cherry pick changes from ci_prod (#622)
ganga1980 Aug 13, 2021
ad31c55
Support az login for passwords starting with dash ('-') (#626)
vladimir-babichev Aug 14, 2021
57beb59
Gangams/add telemetry fbit settings (#628)
ganga1980 Aug 17, 2021
cf4775a
check onboarding status (#629)
ganga1980 Aug 19, 2021
da55fe5
Gangams/arc k8s conformance test updates (#617)
ganga1980 Aug 19, 2021
e39b83b
upgrade golang version for windows in pipeline build and locally (#630)
gracewehner Aug 20, 2021
3a02a4f
Updating a link in Readme.md (#632)
daweim0 Aug 25, 2021
e56c74b
Updating omsagent yaml to have parity with omsagent yaml file in AKS …
rashmichandrashekar Aug 25, 2021
d2817cb
Unit test tooling (#625)
daweim0 Aug 27, 2021
32f958b
run unit tests after a merge too (#634)
daweim0 Aug 27, 2021
c4a3bbc
flag stale PRs & issues
vishiy Aug 31, 2021
beb7f42
Adding script to collect logs (for troubleshooting) (#636)
daweim0 Sep 1, 2021
01e8178
Sarah/ev2 (#640)
sarahpeiffer Sep 11, 2021
ef7cb89
documenting fbit tail plugin configmap settings. (#638)
daweim0 Sep 13, 2021
6b42f13
Install unzip package on shell extension (#642)
sarahpeiffer Sep 13, 2021
7ef07e1
Changing installation in ev2 script (#644)
sarahpeiffer Sep 14, 2021
a025ce7
Adjust release pipeline to use cdpx acr (#647)
sarahpeiffer Sep 21, 2021
c6bc993
Sarah/ev2 prod (#649)
sarahpeiffer Sep 22, 2021
5e37947
CDPX repo naming change (#652)
sarahpeiffer Sep 23, 2021
a36d8df
Sarah/ev2 update (#654)
sarahpeiffer Sep 27, 2021
fdc99f6
change tag syntax for mcr repo check (#655)
sarahpeiffer Sep 28, 2021
6292218
Gangams/optimize win livenessprobe (#653)
ganga1980 Sep 28, 2021
cfacf39
Gangams/addon token adapter image tag to telemetry (#656)
ganga1980 Sep 29, 2021
ae9ebd7
Sarah/ev2 helm (#658)
sarahpeiffer Sep 30, 2021
a6c6c4a
Sarah/ev2 pipeline (#661)
sarahpeiffer Oct 4, 2021
9e2df4d
add charts directory to build artifacts (#662)
sarahpeiffer Oct 4, 2021
f1d0e43
Sarah/remove cdpx creds (#664)
sarahpeiffer Oct 6, 2021
6ff747c
chart updates for rbac api version change (#660)
ganga1980 Oct 7, 2021
f77587a
proxy support (for non-aks) (#665)
daweim0 Oct 8, 2021
34f5c52
Gangams/agent release ciprod10082021 & win-ciprod10082021 (#666)
ganga1980 Oct 8, 2021
c4d2254
use buildcommand for prod pipeline (#668)
sarahpeiffer Oct 8, 2021
3b008e5
fixed merge issues. (#671) (#672)
ganga1980 Oct 11, 2021
d16d84b
changes related to mdsd version update (#673) (#674)
ganga1980 Oct 11, 2021
ce65f2c
Sarah/enable metrics (#675)
sarahpeiffer Oct 12, 2021
608f92e
Gangams/chart updates oct2021 release (#676)
ganga1980 Oct 13, 2021
ab98c4b
Gangams/msi mode mdsd crash fix (#677)
ganga1980 Oct 13, 2021
a105a00
update to use extension GA api version (#679)
ganga1980 Oct 20, 2021
87ff281
Gangams/arm template msi onboarding (#659)
ganga1980 Oct 20, 2021
ac5dec3
Gangams/conf test updates to handle sidecar (#681)
ganga1980 Oct 22, 2021
0bd3056
Fix scan break due to latest trivy changes
vishiy Oct 26, 2021
761b641
Anjohans/configurable database name (#663)
asjddd Oct 26, 2021
fc955b3
Gangams/troubelshooting script for arc k8s (#682)
ganga1980 Oct 27, 2021
7c9cdc8
Sarah/remove cdpx creds (#685)
sarahpeiffer Nov 2, 2021
f75eea6
fix: subtract number instead of string + update fluentd version 1.14.…
bragi92 Nov 5, 2021
15ee6c5
Faster Linux builds (part 1) (#687)
daweim0 Nov 5, 2021
b4ca054
Sarah/fluentbit windows log (#688)
sarahpeiffer Jan 13, 2022
5b9988c
default to port 10250 & containerd for linux agent (#699)
ganga1980 Jan 21, 2022
4c460c6
Updating pod annotation for latest agent version (#697)
rashmichandrashekar Jan 24, 2022
f2c2904
fix windows build failure due to msys2 version (#700)
bragi92 Jan 25, 2022
78440cf
Jan agent tasks (#698)
gracewehner Jan 28, 2022
3dce72f
remove v1 fallback hidden option (#705)
ganga1980 Jan 28, 2022
2726d01
collect telemetry containerlog records with emptystamp (#703)
ganga1980 Jan 28, 2022
28599b3
Fixing telegraf bug for placeholder name (#706)
rashmichandrashekar Jan 28, 2022
7452ee2
Gangams/jan 2022 release tasks 3 (#702)
ganga1980 Jan 28, 2022
bfc41a4
Gangams/jan 2022 release tasks 2 (#701)
ganga1980 Jan 29, 2022
ec2b09f
release updates for ciprod01312022 & win-ciprod01312022release (#707)
ganga1980 Jan 31, 2022
5f41c5e
fix logger exception (#709)
ganga1980 Feb 1, 2022
7ff6c02
Gangams/chart version update for jan release (#710)
ganga1980 Feb 2, 2022
d6e9272
fix agentversion annotation issue in chart (#712)
ganga1980 Feb 3, 2022
918ad11
adx bug + misc (#714)
vishiy Feb 11, 2022
2dbc4f1
fix build break (#715)
vishiy Feb 15, 2022
7389a1b
Explicitly use win-2019 to unblock windows PRs builds
vishiy Mar 1, 2022
ec3d2ef
Fixing telegraf vulnerability (#716)
rashmichandrashekar Mar 1, 2022
798bd9f
cherry picked changes from 03112022 release (#719)
sarahpeiffer Mar 14, 2022
1167797
Gangams/http proxy support (#717)
ganga1980 Mar 14, 2022
f9209c4
build multi-arch images (#704)
pfrcks Mar 14, 2022
8019731
add missing artifacts (#720)
pfrcks Mar 15, 2022
b58ff42
Gangams/msi onboarding arm template updates for AKS (#721)
ganga1980 Mar 16, 2022
15e8446
minor fixes (#722)
pfrcks Mar 17, 2022
6d31928
specify go patch version (#723)
pfrcks Mar 17, 2022
e3c0ad1
User/amagraw/ciprod release 20220317 (#724)
pfrcks Mar 17, 2022
e05e75e
Remove health type from DCR onboarding & add private link support for…
ganga1980 Mar 19, 2022
78cd76d
check platform specific tags (#730) (#731)
pfrcks Mar 21, 2022
90707c7
PodReadyPercentage metric bug fix (#734)
gracewehner Mar 24, 2022
f253e4f
update windows to ruby 2.7 (#732)
pfrcks Mar 28, 2022
cb1b659
Improve CI/CD for multi-arch (#733)
pfrcks Mar 29, 2022
f0266dc
Gangams/ts updates for msi (#736)
ganga1980 Mar 29, 2022
d76f2b2
Sarah/health deprecation (#735)
sarahpeiffer Mar 30, 2022
11d1c7a
check platform specific tags (#738)
pfrcks Apr 4, 2022
d12827b
Gangams/msi test instructions (#739)
ganga1980 Apr 4, 2022
9da85dc
Add CI Windows Build to MultiArch Dev pipeline (#740)
pfrcks Apr 6, 2022
d02670a
Add Windows phase (#741)
pfrcks Apr 8, 2022
38f3d92
Sarah/add onboarding templates (#742)
sarahpeiffer Apr 12, 2022
ca3fdcb
fix download (#749)
pfrcks Apr 26, 2022
f6c1deb
force run trivy stage (#745)
pfrcks Apr 27, 2022
9c64f93
update telegraf to 1.22.2 to fix vulns (#752)
pfrcks May 4, 2022
52c7fe4
Gangams/arc k8s aad msi auth (#743)
ganga1980 May 6, 2022
0da25a7
Gangams/ws2022 support (#756)
ganga1980 May 9, 2022
0ee0c60
CA Cert Fix for Mariner Hosts in Air Gap (#751)
gracewehner May 9, 2022
b7a84ea
add cifs & fuse file systems to ignore list (#750)
vishiy May 11, 2022
e7c7237
Data collection script (#759)
MSNina123456 May 18, 2022
34b05c6
Microsoft mandatory file (#763)
microsoft-github-policy-service[bot] May 18, 2022
31e320b
Adding v2 schema options (#762)
austonli May 19, 2022
b9520c6
Agent release for ciprod05192022 and win-ciprod05192022 (#765)
jatakiajanvi12 May 19, 2022
1dc7209
trivy image scan (#770)
pfrcks Jun 1, 2022
2345f29
Prometheus sidecar memory optimization (#769)
jatakiajanvi12 Jun 1, 2022
e1b0ccf
Gangams/fix telegraf issue (#773)
ganga1980 Jun 3, 2022
315470a
Make metrics endpoint variable on ArcA cluster (#772)
MSFTXiangyu Jun 9, 2022
c3136e4
add integration for azure subnet ip usage (#774)
vishiy Jun 13, 2022
96fdadb
Gangams/rs hyper scale 2022 ready (#753)
ganga1980 Jun 14, 2022
5f2900a
changes related to june 2022 release (#778)
ganga1980 Jun 14, 2022
fd7577b
Gangams/ARM Template updates for the DCR API version and stream group…
ganga1980 Jun 22, 2022
7e7a2b2
Bump Newtonsoft.Json in /build/windows/installer/certificategenerator…
dependabot[bot] Jun 27, 2022
1da9eac
Gangams/fix file access exceptions (#787)
ganga1980 Jun 27, 2022
d83ddf8
Adhere to containers security guidance (#783)
pfrcks Jun 27, 2022
a9ec7ee
update to DCR & DCR-A api version 2021-04-01 (#789)
ganga1980 Jun 29, 2022
5c2a959
fix telegraf vulns (#795)
pfrcks Jul 22, 2022
eb75489
Address vulnerabilities through package updates (#794)
pfrcks Jul 22, 2022
053c68d
Gangams/fix log loss inode reuse (#796)
ganga1980 Jul 25, 2022
870da7a
merge conflict (#799)
bragi92 Jul 28, 2022
f29033a
update vulns (#800)
pfrcks Jul 29, 2022
1da6c4c
Gangams/fix permission assignments in test scripts (#802)
ganga1980 Jul 29, 2022
d5df73c
Gangams/rs vpa (#801)
ganga1980 Aug 1, 2022
055ebe9
User/amagraw/fix milli bytes bug (#805)
pfrcks Aug 8, 2022
2209d9b
update to use GA labels (#806)
ganga1980 Aug 9, 2022
7e28614
Merge branch 'ci_dev' into user/amagraw/aug-release-merge-dev
pfrcks Aug 10, 2022
d8b2697
ciprod08102022 release
pfrcks Aug 10, 2022
33dc200
bump rs memory limit
pfrcks Aug 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .pipelines/azure_pipeline_dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ jobs:
az acr login -n ${{ variables.containerRegistry }}

if [ "$(Build.Reason)" != "PullRequest" ]; then
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxImagetag) --push .
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxImagetag) --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) --push .

docker pull ${{ variables.repoImageName }}:$(linuxImagetag)
else
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxImagetag) .
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxImagetag) --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) .

# load the multi-arch image to run tests
docker buildx build --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxImagetag) --load .
docker buildx build --tag ${{ variables.repoImageName }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg IMAGE_TAG=$(linuxImagetag) --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) --load .
fi

curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
Expand All @@ -135,14 +135,14 @@ jobs:
condition: eq(variables.IS_PR, true)
inputs:
BuildDropPath: '$(Build.ArtifactStagingDirectory)/linux'
DockerImagesToScan: 'golang:1.15.14, ubuntu:18.04'
DockerImagesToScan: '$(GOLANG_BASE_IMAGE), $(CI_BASE_IMAGE)'

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generation Task'
condition: eq(variables.IS_PR, false)
inputs:
BuildDropPath: '$(Build.ArtifactStagingDirectory)/linux'
DockerImagesToScan: 'golang:1.15.14, ubuntu:18.04, ${{ variables.repoImageName }}:$(linuxImagetag)'
DockerImagesToScan: '$(GOLANG_BASE_IMAGE), $(CI_BASE_IMAGE), ${{ variables.repoImageName }}:$(linuxImagetag)'

- task: PublishBuildArtifacts@1
inputs:
Expand Down
10 changes: 5 additions & 5 deletions .pipelines/azure_pipeline_prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ jobs:
az acr login -n ${{ variables.containerRegistry }}

if [ "$(Build.Reason)" != "PullRequest" ]; then
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageNameLinux }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --push .
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageNameLinux }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) --push .

docker pull ${{ variables.repoImageNameLinux }}:$(linuxImagetag)
else
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageNameLinux }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json .
docker buildx build --platform linux/amd64,linux/arm64 --tag ${{ variables.repoImageNameLinux }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) .

# load the multi-arch image to run tests
docker buildx build --tag ${{ variables.repoImageNameLinux }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --load .
docker buildx build --tag ${{ variables.repoImageNameLinux }}:$(linuxImagetag) -f kubernetes/linux/Dockerfile.multiarch --metadata-file $(Build.ArtifactStagingDirectory)/linux/metadata.json --build-arg GOLANG_BASE_IMAGE=$(GOLANG_BASE_IMAGE) --build-arg CI_BASE_IMAGE=$(CI_BASE_IMAGE) --load .
fi

curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin
Expand All @@ -138,14 +138,14 @@ jobs:
condition: eq(variables.IS_PR, true)
inputs:
BuildDropPath: '$(Build.ArtifactStagingDirectory)/linux'
DockerImagesToScan: 'golang:1.15.14, ubuntu:18.04'
DockerImagesToScan: '$(GOLANG_BASE_IMAGE), $(CI_BASE_IMAGE)'

- task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0
displayName: 'Generation Task'
condition: eq(variables.IS_PR, false)
inputs:
BuildDropPath: '$(Build.ArtifactStagingDirectory)/linux'
DockerImagesToScan: 'golang:1.15.14, ubuntu:18.04, ${{ variables.repoImageNameLinux }}:$(linuxImagetag)'
DockerImagesToScan: '$(GOLANG_BASE_IMAGE), $(CI_BASE_IMAGE), ${{ variables.repoImageNameLinux }}:$(linuxImagetag)'

- task: PublishBuildArtifacts@1
inputs:
Expand Down
29 changes: 6 additions & 23 deletions .trivyignore
Original file line number Diff line number Diff line change
@@ -1,27 +1,10 @@
# related to telegraf
#[vishwa] - Fix telegraf & test all for next release - see work item #https://msazure.visualstudio.com/InfrastructureInsights/_workitems/edit/13322134
# Unfixed as of 4/28/2022
# telegraf vulnerabilities
CVE-2019-3826

#still present in mdsd telegraf
CVE-2021-42836

# ruby in /usr/lib
CVE-2020-36327
CVE-2021-43809
CVE-2021-41816
CVE-2021-41819
CVE-2021-31799
CVE-2021-28965
CVE-2022-29190
CVE-2022-29222
CVE-2022-29189
CVE-2022-1996

#dpkg vulnerability in ubuntu
CVE-2022-1304


# Adding for Hotfix : This needs to be fixed
CVE-2022-27191
CVE-2022-29190
CVE-2022-29222
CVE-2022-31030
CVE-2022-29189
CVE-2022-29526
CVE-2022-2509
33 changes: 27 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Feel free to contact engineering team owners in case you have any questions abou

## Common
- [Visual Studio Code](https://code.visualstudio.com/) for authoring
- [Go lang](https://golang.org/) for building go code. Go lang version 1.15.14 (both Linux & Windows)
- [Go lang](https://golang.org/) for building go code. Go lang version 1.18.3 (both Linux & Windows)

> Note: If you are using WSL2, make sure you have cloned the code onto ubuntu not onto windows

Expand Down Expand Up @@ -90,7 +90,6 @@ The general directory structure is:
│ │ | ├── health/ - code for health feature
│ │ | ├── lib/ - lib for app insights ruby and this code of application_insights gem
│ │ | ... - plugins in, out and filters code in ruby
│ ├── toml-parser/ - code for parsing of toml configuration files
├── test/ - source code for tests
│ ├── e2e/ - e2e tests to validate agent and e2e workflow(s)
│ ├── unit-tests/ - unit tests code
Expand Down Expand Up @@ -121,7 +120,7 @@ We recommend using [Visual Studio Code](https://code.visualstudio.com/) for auth

### Install Pre-requisites

1. Install go1.15.14, dotnet, powershell, docker and build dependencies to build go code for both Linux and Windows platforms
1. Install go1.18.3, dotnet, powershell, docker and build dependencies to build go code for both Linux and Windows platforms
```
bash ~/Docker-Provider/scripts/build/linux/install-build-pre-requisites.sh
```
Expand All @@ -143,13 +142,35 @@ bash ~/Docker-Provider/scripts/build/linux/install-build-pre-requisites.sh

> Note: If you are using WSL2, ensure `Docker for windows` running with Linux containers mode on your windows machine to build Linux agent image successfully

> Note: format of the imagetag will be `ci<release><MMDDYYYY>`. possible values for release are test, dev, preview, dogfood, prod etc. Please use MCR urls while building internally.

Preferred Way: You can build and push images for multiple architectures. This is powered by docker buildx
Directly use the docker buildx commands (the MCR images can be found in our internal wiki to be used as arguments)
```
# multiple platforms
cd ~/Docker-Provider
docker buildx build --platform linux/arm64/v8,linux/amd64 -t <repo>/<imagename>:<imagetag> --build-arg IMAGE_TAG=<imagetag> --build-arg CI_BASE_IMAGE=<ciimage> --build-arg GOLANG_BASE_IMAGE=<golangimage> -f kubernetes/linux/Dockerfile.multiarch --push .

# single platform
cd ~/Docker-Provider
docker buildx build --platform linux/amd64 -t <repo>/<imagename>:<imagetag> --build-arg IMAGE_TAG=<imagetag> --build-arg CI_BASE_IMAGE=<ciimage> --build-arg GOLANG_BASE_IMAGE=<golangimage> -f kubernetes/linux/Dockerfile.multiarch --push .
```

Using the build and publish script

```
cd ~/Docker-Provider/kubernetes/linux/dockerbuild
sudo docker login # if you want to publish the image to acr then login to acr via `docker login <acr-name>`
# build provider, docker image and publish to docker image
bash build-and-publish-docker-image.sh --image <repo>/<imagename>:<imagetag>
bash build-and-publish-docker-image.sh --image <repo>/<imagename>:<imagetag> --ubuntu <ubuntu image url> --golang <golang image url>
```

```
cd ~/Docker-Provider/kubernetes/linux/dockerbuild
sudo docker login # if you want to publish the image to acr then login to acr via `docker login <acr-name>`
# build and publish using docker buildx
bash build-and-publish-docker-image.sh --image <repo>/<imagename>:<imagetag> --ubuntu <ubuntu image url> --golang <golang image url> --multiarch
```
> Note: format of the imagetag will be `ci<release><MMDDYYYY>`. possible values for release are test, dev, preview, dogfood, prod etc.

You can also build and push images for multiple architectures. This is powered by docker buildx
```
Expand Down Expand Up @@ -182,7 +203,7 @@ make

```
cd ~/Docker-Provider/kubernetes/linux/
docker build -t <repo>/<imagename>:<imagetag> --build-arg IMAGE_TAG=<imagetag> .
docker build -t <repo>/<imagename>:<imagetag> --build-arg IMAGE_TAG=<imagetag> --build-arg CI_BASE_IMAGE=<ciimage> .
docker push <repo>/<imagename>:<imagetag>
```
## Windows Agent
Expand Down
18 changes: 18 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,24 @@ additional questions or comments.

Note : The agent version(s) below has dates (ciprod<mmddyyyy>), which indicate the agent build dates (not release dates)

### 08/10/2022 -
##### Version microsoft/oms:ciprod08102022 Version mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod08102022 (linux)
##### Version microsoft/oms:win-ciprod08102022 Version mcr.microsoft.com/azuremonitor/containerinsights/ciprod:win-ciprod08102022 (windows)
##### Code change log
- Linux Agent
- Consume ruby from RVM instead of brightbox ppa

- Common
- Update to Ruby 3.1.1
- Update telegraf to 1.23.2
- Updates fluentd to 1.14.6
- Use default JSON gem instead of yajl-json
- Consume tomlrb as a gem instead of committed source code
- Move from beta.kubernetes.io to kubernetes.io
- Bug fixes
- Fix bug in processing fractional memory limits
- Fix log loss due to inode reuse

### 07/27/2022 -
##### Version microsoft/oms:ciprod06272022-hotfix Version mcr.microsoft.com/azuremonitor/containerinsights/ciprod:ciprod06272022-hotfix (linux)
- Fixes for sending the proper node allocatable cpu and memory value for the container which does not specify limits.
Expand Down
11 changes: 9 additions & 2 deletions build/common/installer/scripts/td-agent-bit-conf-customizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,16 @@ def substituteFluentBitPlaceHolders
bufferChunkSize = ENV["FBIT_TAIL_BUFFER_CHUNK_SIZE"]
bufferMaxSize = ENV["FBIT_TAIL_BUFFER_MAX_SIZE"]
memBufLimit = ENV["FBIT_TAIL_MEM_BUF_LIMIT"]
ignoreOlder = ENV["FBIT_TAIL_IGNORE_OLDER"]

serviceInterval = (!interval.nil? && is_number?(interval) && interval.to_i > 0 ) ? interval : @default_service_interval
serviceInterval = (!interval.nil? && is_number?(interval) && interval.to_i > 0) ? interval : @default_service_interval
serviceIntervalSetting = "Flush " + serviceInterval

tailBufferChunkSize = (!bufferChunkSize.nil? && is_number?(bufferChunkSize) && bufferChunkSize.to_i > 0) ? bufferChunkSize : nil

tailBufferMaxSize = (!bufferMaxSize.nil? && is_number?(bufferMaxSize) && bufferMaxSize.to_i > 0) ? bufferMaxSize : nil

if ((!tailBufferChunkSize.nil? && tailBufferMaxSize.nil?) || (!tailBufferChunkSize.nil? && !tailBufferMaxSize.nil? && tailBufferChunkSize.to_i > tailBufferMaxSize.to_i))
if ((!tailBufferChunkSize.nil? && tailBufferMaxSize.nil?) || (!tailBufferChunkSize.nil? && !tailBufferMaxSize.nil? && tailBufferChunkSize.to_i > tailBufferMaxSize.to_i))
puts "config:warn buffer max size must be greater or equal to chunk size"
tailBufferMaxSize = tailBufferChunkSize
end
Expand All @@ -54,6 +55,12 @@ def substituteFluentBitPlaceHolders
new_contents = new_contents.gsub("\n ${TAIL_BUFFER_MAX_SIZE}\n", "\n")
end

if !ignoreOlder.nil? && !ignoreOlder.empty?
new_contents = new_contents.gsub("${TAIL_IGNORE_OLDER}", "Ignore_Older " + ignoreOlder)
else
new_contents = new_contents.gsub("\n ${TAIL_IGNORE_OLDER}\n", "\n")
end

File.open(@td_agent_bit_conf_path, "w") { |file| file.puts new_contents }
puts "config::Successfully substituted the placeholders in td-agent-bit.conf file"
rescue => errorStr
Expand Down
52 changes: 34 additions & 18 deletions build/common/installer/scripts/tomlparser-agent-config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

#this should be require relative in Linux and require in windows, since it is a gem install on windows
@os_type = ENV["OS_TYPE"]
if !@os_type.nil? && !@os_type.empty? && @os_type.strip.casecmp("windows") == 0
require "tomlrb"
else
require_relative "tomlrb"
end
require "tomlrb"

require_relative "ConfigParseErrorLogger"

Expand Down Expand Up @@ -59,7 +55,7 @@
@fbitTailBufferChunkSizeMBs = 0
@fbitTailBufferMaxSizeMBs = 0
@fbitTailMemBufLimitMBs = 0

@fbitTailIgnoreOlder = ""

def is_number?(value)
true if Integer(value) rescue false
Expand Down Expand Up @@ -149,7 +145,7 @@ def populateSettingValuesFromConfigMap(parsedConfig)
end

fbitTailBufferMaxSizeMBs = fbit_config[:tail_buf_maxsize_megabytes]
if !fbitTailBufferMaxSizeMBs.nil? && is_number?(fbitTailBufferMaxSizeMBs) && fbitTailBufferMaxSizeMBs.to_i > 0
if !fbitTailBufferMaxSizeMBs.nil? && is_number?(fbitTailBufferMaxSizeMBs) && fbitTailBufferMaxSizeMBs.to_i > 0
if fbitTailBufferMaxSizeMBs.to_i >= @fbitTailBufferChunkSizeMBs
@fbitTailBufferMaxSizeMBs = fbitTailBufferMaxSizeMBs.to_i
puts "Using config map value: tail_buf_maxsize_megabytes = #{@fbitTailBufferMaxSizeMBs}"
Expand All @@ -160,16 +156,27 @@ def populateSettingValuesFromConfigMap(parsedConfig)
end
end
# in scenario - tail_buf_chunksize_megabytes provided but not tail_buf_maxsize_megabytes to prevent fbit crash
if @fbitTailBufferChunkSizeMBs > 0 && @fbitTailBufferMaxSizeMBs == 0
if @fbitTailBufferChunkSizeMBs > 0 && @fbitTailBufferMaxSizeMBs == 0
@fbitTailBufferMaxSizeMBs = @fbitTailBufferChunkSizeMBs
puts "config::warn: since tail_buf_maxsize_megabytes not provided hence using tail_buf_maxsize_megabytes=#{@fbitTailBufferMaxSizeMBs} which is same as the value of tail_buf_chunksize_megabytes"
end
end

fbitTailMemBufLimitMBs = fbit_config[:tail_mem_buf_limit_megabytes]
if !fbitTailMemBufLimitMBs.nil? && is_number?(fbitTailMemBufLimitMBs) && fbitTailMemBufLimitMBs.to_i > 0
@fbitTailMemBufLimitMBs = fbitTailMemBufLimitMBs.to_i
puts "Using config map value: tail_mem_buf_limit_megabytes = #{@fbitTailMemBufLimitMBs}"
end

fbitTailIgnoreOlder = fbit_config[:tail_ignore_older]
re = /^[0-9]+[mhd]$/
if !fbitTailIgnoreOlder.nil? && !fbitTailIgnoreOlder.empty?
if !re.match(fbitTailIgnoreOlder).nil?
@fbitTailIgnoreOlder = fbitTailIgnoreOlder
puts "Using config map value: tail_ignore_older = #{@fbitTailIgnoreOlder}"
else
puts "config:warn: provided tail_ignore_older value is not valid hence using default value"
end
end
end
end
rescue => errorStr
Expand Down Expand Up @@ -210,10 +217,15 @@ def populateSettingValuesFromConfigMap(parsedConfig)
end
if @fbitTailBufferMaxSizeMBs > 0
file.write("export FBIT_TAIL_BUFFER_MAX_SIZE=#{@fbitTailBufferMaxSizeMBs}\n")
end
end
if @fbitTailMemBufLimitMBs > 0
file.write("export FBIT_TAIL_MEM_BUF_LIMIT=#{@fbitTailMemBufLimitMBs}\n")
end
end

if !@fbitTailIgnoreOlder.nil? && !@fbitTailIgnoreOlder.empty?
file.write("export FBIT_TAIL_IGNORE_OLDER=#{@fbitTailIgnoreOlder}\n")
end

# Close file after writing all environment variables
file.close
else
Expand All @@ -231,26 +243,30 @@ def get_command_windows(env_variable_name, env_variable_value)

if !file.nil?
if @fbitFlushIntervalSecs > 0
commands = get_command_windows('FBIT_SERVICE_FLUSH_INTERVAL', @fbitFlushIntervalSecs)
commands = get_command_windows("FBIT_SERVICE_FLUSH_INTERVAL", @fbitFlushIntervalSecs)
file.write(commands)
end
if @fbitTailBufferChunkSizeMBs > 0
commands = get_command_windows('FBIT_TAIL_BUFFER_CHUNK_SIZE', @fbitTailBufferChunkSizeMBs)
commands = get_command_windows("FBIT_TAIL_BUFFER_CHUNK_SIZE", @fbitTailBufferChunkSizeMBs)
file.write(commands)
end
if @fbitTailBufferMaxSizeMBs > 0
commands = get_command_windows('FBIT_TAIL_BUFFER_MAX_SIZE', @fbitTailBufferMaxSizeMBs)
commands = get_command_windows("FBIT_TAIL_BUFFER_MAX_SIZE", @fbitTailBufferMaxSizeMBs)
file.write(commands)
end
end
if @fbitTailMemBufLimitMBs > 0
commands = get_command_windows('FBIT_TAIL_MEM_BUF_LIMIT', @fbitTailMemBufLimitMBs)
commands = get_command_windows("FBIT_TAIL_MEM_BUF_LIMIT", @fbitTailMemBufLimitMBs)
file.write(commands)
end
end
if !@fbitTailIgnoreOlder.nil? && !@fbitTailIgnoreOlder.empty?
commands = get_command_windows("FBIT_TAIL_IGNORE_OLDER", @fbitTailIgnoreOlder)
file.write(commands)
end
# Close file after writing all environment variables
file.close
puts "****************End Config Processing********************"
else
puts "Exception while opening file for writing config environment variables for WINDOWS LOG"
puts "****************End Config Processing********************"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@

#this should be require relative in Linux and require in windows, since it is a gem install on windows
@os_type = ENV["OS_TYPE"]
if !@os_type.nil? && !@os_type.empty? && @os_type.strip.casecmp("windows") == 0
require "tomlrb"
else
require_relative "tomlrb"
end
require "tomlrb"

require_relative "/etc/fluent/plugin/constants"
require_relative "ConfigParseErrorLogger"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

#this should be require relative in Linux and require in windows, since it is a gem install on windows
@os_type = ENV["OS_TYPE"]
if !@os_type.nil? && !@os_type.empty? && @os_type.strip.casecmp("windows") == 0
require "tomlrb"
else
require_relative "tomlrb"
end
require "tomlrb"

require_relative "ConfigParseErrorLogger"

Expand Down
Loading