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

52 Коммитов

Автор SHA1 Сообщение Дата
Long Wan 72b77bd2b2
update telegraf sign (#1325) 2024-09-26 18:42:33 +00:00
Amol Agrawal 782ba72f0b
set golang to 1.22.5 (#1288)
* set golang to 1.22.5

* update trivyignore
---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2024-07-11 12:40:32 -07:00
Amol Agrawal 98f85bc9b3
User/amagraw/display image id in build summary (#1289)
* add image id in summary

---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2024-07-10 17:14:14 -07:00
Long Wan f9ce02eb30
Skip lifecycle annotation attach for PR (#1279)
* skip lifecycle annotation attach for PR

* Update .trivyignore

---------

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
2024-06-13 13:58:14 -07:00
Long Wan b540d95e8c
Longw/esrp change service connection (#1274)
* Update azure_pipeline_mergedbranches.yaml for Azure Pipelines

* esrp migration to v5

* add variable echo

* update esrp task variables
2024-06-06 14:04:45 -07:00
Long Wan cddc0d39e3
Add life cycle metadata to container insights dev images (#1241)
* Add life cycle metadata to container image

* only add dev annotations for dev images
2024-06-05 09:23:08 -07:00
Janvi Jatakia 37e0f621e9
Add scan tools to the build pipeline (#1237)
* Add the missing tools to the build pipeline

* update policheck similar to prom metrics

* update binskim

* update trivyignore

* add policheck in windows section

---------

Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
2024-04-29 23:38:22 +00:00
Janvi Jatakia 51c04ca2be
Solving pipeline bugs for windows ama url variable (#1215)
Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
2024-03-25 18:44:45 -07:00
Janvi Jatakia 450cd9179b
Update the pipeline to not trigger for builds (#1214)
Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
2024-03-25 21:16:17 +00:00
Janvi Jatakia e30929c223
Enable disable addon test pipeline (#1208)
* Update daily_addons_enablement_test.yaml for Azure Pipelines

* Bump github.com/docker/docker in /source/plugins/go/input (#1194)

Bumps [github.com/docker/docker](https://github.com/docker/docker) from 24.0.6+incompatible to 24.0.7+incompatible.
- [Release notes](https://github.com/docker/docker/releases)
- [Commits](https://github.com/docker/docker/compare/v24.0.6...v24.0.7)

---
updated-dependencies:
- dependency-name: github.com/docker/docker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* start telegraf only when fluent tcp listener up and running (#1205)

* start telegraf only when fluent tcp listener up and running

* remove duplicate plugin

* update trivy ignore

* consistent with linux

* Containerlogv2 Metadata and annotations based filtering (#1148)

* add fluent-bit kubernetes filter (#1115)

* add fluent-bit kubernetes filter

---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* add metadata feilds including labels, annotations, uid and image (#1120)

* add metadata feilds including labels, annotations, uid and image

* set the include_fields if customer set it otherwise go with default if enabled

* fix minor bugs

* change placeholder

* add exclude specific kubernetes config

* update tls verify for linux

* make log filtering opt in explicit (#1140)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Longw/metadata containerlogv2 kubernetes (#1139)

* add metadata feilds including labels, annotations, uid and image

* rename to podUid and add nil check

* set the include_fields if customer set it otherwise go with default if enabled

* add workload to testing clusters

* containerlogv2 metadata backend change with feature flag on

* adjust the marshal and log the output

* address comments add check and scenario for empty list

* remove ADX support

* go fmt for better format

* fix space in tomlparser.rb

* update trivy ignore

* fix  Kube_Tag_Prefix for windows

* update trivy

* add ttl for metadata cache

* update containerlogv2 test workloads

* change typo and update tests

* Longw/metadata containerlogv2 address feedback (#1166)

* add argument for sendMetric

* update SendMetric

* update SendMetric

* Longw/metadata containerlogv2 address feedback2 (#1186)

* extend to support more configs on metadata

* add warning message if feilds not match

* add plugin for geneva path

* add kubernetesMetadataCollection for geneva path

* Longw/metadata containerlogv2 address feedback2 (#1188)

* remove send metric

* update trivy

* Longw/metadata containerlogv2 address feedback3 (#1195)

* update doc for containerlogv2 linux

* add kube_meta_cache_ttl to agent settings

* update logic to adjust colonLocation as the end of the list if it is not found

* address comments and feedback

* update conf file for geneva

* adjust geneva and add new metrics

* address feedback for geneva path

* add telemetry in go

* address comments for geneva conf filter config

---------

Co-authored-by: Amol Agrawal <pfrcks@gmail.com>
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* move LOGS_AND_EVENTS_ONLY telemetry to DS (#1212)

* move LOGS_AND_EVENTS_ONLY telemetry to DS

* Add CVE-2024-24557 to trivyignore

---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* fix input plugin bugs (#1207)

* fix input plugin bugs

---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* collect logs from pods from excluded system ns (#1138) (#1146)

* collect logs from pods from excluded system ns

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Long Wan <longwan@microsoft.com>
Co-authored-by: Amol Agrawal <pfrcks@gmail.com>
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2024-03-22 10:20:48 -07:00
Janvi Jatakia 2822b240f2
Golang downgrade back to 1.20.5 (#1198)
* update to previous golang version

* Update the utils.go package

* Adding auth package

* Update the version of the src plugins

* Update to older versions of go.sum

* Remove the make from pipelines

* Updating the pipeline

* Update trivy

* Update logrus as go.sum missing

* Update the go.sum entry

* Update go packages

---------

Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
2024-03-10 16:34:31 -07:00
Janvi Jatakia 063d35cae0
Integrating fluent-bit input plugins for Linux/Windows (#1144)
* Implement input plugin setup + perf and containerinventory plugins (#1112)

* migrate perf and containterinventory plugins

---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* add var to livenessprobe (#1116)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Add perf and container inventory plugins for Windows and integrating them to named pipe (#1113)

Add perf and container inventory plugins for Windows and integrating them to named pipe (#1113)

* Resolving comments

* Solving a bug

* Using the new input plugins only for windows msi mode

* Remove the duplicate flow of logs

* Not update the config files when legacy and resource optimization is on

* Not updating the config map for geneva as well

* Solving timestamp bug and add windows_rs.conf files

* Var name change bug

* Use the stat of a file instead of reading from file

* address PR comments - I

* update fluent-bit to 2.1.10

* update trivyignore

* fix bug in confg parsing

* add shared library

* revert fluent-bit upgrade in windows

* Adding a configmap option for disabling windows fluent-bit

* Adding a configmap option for disabling windows fluent-bit

* Solving a bug

* Resolving comments

* Solving RS bug

* Solving a bug

* Resolving comments

* remove linux option from cm

* Update trivyignore

* Sign the containerinventory.so and perf.so files

* Signing windows binary files

* Update the go mod tidy for the ci_prod changes

* Update go.mod to 1.21

* bug

* Update fluent-bit conf

* Update the fluent-bit conf file

* fluentd starting two times

---------

Co-authored-by: Amol Agrawal <pfrcks@gmail.com>
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
2024-03-05 09:57:14 -08:00
Janvi Jatakia 032dc8017e
Adding docker prune to avoid disk usage (#1170)
Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
2024-02-07 14:19:24 -08:00
Long Wan 0aa229026f
Longw/adjust build pipeline for recurring codeQL issue and scheduled build for ci_prod (#1157)
* update finalize location

* add pre build for linux
2024-01-24 18:03:24 -08:00
Long Wan f8ea86ccb5
Longw/esrp signing and dynamic scripts refactoring (#1087)
Binaries and images signing for container insights
2023-10-19 16:01:14 -07:00
Alexander Kaplan 50076a9569
Remove all ApplicationInsights code (#1088)
* Remove all ApplicationInsights code

* Missed a spot in .gitignore
2023-09-29 12:53:11 -07:00
Amol Agrawal 7e3ff8a7e9
Fix component governance and sbom generation (#1089)
* update docker images list in sbom generation and component governance
2023-09-29 09:38:24 -07:00
Janvi Jatakia a11473e586
Update the pipeline to take WINDOWS_AMA_URL from the pipeline (#1059)
* Adding a variable WINDOWS_AMA_URL for ama testing

---------

Co-authored-by: Janvi Jatakia (from Dev Box) <jajataki@microsoft.com>
2023-09-20 14:35:15 -07:00
Long Wan ddc7db330f
Update CI dev image tags (#1007)
* adjust dev image tags
2023-07-06 14:44:42 -07:00
Alexander Kaplan cd8ed9aecb
Switching appmonitoring build to ai_prod branch (#990) 2023-06-08 07:06:39 -07:00
Amol Agrawal b04fda0a9e
allow selective platform builds for linux (#987)
* allow selective platform builds for linux

* undo line ending changes
2023-06-06 19:34:28 -07:00
Alexander Kaplan 8c644cacad
Application Insights kubernetes webhook - initial footprint (#978)
* adding Application Insights webhook image to the CI pipeline - build and release

---------

Co-authored-by: ramanujbhattacharjee93 <rambhatt@microsoft.com>
2023-06-06 11:31:17 -07:00
Long Wan 74ec37b038
clean unused files in Docker Provider (#966)
* clean unused files

* remove more unused and replace deprecated method

* address comments

* clean all deprecated tag
2023-05-11 12:04:15 -07:00
Janvi Jatakia 9266a76a1d
Updating from Ubuntu to Mariner (#941)
Moving Ubuntu 18.04 to Marinerv2. 
- Changes in main.sh and setup.sh
- Changes in Dockerfile.multiarch
- Adding MARINER.md
- Adding proper fields in rpm file for arm64 and amd64


* Move to marinerv2

* Update the directory name in Dockerfile

* Update the name of the variable

* Removing the unnecessary rm files from setup.sh

* Update the certficates for installing trivy

* Update trivyignore

* Solving the ruby not available issue

* Adding tar dependency

* Updating trivyignore

* Adding bigdecimal gem for fluentd

* Update trivy

* Moving telegraf to /opt/telegraf

* Remove rsyslog stopping

* Updating trivyignore

* Add the SSL_CERT_FILE

* Updating the ca-trust

* Moving mariner to distroless

* Remove logger

* Update telegraf location

* Updating the busybin in path variable

* Update main.sh for distroless

* Update to the latest packages for telegraf and fluentbit

* Removing some trivyignore

* Moving trivy checking after distroless changes

* Removing trivy from within the image

* Update go.sum to latest

* Update msgp and auth package

* Add two CVEs to trivyignore

* Remove certificates install for trivy and SSL_CERT_FILE from main.sh

* Move all the package versions in one file, remove duplicate env vars in dockerfile

* Update the logrotate and crontab

* Update dockerfile to remove logrotate reference

* Add crontab

* Add the BuildARch in specfile

* Update the target_cpu macro

* Update the target_cpu and BuildArch for arm64 and amd64

* Updated only the necessary changes

* Updating the MARINER.md

* Update trivy feedback

* Update trivyignore

* Resolved comments - part 1

* Resolving comments - part 2 and Commenting trivyignore to see all the vulns still present

* Add one vuln as trivignore is not recignized

* Removing trivyignore copy to distroless

* Update getting the DOCKER_BUILDKIT: 1 for the bug

* Get trivy working and removing crontab

* Update vulnerabilities

* Updating the new telegraf vuln

* Removing openssl gem

* Removed the IMAGE_TAG and AGENT_VERSION duplicates

* Update to use ruby-build

* Resolving comments - cleanup ruby-build and tdnf install fluentd

* Test- get fluentd from gem

---------

Co-authored-by: Janvi Jatakia <jajataki@microsoft.com>
2023-04-24 16:47:01 -07:00
Long Wan 714afbc98d
Longw/ruby gem clean (#950)
* remove unused default gem

* update the timelimit

* revert remove python since it is essential in arm64 build
2023-04-11 13:32:23 -07:00
Amol Agrawal e5d846682d
explicitly enable codeql (#927)
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2023-03-14 15:42:34 -07:00
Amol Agrawal 1c6c3fcf49
Add devskim and codeql for SDL (#926)
- add codeql in ADO pipeline
- add devskim as github action

---------

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2023-03-14 14:22:25 -07:00
Amol Agrawal 0da39d295a
disable provenance in buildx (#911)
https://github.com/docker/buildx/issues/1509

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2023-02-28 15:36:15 -08:00
Long Wan 191d322cfd
Longw/arc automation pipeline ev2 (#897)
* arc extension registration

* arc v2 pipelines

* updpate multi regions pipe

* adjust pipelines

* update

* migrate to ev2

* add msi

* chart version

* rm commented out test

* update pipeline for all regions release

* address comments
2023-02-10 16:46:25 -08:00
Long Wan 8e9f59af01
Longw/aks semver (#876)
* semver change

* sync with master

* merge

* sync the match pattern

* update the full path

* address comments

* address comments

* comments

* comments

* comments

* update notes

* address the telemetry diff

* address comments

* Update Dockerfile

* update

* add new $TELEMETRY_TAG var
2023-01-20 12:08:03 -08:00
Amol Agrawal a697f5a938
rename omsagent to ama-logs (#823)
* rename omsagent to ama-logs

* undo merge change related errors

* workaround for build

* add change to windows container name

* workaround fixed?

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2022-10-03 12:15:31 -07:00
Amol Agrawal e7e0551ba6
remove workaround since images are fixed (#829) 2022-09-26 16:33:30 -07:00
Amol Agrawal 3f367c9ff4
workaround by symlinking docker location (#827)
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2022-09-23 09:45:49 -07:00
Amol Agrawal 0903e86466
Add component governance to build pipelines (#815)
* try component governance

* add docker image component governance

* update trivyignore
2022-09-08 14:05:48 -07:00
Janvi Jatakia 42b0326015
Merge the ci_dev branch to ci_prod (#812)
This just includes the changes for merging ci_dev and ci_prod branches
2022-08-26 13:09:30 -07:00
Amol Agrawal ee49024f5d
CI Aug 2022 Release (#807)
* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

* Update onboarding_instructions.md (#456)

* Update onboarding_instructions.md

Updated the documentation to reflect where to update the config map.

* Update onboarding_instructions.md

* Update onboarding_instructions.md

* Update onboarding_instructions.md

Updated the link

* chart update for sept2020 release (#457)

* add missing version update in the script (#458)

* November release fixes - activate one agent, adx schema v2, win perf issue, syslog deactivation (#459)

* activate one agent, adx schema v2, win perf issue, syslog deactivation

* update chart

* remove hiphen for params in chart (#462)

Merging as its a simple fix (remove hiphen)

* Changes for cutting a new build for ciprod10272020 release (#460)

* using latest stable version of msys2 (#465)

* fixing the windows-perf-dups (#466)

* chart updates related to new microsoft/charts repo (#467)

* Changes for creating 11092020 release (#468)

* MDM exception aggregation (#470)

* grwehner/mdm custom metric regions (#471)

Remove custom metrics region check for public cloud

* updaitng rs limit to 1gb (#474)

* grwehner/pv inventory (#455)

Add fluentd plugin to request persistent volume info from the kubernetes api and send to LA

* Gangams/fix for build release pipeline issue (#476)

* use isolated cdpx acr

* correct comment

* add pv fluentd plugin config to helm rs config (#477)

* add pv fluentd plugin to helm rs config

* helm rbac permissions for pv api calls

* Gangams/fix rs ooming (#473)

* optimize kpi

* optimize kube node inventory

* add flags for events, deployments and hpa

* have separate function parseNodeLimits

* refactor code

* fix crash

* fix bug with service name

* fix bugs related to get service name

* update oom fix test agent

* debug logs

* fix service label issue

* update to latest agent and enable ephemeral annotation

* change stream size to 200 from 250

* update yaml

* adjust chunksizes

* add ruby gc env

* yaml changes for cioomtest11282020-3

* telemetry to track pods latency

* service count telemetry

* rename variables

* wip

* nodes inventory telemetry

* configmap changes

* add emit streams in configmap

* yaml updates

* fix copy and paste bug

* add todo comments

* fix node latency telemetry bug

* update yaml with latest test image

* fix bug

* upping rs memory change

* fix mdm bug with final emit stream

* update to latest image

* fix pr feedback

* fix pr feedback

* rename health config to agent config

* fix max allowed hpa chunk size

* update to use 1k pod chunk since validated on 1.18+

* remove debug logs

* minor updates

* move defaults to common place

* chart updates

* final oomfix agent

* update to use prod image so that can be validated with build pipeline

* fix typo in comment

* Gangams/enable arc onboarding to ff (#478)

* wip

* updates

* trigger login if the ctx cloud not same as specified cloud

* add missed commit

* Convert PV type dictionary to json for telemetry so it shows up in logs (#480)

* fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX route for containerlogs in windows (for O365) (#482)

* fix ci envvar collection in large pods (#483)

* grwehner/jan agent tasks (#481)

- Windows agent fix to use log filtering settings in config map.
- Error handling for kubelet_utils get_node_capacity in case /metrics/cadvsior endpoint fails.
- Remove env variable for workspace key for windows agent

* updating fbit version and cpu limit (#485)

* reverting to older version (#487)

* Gangams/add fbsettings configurable via configmap (#486)

* wip

* fbit config settings

* add config warn message

* handle one config provided but not other

* fixed pr feedback

* fix copy paste error

* rename config parameter names

* fix typo

* fix fbit crash in helm path

* fix nil check

* Gangams/jan agent release tasks (#484)

* wip

* explicit amd64 affinity for hybrid workloads

* fix space issue

* wip

* revert vscode setting file

* remove per container logs in ci (#488)

* updates for ciprod01112021 release (#489)

* new yaml files (#491)

* Use cloud-specific instrumentation keys (#494)

If APPLICATIONINSIGHTS_AUTH_URL is set/non-empty then the agent will now grab a custom IKey from a URL stored in APPLICATIONINSIGHTS_AUTH_URL

* upgrade apt to latest version (#492)

* upgrade apt to latest version

* fix pr feedback

* Gangams/add support for extension msi for arc k8s cluster (#495)

* wip

* add env var for the arc k8s extension name

* chart update

* extension msi updates

* fix bug

* revert chart and image to prod version

* minor text changes

* image tag to prod

* wip

* wip

* wip

* wip

* final updates

* fix whitespaces

* simplify crd yaml

* Gangams/arm template arc k8s extension (#496)

* arm templates for arc k8s extension

* update to use official extension type name

* update

* add identity property

* add proxyendpointurl parameter

* add default values

* Gangams/aks monitoring via policy (#497)

* enable monitoring through policy

* wip

* handle tags

* wip

* add alias

* wip

* working

* updates

* working

* with deployment name

* doc updates

* doc updates

* fix typo in the docs

* revert to use operatingSystem from osImage for node os telemety (#498)

* Container log v2 schema changes (#499)

* make pod name in mdsd definition as str for consistency. msgp has no type checking, as it has type metadata in it the message itself.

* Add priority class to the daemonsets (#500)

* Add priority class to the daemonsets

Add a priority class for omsagent and have the daemonsets use this
to be sure to schedule the pods.

Daemonset pods are constrained in scheduling to run on specific
nodes.  This is done by the daemonset controller.  When a node shows
up it will create a pod with a strong affinity to that node.  When a
node goes away, it will delete the pod with the node affinity to that
node.

Kubernetes pod scheduling does not know it is a daemonset but it does
know it is tied to a specific node.  With default scheduling, it is
possible for the pods to be "frozen out" of a node because the node
already is full.  This can happen because "normal" pods may already
exist and are looking for a node to get scheduled on when a node is
added to the cluster.  The daemonset controller will only first
create the pod for the node at around the same time.  The kubernetes
scheduler is running async from all of this and thus there can be a
race as to who gets scheduled on the node.

The pod priority class (and thus the pod priority) is a way to indicate
that the pod has a higher scheduling priority than a default pod.

By default, all pods are at priority 0.  Higher numbers are higher
priority.  Setting the priority to something greater than zero will
allow the omsagent daemonsets to win a race against "normal" pods for
scheduled resources on a node - and will also allow for graceful
eviction in the case the node is too full.

Without this, omsagent can be left out of node in clusters that are
very busy, especially in dynamic scaling situations.

I did not test the windows pod as we have no windows clusters.

* CR feedback

* fix node metric issue (#502)

* Bug fixes for Feb release (#504)

* bug fix for mdm metrics with no limits

* fix exception bug

* Gangams/feb 2021 agent bug fix (#505)

* fix npe in getKubeServiceRecords

* use image fields from spec

* fix typo

* cover all cases

* handle scenario only digest specified

* changes for release -ciprod02232021 (#506)

* Gangams/e2e test framework (#503)

* add agent e2e fw and tests

* doc and script updates

* add validation script

* doc updates

* yaml updates

* fix typo

* doc updates

* more doc updates

* add ISTEST for helm chart to use arc conf

* refactor test code

* fix pr feedback

* fix pr feedback

* fix pr feedback

* fix pr feedback

* scrape new kubelet pod count metric name (#508)

* Adding explicit json output to az commands as the script fails if az is configured with Table output #409 (#513)

* Gangams/arc proxy contract and token renewal updates (#511)

* fix issue with crd status updates

* handle renewal token delays

* add proxy contract

* updates for proxy cert for linux

* remove proxycert related changes

* fix whitespace issue

* fix whitespace issue

* remove proxy in arm template

* doc updates for microsoft charts repo release (#512)

* doc updates for microsoft charts repo release

* wip

* Update enable-monitoring.sh (#514)

Line 314 and 343 seems to have trailing spaces for some subscriptions which is exiting the script even for valid scenarios

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Prometheus scraping from sidecar and OSM changes (#515)

* add liveness timeout for exec (#518)

* chart and other updates (#519)

* Saaror osmdoc (#523)

* Create ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Add files via upload

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* telemetry bug fix (#527)

* Fix conflicting logrotate settings (#526)

The node and the omsagent container both have a cron.daily file to rotate certain logs daily. These settings are the same for some files in /var/log (mounted from the node with read/write access), causing the rotation to fail when both try to rotate at the same time. So then the /var/log/*.1 file is written to forever. Since these files are always written to and never rotated, it causes high memory usage on the node after a while.

This fix removes the container logrotate settings for /var/log, which the container does not write to.

* bug fix (#528)

* Gangams/arc ev2 deployment (#522)

* ev2 deployment for arc k8s extension

* fix charts path issue

* rename scripts tar

* add notifications

* fix line endings

* fix line endings

* update with prod repo

* fix file endings

* added liveness and telemetry for telegraf (#517)

* added liveness and telemetry for telegraf

* code transfer

* removed windows liveness probe

* done

* Windows metric fix (#530)

* changes

* about to remove container fix

* moved caching code to existing loop

* removed un-necessary changes

* removed a few more un-necessary changes

* added windows node check

* fixed a bug

* everything works confirmed

* OSM doc update (#533)

* Adding MDM metrics for threshold violation (#531)

* Rashmi/april agent 2021 (#538)

* add Read_from_Head config for all fluentbit tail plugins (#539)

See the commit message of: fluent/fluent-bit@70e33fa
for details explaining the fluentbit change and what Read_from_Head does when set to true.

* fix programdata mount issue on containerd win nodes (#542)

* Update sidecar mem limits  (#541)

* David/release 4 22 2021 (#544)

* updating image tag and agent version

* updated liveness probe

* updated release notes again

* fixed date in version file

* 1m, 1m, 1s by default (#543)

* 1m, 1m, 1s by default

* setting default through a different method

* David/aad stage 1 release (#556)

* update to latest omsagent, add eastus2 to mdsd regions

* copied oneagent bits to a CI repository release

* mdsd inmem mode

* yaml for cl scale test

* yaml for cl scale test

* reverting dockerProviderVersion version to 15.0.0

* prepping for release (updated image version, dockerProviderVersion, and release notes

* container log scaletest yamls

* forgot to update image version in chart

* fixing windows tag in dockerfile, changing release notes wording

* missed windows tag in one more place

* forgot to change the windows dockerProviderVersion back

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Update ReleaseNotes.md (#558)

fix imagetag in the release notes

* Add wait time for telegraf and also force mdm egress to use tls 1.2 (#560)

* Add wait time for telegraf and also force mdm egress to use tls 1.2

* add wait for all telegraf dependencies across all containers (ds & rs)

* remove ssl change so we dont include as part of the other fix until we test with att nodes.

* partially disabled telegraf liveness probe check, we'll still have telemetry but the probe won't fail if telegraf isn't running (#561)

* changes for 05202021 release (#563)

* changes for 05202021 release

* fixed typos

* Rashmi/jedi wireserver (#566)

* Update ReadMe.md (#565)

* Update ReadMe.md

* Update ReadMe.md

Included feedback from OSM team and Fixed

* Gangams/aad stage2 full switch to mdsd (#559)

* full switch to mdsd, upgrade to ruby v1 & omsagent removal

* add odsdirect as fallback option

* cleanup

* cleanup

* move customRegion to stage3

* updates related to containerlog route

* make xml eventschema consistent

* add buffer settings

* address HTTPServerException deprecation in ruby 2.6

* update to official mdsd version

* fix log message issue

* fix pr feedback

* get ridoff unused code from omscommon

* fix pr feedback

* fix pr feedback

* clean up

* clean up

* fix missing conf

* Send perf metrics to MDM from windows daemonset (#568)

* updating json gem to address CVE-2020-10663 (#567)

* updating json gem to address CVE-2020-10663

* updating json gem to address CVE-2020-10663

* update recommended alerts readme (#570)

@dcbrown16 pointed out that this page links to the wrong document in [this issue](https://github.com/microsoft/Docker-Provider/issues/475). The content in the currently linked page is identitical to the page which should be linked, so it's a simple fix.

* trying again to fix the json gem (#571)

* trying again to fix the json gem

* removing installation of newer json gem

* Addressing PR comments for - https://github.com/microsoft/Docker-Provider/pull/568 (#569)

* Mem_Buf_limit  is configurable via ConfigMap (#574)

* add log rotation settings for fluentd logs (#577)

* Gangams/release 06112021 (#578)

* updates related to ciprod06112021 release

* minor update

* release note update (#579)

* Make sidecar fluentbit chunk size configurable (#573)

* Fix vulnerabilities (#583)

* test

* test1

* test-2

* test-3

* 3

* 4

* test

* 2

* 3

* 4

* 5

* 6

* rename gem for windows

* fix

* fix

* Windows build optimization (#582)

* fix windows build failure due to msys2 version

* Fix telegraf startup issue when endpoint is unreachable (#587)

* revert fbit tail plugins defaults to std defaults (#586)

* fixed another bug (#593)

* feat: add new metrics to MDM for allocatable % calculation of cpu and memory usage (#584)

* feat: allocatable cpu and memory % metrics for MDM

* maybe

* linux is working

* windwos....

* some more

* comment

* better

* syntax

* ruby

* revert omsagent.yaml

* comments

* pr feedback

* pr feedback

* testing msys2 version update

* better

* update adx sdk for perf issue (#601)

* remove md check

* Gangams/release notes update for hotfix (#596)

* release notes updates

* release notes updates for ciprod06112021-1

* Cherry picking hotfix changes to ci_dev (#605)

* release changes (#607)

* Gangams/aad stage3 msi auth (#585)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* refactor the windows agent ingestion token code

* code cleanup

* fix build errors

* code clean up

* code clean up

* code clean up

* code clean up

* more refactoring

* fix bug

* fix bug

* add debug logs

* add nil checks

* revert changes

* revert yaml change since this added in aks side

* fix pr feedback

* fix pr feedback

* refine retry code

* update mdsd env as per official build

* cleanup

* update env vars per mdsd

* update with mdsd official build

* skip cert gen & renewal incase of aad msi auth

* add nil check

* cherry windows agent nodeip issue

* fix merge issue

Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* Gangams/remove chart version dependency (#589)

* remove chart version dependency

* remove unused code

* fix resource type

* fix

* handle weird cli chars

* update release process

* Gangams/july 2021 release tasks 3 (#613)

* use artifact and pipeline creds for image push

* minor update

* add vuln fix here so that pr can be merged

* remove un-used output plugin (#614)

* fix telegraf telemetry and improve fluentd liveness (#611)

* fix telegraf telemetry and improve fluentd liveness

* address identified vuln with libsystemd0

* fix exported image file extension

* Gangams/july 2021 release tasks 2 (#612)

* tail rs mdsd err logs

* configure mdsd log rotation

* log rotation for mdsd log files

* Fix out_oms.go dependency vulnerabilities (#623)

* revert libsystemd0 update (#616)

* updates for ci-prod release instructions (#619)

* cherry pick changes from ci_prod (#622)

* Support az login for passwords starting with dash ('-') (#626)

Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>

* Gangams/add telemetry fbit settings (#628)

* add telemetry to track fbit settings

* add telemetry to track fbit settings

* check onboarding status (#629)

* Gangams/arc k8s conformance test updates (#617)

* conf test updates

* clean up

* wip

* update with mcr cidev image

* handle log path

* cleanup

* clean up

* wip

* working

* update for mcr image

* minor

* image update

* handle latency of connected cluster resource creation

* update conftest image

* upgrade golang version for windows in pipeline build and locally (#630)

* Updating a link in Readme.md (#632)

The link to the build pipelines now goes directly to our build pipelines (instead of to all github-private pipelines)

* Updating omsagent yaml to have parity with omsagent yaml file in AKS RP (#615)

* Unit test tooling (#625)

Added tooling and examples for unit tests

* run unit tests after a merge too (#634)

* flag stale PRs & issues

* Adding script to collect logs (for troubleshooting) (#636)

* added script for collecting logs

* added windows daemonset and prometheus sidecar, as well as some explanatory prints

* added kubectl describe and kubectl logs output

* changed message to make it more clear some erros are expected

* Sarah/ev2 (#640)

* ev2 artifacts for release pipeline

* update parameters reference

* add artifacts tar file

* changes to rollout and service model

* change agentimage path

* adding agentimage to artifact script

* removing charts from tarball

* change script to use blob storage

* change blob variables

* echo variables

* change blob uri

* use release id for blob prefix

* change to delete blob file

* add check for if blob storage file exists

* fix script errors

* update check for file in storage

* change true check

* comments and change storage account info to pipeline variables

* Changes for windows tar file

* PR changes

* documenting fbit tail plugin configmap settings. (#638)

* documenting fbit tail plugin configmap settings.

* Install unzip package on shell extension (#642)

* Changing installation in ev2 script (#644)

* Adjust release pipeline to use cdpx acr (#647)

* Adjust release pipeline to use cdpx acr

* Adjust release pipeline to use cdpx acr

* Update CDPX ACR path

* Add check for cdpx repo variable

* Sarah/ev2 prod (#649)

* Ev2 changes for prod

* CDPX repo naming change (#652)

* Sarah/ev2 update (#654)

* remove acr name from repo path

* add check to make sure tag does not exist in mcr repo

* change tag syntax for mcr repo check (#655)

* Gangams/optimize win livenessprobe (#653)

* livenessprobe optimization

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* Gangams/addon token adapter image tag to telemetry (#656)

* addon token adapter image tag

* addon token adapter image tag

* Sarah/ev2 helm (#658)

* Use MSI for Arc Release

* Use CIPROD_ACR AME subscription for shell extension

* remove extra line endings

* Sarah/ev2 pipeline (#661)

* testing build artifact dir changes

* add .pipelines directory and omsagent.yaml to build artifacts

* add charts directory to build artifacts (#662)

* Sarah/remove cdpx creds (#664)

* don't use cdpx acr creds from kv

* add e2etest.yaml to build output

* keep cdpx creds for now

* chart updates for rbac api version change (#660)

* chart updates for rbac api version change

* include windows ds for arc

* proxy support (for non-aks) (#665)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* initial proxy support

* merge?

* cleaning up some files which should've merged differently

* proxy should be working, but most tables don't have any data. About to merge, maybe whatever was wrong is now fixed

* linux AMA proxy works

* about to merge

* proxy support appears to be working, final mdsd build location will still change

* removing some unnecessary changes

* forgot to remove one last change

* redirected mdsd stderr to stdout instead of stdin

* addressing proxy password location comment

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Gangams/agent release ciprod10082021 & win-ciprod10082021 (#666)

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* use buildcommand for prod pipeline (#668)

* fixed merge issues. (#671) (#672)

* fix merge conflicts

* update with newimage tag

* changes related to mdsd version update (#673) (#674)

* Sarah/enable metrics (#675)

* add user assigned msi to yaml for pipeline

* update placeholders

* Gangams/chart updates oct2021 release (#676)

* chart updates for oct2021 release

* wip

* wip

* wip

* Gangams/msi mode mdsd crash fix (#677)

* update mdsd version which has fix for crash in msi mode

* image tag updates

* update to use extension GA api version (#679)

* Gangams/arm template msi onboarding (#659)

* wip

* wip

* working

* working

* working

* working

* working

* working

* shorten dcr prefix to DCR- to handle default workspace name length

* use MSCI- prefix similar to MSVMI- for dcr

* Gangams/conf test updates to handle sidecar (#681)

* wip

* test updates

* fix pr feedback

* fix pr feedback

* Fix scan break due to latest trivy changes

* Anjohans/configurable database name (#663)

* First cut at an implementation

* Reverting a change

* Moving a few lines to better align with cluster URI config

* Moving a few lines to better align with cluster URI config

* Adding an extra check that won't hurt

* Getting ADX database name from config rather than from secret

* Reverse the mangling done by editor

* Fixes to the code for reading the db name setting

* More fixes to the rb code for settings

* Tweaked and tested

* Code review

* Review follow-up

* Remove whitespace

* Gangams/troubelshooting script for arc k8s (#682)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* doc updates

* doc updates

* wip

* wip

* update repo for issues

* fix minor one

* Sarah/remove cdpx creds (#685)

* remove download of cdpx creds

* fix: subtract number instead of string + update fluentd version 1.14.2 to fix security vulnerability (#686)

* fix: change default value to a number so that substraction happens correctly

* update fluentd version to 1.14.2

* extra end statement

* safely set to float

* big decimal precision

* revert omsagent

* keep telemetry

* Faster Linux builds (part 1) (#687)

* moved docker image arg later on to enable docker build caching

* fixing image tag (doh)

* Sarah/fluentbit windows log (#688)

* upgrade fluentbit version for windows

* saving progress--fluent bit log tailing working for windows

* use configmap values for fluent-bit.conf where necessary and make necessary files common

* revert certificategenerator

* remove tomlparser-agent-config from linux folder

* clean up fluent.conf

* clean up fluent-bit.conf

* revert image tag

* fix agent tag

* make fluent bit flush interval configurable

* clean up unecessary conf files

* remove unecessary parts of fluent and fluent-bit conf

* log level back to info

* add fbit env variables for omsagent-win

* moving db files to var directory

* default to port 10250 & containerd for linux agent (#699)

* default to port 10250 & containerd

* fix pr feedback

* Updating pod annotation for latest agent version (#697)

* fix windows build failure due to msys2 version (#700)

* fix windows build failure due to msys2 version

* 20211130.0.0

* Jan agent tasks (#698)

* remove v1 fallback hidden option (#705)

* collect telemetry containerlog records with emptystamp (#703)

* collect telemetry containerlog records with emptystamp

* collect telemetry containerlog records with emptystamp

* Fixing telegraf bug for placeholder name (#706)

* Gangams/jan 2022 release tasks 3 (#702)

* add telemetry related to windows containers records

* add telemetry related to windows containers records

* containercount telemetry

* add explicit exit code in ps scripts

* node count telemetry

* telemetry for win cirecord 64KB or more

* metric to track wintelegraf metrics with tags 64kb

* metric to track wintelegraf metrics with tags 64kb

* fix pr feedback

* Gangams/jan 2022 release tasks 2 (#701)

* mdsd proc cpu and memory telemetry

* write ai logs to file and telemetry for mdsd proc

* write ai logs to file and telemetry for mdsd proc

* write ai logs to file and telemetry for mdsd proc

* fix pr feedback

* use name_prefix

* remove mdsd telemetry changes

* remove mdsd telemetry changes

* remove mdsd telemetry changes

* release updates for ciprod01312022 & win-ciprod01312022release (#707)

* release updates for ciprod01312022 release

* release updates for ciprod01312022 release

* fix pr feedback

* fix logger exception (#709)

* Gangams/chart version update for jan release (#710)

* chart updates for jan2022 release

* add missing agentversion annotations

* fix agentversion annotation issue in chart (#712)

* adx bug + misc (#714)

* fix golang dependencies

* fix adx bug

* exclude telegraf

* fix space

* include both

* exclude files specifically

* fix build break (#715)

* fix build break

* update all places

* Explicitly use win-2019 to unblock windows PRs builds

* Fixing telegraf vulnerability (#716)

* cherry picked changes from 03112022 release (#719)

* cherry picked changes from 03112022 release

* Gangams/http proxy support (#717)

* add proxy cert support

* add proxy cert support

* add proxy cert support

* add proxy cert support

* remove arbitery username and pwd requirement

* remove arbitery username and pwd requirement

* add proxy support for mdm

* mdsd dev build

* proxy changes

* fix typo

* mdsd dev build

* add libcurl specific things

* working mdsd proxy build

* mdsd official master build

* handle proxy endpoint which endswith /

* latest official mdsd build

* add telemetry to track proxy ca cert

* build multi-arch images (#704)

* build multi-arch linux images
* new pipelines to build multi-arch images

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* add missing artifacts (#720)

* add missing artifacts

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/msi  onboarding arm template updates for AKS (#721)

* msi arm template updates

* handle space in location

* minor fixes (#722)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* specify go patch version (#723)

* specify go minor version

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* User/amagraw/ciprod release 20220317 (#724)

* ciprod release march changes

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Remove health type from DCR onboarding & add private link support for windows agent in msi mode (#727)

* add private link support for windows agent in msi auth

* remove Microsoft-KubeHealth

* add private link support for windows msi

* fix bug

* fix bug

* fix bug

* fix bug

* check platform specific tags (#730) (#731)

* PodReadyPercentage metric bug fix (#734)

* update windows to ruby 2.7 (#732)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Improve CI/CD for multi-arch (#733)

* selective push + trivy test

* keep size down

* improve CI and PR builds

* improve checks

* remove IMAGE_TAG build_arg from prod pipeline

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/ts updates for msi (#736)

* ts updates for msi based onboarding

* ts updates for msi based onboarding

* fix typo

* fix typo

* improve log message

* Sarah/health deprecation (#735)

Removes all health feature related code

* check platform specific tags (#738)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/msi test instructions (#739)

* instructions for msi test validation

* readme updates

* readme updates

* readme updates

* readme updates

* Add CI Windows Build to MultiArch Dev pipeline (#740)

* test image in pools

* update dev pipeline - 1

* update dev -1

* fix job names

* correct paths

* test pool name

* update pool name

* updated urls

* speed up installs

* add base build

* fix paths

* do both builds

* fix bug

* add pool for common

* fix bug

* create path

* temp remove metadata windows

* fix bug

* fix docker command

* almost there

* login to acr

* create windows metadata file

* address PR comments I

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Add Windows phase (#741)

* build and release windows for prod

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Sarah/add onboarding templates (#742)

* add onboarding templates for legacy auth

* fix download (#749)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* force run trivy stage (#745)

- scans for HIGH, MEDIUM, CRITICAL CVEs with fixes available in / and /usr/lib
- breaks build if CVEs with existing fixes found
- adds trivyignore to accomodate CVEs which are understood and should not get flagged
- adds CVEs to trivyignore to unblock builds; CVEs will be fixed and removed from trivyignore in later PRs

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* update telegraf to 1.22.2 to fix vulns (#752)

* update telegraf to 1.22.2 to fix vulns

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/arc k8s aad msi auth  (#743)

* arc k8s msi

* wip

* extension identity role

* imds sidecar integration for arc k8s

* imds sidecar integration for arc k8s

* imds endpoint for windows

* imds endpoint for windows

* wip

* fix exception

* rename param name

* arc msi imdsd container changes

* arc msi imdsd container changes

* arc msi imdsd container changes

* arc msi imdsd container changes

* arc msi imdsd container changes

* revert unneeded yaml changes

* revert unneeded yaml changes

* wip

* wip

* working

* working

* working

* add implementation for msi token for windows mdm metrics

* fix comment

* arc k8s msi onboarding templates

* fix template bug

* fix template bug

* fix template bug

* rename flag name

* fix template bug

* make useAADAuth specific to arc k8s

* set k8sport at machine scope for windows

* fix bug

* fix bug

* update rbac for arc k8s imds

* bump chart version for conformance test run

* conf test updates for msi auth

* cli extension whl file

* add containerinsights solution in msi auth mode

* unify tags

* revert test chart and image versions

* remove test whl file and fix conf test

* conf test updates for addon-token-adapter

* remove container insights solution add for msi auth

* add missing arm template param

* Gangams/ws2022 support (#756)

* use hyperv isolation

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* doc and script updates

* add common as dependency for multi-arc job

* merge into single job for perf evaluation

* merge into single job for perf evaluation

* merge into single job for perf evaluation

* separate jobs for ltsc2019 & ltsc2022

* separate jobs for ltsc2019 & ltsc2022

* update dev image docker file & script

* remove unnecessary task

* update prod pipeline yaml for windows multi-arc image

* test yamls for ltsc2019 & ltsc2022

* fix pr checker fail

* fix repoImageWindows path in windows pipeline

* remove passing imagetag for prod

* CA Cert Fix for Mariner Hosts in Air Gap (#751)

* add cifs & fuse file systems to ignore list (#750)

* Data collection script (#759)

* Add files via upload

* Add files via upload

* Delete AKSInsightsLogCollection.sh

* Create README.md

* Add files via upload

* move script to subfolder LogCollection

* Update README.md

* Rename AKSInsightsLogCollection.sh to AgentLogCollection.sh

* Microsoft mandatory file (#763)

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* Adding v2 schema options (#762)

* Adding v2 schema options

Adding commented out section in log collection settings for v2 schema

* adding documentation link

* Agent release for ciprod05192022 and win-ciprod05192022  (#765)

* Making changes for the release ciprod05192022 (except release notes)

* Adding release notes

* Remove unnecessary spaces

* Updating release notes for configmap v2 and disk usage metrics

* trivy image scan (#770)

* do trivy image check in azure pipelines

* remove pr-checker github action

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Prometheus sidecar memory optimization  (#769)

Don't start telegraf, mdsd, and fluent-bit in the prometheus sidecar if it has no work to do (monitor_kubernetes_pods = false and no OSM namespaces to scrape). This part is just a resource-usage optimization.

Adding the newly created environment variables in a file as adding them to bashrc makes it inaccessible if being run in a non-interactive environment. This happens in case of livenessprobe.sh.

* Gangams/fix telegraf issue (#773)

* avoid imds token call during start up

* avoid imds token call during start up

* Make metrics endpoint variable on ArcA cluster (#772)

* add integration for azure subnet ip usage (#774)

* add integration for azure cni subnet ip usage

* exclude unfixed cve & remove fixed one

* Gangams/rs hyper scale 2022 ready (#753)

* watch and multiproc implementation

* fix weird bug

* multiproc support for fluentd

* working

* fix log lines

* refactor code

* cache telemetry

* nodecount telemetry

* bug fix

* further optimize

* bugfix related typo

* node allocatable cache

* wincontainerinventory in multiproc

* disable health

* config events on different core

* add ts to logs

* move kube perf records to separate plugin

* refactor

* minor update

* remove commented code

* mdm state file

* mdm state file

* podmdm to separate plugin

* bug fixes

* bug fixes

* bug fixes

* podmdm plugin

* bug fixes

* bug fixes

* remove unneeded log lines

* more improvements

* clean up

* clean up

* add requestId header for mdm metrics

* latest mdsd and fix for threading issue in out mdm

* rs specific config for large cluster

* optimize out mdm

* bug fix

* use large queue limit for kube perf

* 5k preview rs limits

* handle resourceversion empty or 0 scenrio

* handle pagination api call failures

* fix bug

* preview image for internal customer validation

* preview image

* wip

* wip

* fix trailing whitespaces

* fix bug

* remove unused envvars in yaml

* revert minor things

* telemetry tags for preview release

* revert preview image tags

* revert unintended change

* fix bug

* use same batchtime for both mdm & podinventory records

* use same batchtime for both mdm & podinventory records

* use same batchtime for both mdm & podinventory records

* use same batchtime for both mdm & podinventory records

* preview image tag with latest ci_dev changes

* change back to use prod image in docker files

* fix unit test failures

* exclude unfixed cve until this get fixed

* fix minor issue

* increase retries to handle transient errors

* changes related to june 2022 release (#778)

* Gangams/ARM Template updates for the DCR API version and stream group (#784)

* update to use stream group

* update DCR api version & stream group

* Bump Newtonsoft.Json in /build/windows/installer/certificategenerator (#785)

Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Gangams/fix file access exceptions (#787)

* fix file access exception

* move insights metrics conf to common

* clear file content before writing content

* add timestamp to debug logs

* release updates for linux agent

* Adhere to containers security guidance (#783)

- move away from dockerhub images to MCR images
- parameterize images in dockerfiles
- use azure pipelines variables to pass appropriate MCR images during buildtime

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* update to DCR & DCR-A api version 2021-04-01 (#789)

* fix telegraf vulns (#795)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Address vulnerabilities through package updates (#794)

- Updates to ruby 3.1.1
- Uses RVM as ruby manager instead of the brightbox ppa
- Updates fluentd to 1.14.6
- Use default JSON gem instead of yajl-json
- Consume tomlrb as a gem instead of committed source code

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Gangams/fix log loss inode reuse (#796)

* use ignore_older fbit default and option for configurability

* fix minor comment

* fix minor comment

* merge conflict (#799)

* update vulns (#800)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/fix permission assignments in test scripts (#802)

* restrict rw permissions to owner

* remove usage of worldwrite file permissions

* remove worldwrite file permission

* remove worldwrite file permission

* Gangams/rs vpa (#801)

* add vpa sidecar container

* add vpa sidecar container

* add vpa sidecar container

* add vpa sidecar container

* use image which has support for only scaling limits

* rename omsagent-rs-vpa to omsagent-vpa

* add vpa configmap

* use updated version of addon-resizer

* collect omsagent-rs limits telemetry if VPA enabled

* ignore new unfixed vulnerabilities

* fix bug

* fix bug

* fix bug

* bug fix

* fix bug

* fix bug

* rename env var name

* use the addon-resizer and collect requests and limits telemetry

* fix bug

* minor update

* User/amagraw/fix milli bytes bug (#805)



Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* update to use GA labels (#806)

* ciprod08102022 release

* bump rs memory limit

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
Co-authored-by: deagraw <deagraw@microsoft.com>
Co-authored-by: David Michelman <daweim0@gmail.com>
Co-authored-by: Michael Sinz <36865706+Michael-Sinz@users.noreply.github.com>
Co-authored-by: Nicolas Yuen <nicolas.yuen@gmail.com>
Co-authored-by: seenu433 <seenu433@gmail.com>
Co-authored-by: Tsubasa Nomura <tsubasa@nomupro.com>
Co-authored-by: Vladimir <vladimir.d.babichev@gmail.com>
Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>
Co-authored-by: sarahpeiffer <46665092+sarahpeiffer@users.noreply.github.com>
Co-authored-by: Anders Johansen <anjohans@microsoft.com>
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
Co-authored-by: Nina <47805999+MSNina123456@users.noreply.github.com>
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Auston Li <al884@cornell.edu>
Co-authored-by: Janvi Jatakia <jatakiajanvi12@gmail.com>
Co-authored-by: MSFTXiangyu <89832657+MSFTXiangyu@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bragi92 <kaveesh.dubey@gmail.com>
2022-08-10 21:21:06 -07:00
Ganga Mahesh Siddem 8de0596d27
merge latest dev changes (#779) 2022-06-15 19:48:51 -07:00
Janvi Jatakia 40ff5734ce
May Agent release - ciprod05192022 and win-ciprod05192022 (#767)
* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

* Update onboarding_instructions.md (#456)

* Update onboarding_instructions.md

Updated the documentation to reflect where to update the config map.

* Update onboarding_instructions.md

* Update onboarding_instructions.md

* Update onboarding_instructions.md

Updated the link

* chart update for sept2020 release (#457)

* add missing version update in the script (#458)

* November release fixes - activate one agent, adx schema v2, win perf issue, syslog deactivation (#459)

* activate one agent, adx schema v2, win perf issue, syslog deactivation

* update chart

* remove hiphen for params in chart (#462)

Merging as its a simple fix (remove hiphen)

* Changes for cutting a new build for ciprod10272020 release (#460)

* using latest stable version of msys2 (#465)

* fixing the windows-perf-dups (#466)

* chart updates related to new microsoft/charts repo (#467)

* Changes for creating 11092020 release (#468)

* MDM exception aggregation (#470)

* grwehner/mdm custom metric regions (#471)

Remove custom metrics region check for public cloud

* updaitng rs limit to 1gb (#474)

* grwehner/pv inventory (#455)

Add fluentd plugin to request persistent volume info from the kubernetes api and send to LA

* Gangams/fix for build release pipeline issue (#476)

* use isolated cdpx acr

* correct comment

* add pv fluentd plugin config to helm rs config (#477)

* add pv fluentd plugin to helm rs config

* helm rbac permissions for pv api calls

* Gangams/fix rs ooming (#473)

* optimize kpi

* optimize kube node inventory

* add flags for events, deployments and hpa

* have separate function parseNodeLimits

* refactor code

* fix crash

* fix bug with service name

* fix bugs related to get service name

* update oom fix test agent

* debug logs

* fix service label issue

* update to latest agent and enable ephemeral annotation

* change stream size to 200 from 250

* update yaml

* adjust chunksizes

* add ruby gc env

* yaml changes for cioomtest11282020-3

* telemetry to track pods latency

* service count telemetry

* rename variables

* wip

* nodes inventory telemetry

* configmap changes

* add emit streams in configmap

* yaml updates

* fix copy and paste bug

* add todo comments

* fix node latency telemetry bug

* update yaml with latest test image

* fix bug

* upping rs memory change

* fix mdm bug with final emit stream

* update to latest image

* fix pr feedback

* fix pr feedback

* rename health config to agent config

* fix max allowed hpa chunk size

* update to use 1k pod chunk since validated on 1.18+

* remove debug logs

* minor updates

* move defaults to common place

* chart updates

* final oomfix agent

* update to use prod image so that can be validated with build pipeline

* fix typo in comment

* Gangams/enable arc onboarding to ff (#478)

* wip

* updates

* trigger login if the ctx cloud not same as specified cloud

* add missed commit

* Convert PV type dictionary to json for telemetry so it shows up in logs (#480)

* fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX route for containerlogs in windows (for O365) (#482)

* fix ci envvar collection in large pods (#483)

* grwehner/jan agent tasks (#481)

- Windows agent fix to use log filtering settings in config map.
- Error handling for kubelet_utils get_node_capacity in case /metrics/cadvsior endpoint fails.
- Remove env variable for workspace key for windows agent

* updating fbit version and cpu limit (#485)

* reverting to older version (#487)

* Gangams/add fbsettings configurable via configmap (#486)

* wip

* fbit config settings

* add config warn message

* handle one config provided but not other

* fixed pr feedback

* fix copy paste error

* rename config parameter names

* fix typo

* fix fbit crash in helm path

* fix nil check

* Gangams/jan agent release tasks (#484)

* wip

* explicit amd64 affinity for hybrid workloads

* fix space issue

* wip

* revert vscode setting file

* remove per container logs in ci (#488)

* updates for ciprod01112021 release (#489)

* new yaml files (#491)

* Use cloud-specific instrumentation keys (#494)

If APPLICATIONINSIGHTS_AUTH_URL is set/non-empty then the agent will now grab a custom IKey from a URL stored in APPLICATIONINSIGHTS_AUTH_URL

* upgrade apt to latest version (#492)

* upgrade apt to latest version

* fix pr feedback

* Gangams/add support for extension msi for arc k8s cluster (#495)

* wip

* add env var for the arc k8s extension name

* chart update

* extension msi updates

* fix bug

* revert chart and image to prod version

* minor text changes

* image tag to prod

* wip

* wip

* wip

* wip

* final updates

* fix whitespaces

* simplify crd yaml

* Gangams/arm template arc k8s extension (#496)

* arm templates for arc k8s extension

* update to use official extension type name

* update

* add identity property

* add proxyendpointurl parameter

* add default values

* Gangams/aks monitoring via policy (#497)

* enable monitoring through policy

* wip

* handle tags

* wip

* add alias

* wip

* working

* updates

* working

* with deployment name

* doc updates

* doc updates

* fix typo in the docs

* revert to use operatingSystem from osImage for node os telemety (#498)

* Container log v2 schema changes (#499)

* make pod name in mdsd definition as str for consistency. msgp has no type checking, as it has type metadata in it the message itself.

* Add priority class to the daemonsets (#500)

* Add priority class to the daemonsets

Add a priority class for omsagent and have the daemonsets use this
to be sure to schedule the pods.

Daemonset pods are constrained in scheduling to run on specific
nodes.  This is done by the daemonset controller.  When a node shows
up it will create a pod with a strong affinity to that node.  When a
node goes away, it will delete the pod with the node affinity to that
node.

Kubernetes pod scheduling does not know it is a daemonset but it does
know it is tied to a specific node.  With default scheduling, it is
possible for the pods to be "frozen out" of a node because the node
already is full.  This can happen because "normal" pods may already
exist and are looking for a node to get scheduled on when a node is
added to the cluster.  The daemonset controller will only first
create the pod for the node at around the same time.  The kubernetes
scheduler is running async from all of this and thus there can be a
race as to who gets scheduled on the node.

The pod priority class (and thus the pod priority) is a way to indicate
that the pod has a higher scheduling priority than a default pod.

By default, all pods are at priority 0.  Higher numbers are higher
priority.  Setting the priority to something greater than zero will
allow the omsagent daemonsets to win a race against "normal" pods for
scheduled resources on a node - and will also allow for graceful
eviction in the case the node is too full.

Without this, omsagent can be left out of node in clusters that are
very busy, especially in dynamic scaling situations.

I did not test the windows pod as we have no windows clusters.

* CR feedback

* fix node metric issue (#502)

* Bug fixes for Feb release (#504)

* bug fix for mdm metrics with no limits

* fix exception bug

* Gangams/feb 2021 agent bug fix (#505)

* fix npe in getKubeServiceRecords

* use image fields from spec

* fix typo

* cover all cases

* handle scenario only digest specified

* changes for release -ciprod02232021 (#506)

* Gangams/e2e test framework (#503)

* add agent e2e fw and tests

* doc and script updates

* add validation script

* doc updates

* yaml updates

* fix typo

* doc updates

* more doc updates

* add ISTEST for helm chart to use arc conf

* refactor test code

* fix pr feedback

* fix pr feedback

* fix pr feedback

* fix pr feedback

* scrape new kubelet pod count metric name (#508)

* Adding explicit json output to az commands as the script fails if az is configured with Table output #409 (#513)

* Gangams/arc proxy contract and token renewal updates (#511)

* fix issue with crd status updates

* handle renewal token delays

* add proxy contract

* updates for proxy cert for linux

* remove proxycert related changes

* fix whitespace issue

* fix whitespace issue

* remove proxy in arm template

* doc updates for microsoft charts repo release (#512)

* doc updates for microsoft charts repo release

* wip

* Update enable-monitoring.sh (#514)

Line 314 and 343 seems to have trailing spaces for some subscriptions which is exiting the script even for valid scenarios

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Prometheus scraping from sidecar and OSM changes (#515)

* add liveness timeout for exec (#518)

* chart and other updates (#519)

* Saaror osmdoc (#523)

* Create ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Add files via upload

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* telemetry bug fix (#527)

* Fix conflicting logrotate settings (#526)

The node and the omsagent container both have a cron.daily file to rotate certain logs daily. These settings are the same for some files in /var/log (mounted from the node with read/write access), causing the rotation to fail when both try to rotate at the same time. So then the /var/log/*.1 file is written to forever. Since these files are always written to and never rotated, it causes high memory usage on the node after a while.

This fix removes the container logrotate settings for /var/log, which the container does not write to.

* bug fix (#528)

* Gangams/arc ev2 deployment (#522)

* ev2 deployment for arc k8s extension

* fix charts path issue

* rename scripts tar

* add notifications

* fix line endings

* fix line endings

* update with prod repo

* fix file endings

* added liveness and telemetry for telegraf (#517)

* added liveness and telemetry for telegraf

* code transfer

* removed windows liveness probe

* done

* Windows metric fix (#530)

* changes

* about to remove container fix

* moved caching code to existing loop

* removed un-necessary changes

* removed a few more un-necessary changes

* added windows node check

* fixed a bug

* everything works confirmed

* OSM doc update (#533)

* Adding MDM metrics for threshold violation (#531)

* Rashmi/april agent 2021 (#538)

* add Read_from_Head config for all fluentbit tail plugins (#539)

See the commit message of: fluent/fluent-bit@70e33fa
for details explaining the fluentbit change and what Read_from_Head does when set to true.

* fix programdata mount issue on containerd win nodes (#542)

* Update sidecar mem limits  (#541)

* David/release 4 22 2021 (#544)

* updating image tag and agent version

* updated liveness probe

* updated release notes again

* fixed date in version file

* 1m, 1m, 1s by default (#543)

* 1m, 1m, 1s by default

* setting default through a different method

* David/aad stage 1 release (#556)

* update to latest omsagent, add eastus2 to mdsd regions

* copied oneagent bits to a CI repository release

* mdsd inmem mode

* yaml for cl scale test

* yaml for cl scale test

* reverting dockerProviderVersion version to 15.0.0

* prepping for release (updated image version, dockerProviderVersion, and release notes

* container log scaletest yamls

* forgot to update image version in chart

* fixing windows tag in dockerfile, changing release notes wording

* missed windows tag in one more place

* forgot to change the windows dockerProviderVersion back

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Update ReleaseNotes.md (#558)

fix imagetag in the release notes

* Add wait time for telegraf and also force mdm egress to use tls 1.2 (#560)

* Add wait time for telegraf and also force mdm egress to use tls 1.2

* add wait for all telegraf dependencies across all containers (ds & rs)

* remove ssl change so we dont include as part of the other fix until we test with att nodes.

* partially disabled telegraf liveness probe check, we'll still have telemetry but the probe won't fail if telegraf isn't running (#561)

* changes for 05202021 release (#563)

* changes for 05202021 release

* fixed typos

* Rashmi/jedi wireserver (#566)

* Update ReadMe.md (#565)

* Update ReadMe.md

* Update ReadMe.md

Included feedback from OSM team and Fixed

* Gangams/aad stage2 full switch to mdsd (#559)

* full switch to mdsd, upgrade to ruby v1 & omsagent removal

* add odsdirect as fallback option

* cleanup

* cleanup

* move customRegion to stage3

* updates related to containerlog route

* make xml eventschema consistent

* add buffer settings

* address HTTPServerException deprecation in ruby 2.6

* update to official mdsd version

* fix log message issue

* fix pr feedback

* get ridoff unused code from omscommon

* fix pr feedback

* fix pr feedback

* clean up

* clean up

* fix missing conf

* Send perf metrics to MDM from windows daemonset (#568)

* updating json gem to address CVE-2020-10663 (#567)

* updating json gem to address CVE-2020-10663

* updating json gem to address CVE-2020-10663

* update recommended alerts readme (#570)

@dcbrown16 pointed out that this page links to the wrong document in [this issue](https://github.com/microsoft/Docker-Provider/issues/475). The content in the currently linked page is identitical to the page which should be linked, so it's a simple fix.

* trying again to fix the json gem (#571)

* trying again to fix the json gem

* removing installation of newer json gem

* Addressing PR comments for - https://github.com/microsoft/Docker-Provider/pull/568 (#569)

* Mem_Buf_limit  is configurable via ConfigMap (#574)

* add log rotation settings for fluentd logs (#577)

* Gangams/release 06112021 (#578)

* updates related to ciprod06112021 release

* minor update

* release note update (#579)

* Make sidecar fluentbit chunk size configurable (#573)

* Fix vulnerabilities (#583)

* test

* test1

* test-2

* test-3

* 3

* 4

* test

* 2

* 3

* 4

* 5

* 6

* rename gem for windows

* fix

* fix

* Windows build optimization (#582)

* fix windows build failure due to msys2 version

* Fix telegraf startup issue when endpoint is unreachable (#587)

* revert fbit tail plugins defaults to std defaults (#586)

* fixed another bug (#593)

* feat: add new metrics to MDM for allocatable % calculation of cpu and memory usage (#584)

* feat: allocatable cpu and memory % metrics for MDM

* maybe

* linux is working

* windwos....

* some more

* comment

* better

* syntax

* ruby

* revert omsagent.yaml

* comments

* pr feedback

* pr feedback

* testing msys2 version update

* better

* update adx sdk for perf issue (#601)

* remove md check

* Gangams/release notes update for hotfix (#596)

* release notes updates

* release notes updates for ciprod06112021-1

* Cherry picking hotfix changes to ci_dev (#605)

* release changes (#607)

* Gangams/aad stage3 msi auth (#585)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* refactor the windows agent ingestion token code

* code cleanup

* fix build errors

* code clean up

* code clean up

* code clean up

* code clean up

* more refactoring

* fix bug

* fix bug

* add debug logs

* add nil checks

* revert changes

* revert yaml change since this added in aks side

* fix pr feedback

* fix pr feedback

* refine retry code

* update mdsd env as per official build

* cleanup

* update env vars per mdsd

* update with mdsd official build

* skip cert gen & renewal incase of aad msi auth

* add nil check

* cherry windows agent nodeip issue

* fix merge issue

Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* Gangams/remove chart version dependency (#589)

* remove chart version dependency

* remove unused code

* fix resource type

* fix

* handle weird cli chars

* update release process

* Gangams/july 2021 release tasks 3 (#613)

* use artifact and pipeline creds for image push

* minor update

* add vuln fix here so that pr can be merged

* remove un-used output plugin (#614)

* fix telegraf telemetry and improve fluentd liveness (#611)

* fix telegraf telemetry and improve fluentd liveness

* address identified vuln with libsystemd0

* fix exported image file extension

* Gangams/july 2021 release tasks 2 (#612)

* tail rs mdsd err logs

* configure mdsd log rotation

* log rotation for mdsd log files

* Fix out_oms.go dependency vulnerabilities (#623)

* revert libsystemd0 update (#616)

* updates for ci-prod release instructions (#619)

* cherry pick changes from ci_prod (#622)

* Support az login for passwords starting with dash ('-') (#626)

Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>

* Gangams/add telemetry fbit settings (#628)

* add telemetry to track fbit settings

* add telemetry to track fbit settings

* check onboarding status (#629)

* Gangams/arc k8s conformance test updates (#617)

* conf test updates

* clean up

* wip

* update with mcr cidev image

* handle log path

* cleanup

* clean up

* wip

* working

* update for mcr image

* minor

* image update

* handle latency of connected cluster resource creation

* update conftest image

* upgrade golang version for windows in pipeline build and locally (#630)

* Updating a link in Readme.md (#632)

The link to the build pipelines now goes directly to our build pipelines (instead of to all github-private pipelines)

* Updating omsagent yaml to have parity with omsagent yaml file in AKS RP (#615)

* Unit test tooling (#625)

Added tooling and examples for unit tests

* run unit tests after a merge too (#634)

* flag stale PRs & issues

* Adding script to collect logs (for troubleshooting) (#636)

* added script for collecting logs

* added windows daemonset and prometheus sidecar, as well as some explanatory prints

* added kubectl describe and kubectl logs output

* changed message to make it more clear some erros are expected

* Sarah/ev2 (#640)

* ev2 artifacts for release pipeline

* update parameters reference

* add artifacts tar file

* changes to rollout and service model

* change agentimage path

* adding agentimage to artifact script

* removing charts from tarball

* change script to use blob storage

* change blob variables

* echo variables

* change blob uri

* use release id for blob prefix

* change to delete blob file

* add check for if blob storage file exists

* fix script errors

* update check for file in storage

* change true check

* comments and change storage account info to pipeline variables

* Changes for windows tar file

* PR changes

* documenting fbit tail plugin configmap settings. (#638)

* documenting fbit tail plugin configmap settings.

* Install unzip package on shell extension (#642)

* Changing installation in ev2 script (#644)

* Adjust release pipeline to use cdpx acr (#647)

* Adjust release pipeline to use cdpx acr

* Adjust release pipeline to use cdpx acr

* Update CDPX ACR path

* Add check for cdpx repo variable

* Sarah/ev2 prod (#649)

* Ev2 changes for prod

* CDPX repo naming change (#652)

* Sarah/ev2 update (#654)

* remove acr name from repo path

* add check to make sure tag does not exist in mcr repo

* change tag syntax for mcr repo check (#655)

* Gangams/optimize win livenessprobe (#653)

* livenessprobe optimization

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* Gangams/addon token adapter image tag to telemetry (#656)

* addon token adapter image tag

* addon token adapter image tag

* Sarah/ev2 helm (#658)

* Use MSI for Arc Release

* Use CIPROD_ACR AME subscription for shell extension

* remove extra line endings

* Sarah/ev2 pipeline (#661)

* testing build artifact dir changes

* add .pipelines directory and omsagent.yaml to build artifacts

* add charts directory to build artifacts (#662)

* Sarah/remove cdpx creds (#664)

* don't use cdpx acr creds from kv

* add e2etest.yaml to build output

* keep cdpx creds for now

* chart updates for rbac api version change (#660)

* chart updates for rbac api version change

* include windows ds for arc

* proxy support (for non-aks) (#665)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* initial proxy support

* merge?

* cleaning up some files which should've merged differently

* proxy should be working, but most tables don't have any data. About to merge, maybe whatever was wrong is now fixed

* linux AMA proxy works

* about to merge

* proxy support appears to be working, final mdsd build location will still change

* removing some unnecessary changes

* forgot to remove one last change

* redirected mdsd stderr to stdout instead of stdin

* addressing proxy password location comment

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Gangams/agent release ciprod10082021 & win-ciprod10082021 (#666)

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* use buildcommand for prod pipeline (#668)

* fixed merge issues. (#671) (#672)

* fix merge conflicts

* update with newimage tag

* changes related to mdsd version update (#673) (#674)

* Sarah/enable metrics (#675)

* add user assigned msi to yaml for pipeline

* update placeholders

* Gangams/chart updates oct2021 release (#676)

* chart updates for oct2021 release

* wip

* wip

* wip

* Gangams/msi mode mdsd crash fix (#677)

* update mdsd version which has fix for crash in msi mode

* image tag updates

* update to use extension GA api version (#679)

* Gangams/arm template msi onboarding (#659)

* wip

* wip

* working

* working

* working

* working

* working

* working

* shorten dcr prefix to DCR- to handle default workspace name length

* use MSCI- prefix similar to MSVMI- for dcr

* Gangams/conf test updates to handle sidecar (#681)

* wip

* test updates

* fix pr feedback

* fix pr feedback

* Fix scan break due to latest trivy changes

* Anjohans/configurable database name (#663)

* First cut at an implementation

* Reverting a change

* Moving a few lines to better align with cluster URI config

* Moving a few lines to better align with cluster URI config

* Adding an extra check that won't hurt

* Getting ADX database name from config rather than from secret

* Reverse the mangling done by editor

* Fixes to the code for reading the db name setting

* More fixes to the rb code for settings

* Tweaked and tested

* Code review

* Review follow-up

* Remove whitespace

* Gangams/troubelshooting script for arc k8s (#682)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* doc updates

* doc updates

* wip

* wip

* update repo for issues

* fix minor one

* Sarah/remove cdpx creds (#685)

* remove download of cdpx creds

* fix: subtract number instead of string + update fluentd version 1.14.2 to fix security vulnerability (#686)

* fix: change default value to a number so that substraction happens correctly

* update fluentd version to 1.14.2

* extra end statement

* safely set to float

* big decimal precision

* revert omsagent

* keep telemetry

* Faster Linux builds (part 1) (#687)

* moved docker image arg later on to enable docker build caching

* fixing image tag (doh)

* Sarah/fluentbit windows log (#688)

* upgrade fluentbit version for windows

* saving progress--fluent bit log tailing working for windows

* use configmap values for fluent-bit.conf where necessary and make necessary files common

* revert certificategenerator

* remove tomlparser-agent-config from linux folder

* clean up fluent.conf

* clean up fluent-bit.conf

* revert image tag

* fix agent tag

* make fluent bit flush interval configurable

* clean up unecessary conf files

* remove unecessary parts of fluent and fluent-bit conf

* log level back to info

* add fbit env variables for omsagent-win

* moving db files to var directory

* default to port 10250 & containerd for linux agent (#699)

* default to port 10250 & containerd

* fix pr feedback

* Updating pod annotation for latest agent version (#697)

* fix windows build failure due to msys2 version (#700)

* fix windows build failure due to msys2 version

* 20211130.0.0

* Jan agent tasks (#698)

* remove v1 fallback hidden option (#705)

* collect telemetry containerlog records with emptystamp (#703)

* collect telemetry containerlog records with emptystamp

* collect telemetry containerlog records with emptystamp

* Fixing telegraf bug for placeholder name (#706)

* Gangams/jan 2022 release tasks 3 (#702)

* add telemetry related to windows containers records

* add telemetry related to windows containers records

* containercount telemetry

* add explicit exit code in ps scripts

* node count telemetry

* telemetry for win cirecord 64KB or more

* metric to track wintelegraf metrics with tags 64kb

* metric to track wintelegraf metrics with tags 64kb

* fix pr feedback

* Gangams/jan 2022 release tasks 2 (#701)

* mdsd proc cpu and memory telemetry

* write ai logs to file and telemetry for mdsd proc

* write ai logs to file and telemetry for mdsd proc

* write ai logs to file and telemetry for mdsd proc

* fix pr feedback

* use name_prefix

* remove mdsd telemetry changes

* remove mdsd telemetry changes

* remove mdsd telemetry changes

* release updates for ciprod01312022 & win-ciprod01312022release (#707)

* release updates for ciprod01312022 release

* release updates for ciprod01312022 release

* fix pr feedback

* fix logger exception (#709)

* Gangams/chart version update for jan release (#710)

* chart updates for jan2022 release

* add missing agentversion annotations

* fix agentversion annotation issue in chart (#712)

* adx bug + misc (#714)

* fix golang dependencies

* fix adx bug

* exclude telegraf

* fix space

* include both

* exclude files specifically

* fix build break (#715)

* fix build break

* update all places

* Explicitly use win-2019 to unblock windows PRs builds

* Fixing telegraf vulnerability (#716)

* cherry picked changes from 03112022 release (#719)

* cherry picked changes from 03112022 release

* Gangams/http proxy support (#717)

* add proxy cert support

* add proxy cert support

* add proxy cert support

* add proxy cert support

* remove arbitery username and pwd requirement

* remove arbitery username and pwd requirement

* add proxy support for mdm

* mdsd dev build

* proxy changes

* fix typo

* mdsd dev build

* add libcurl specific things

* working mdsd proxy build

* mdsd official master build

* handle proxy endpoint which endswith /

* latest official mdsd build

* add telemetry to track proxy ca cert

* build multi-arch images (#704)

* build multi-arch linux images
* new pipelines to build multi-arch images

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* add missing artifacts (#720)

* add missing artifacts

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/msi  onboarding arm template updates for AKS (#721)

* msi arm template updates

* handle space in location

* minor fixes (#722)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* specify go patch version (#723)

* specify go minor version

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* User/amagraw/ciprod release 20220317 (#724)

* ciprod release march changes

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Remove health type from DCR onboarding & add private link support for windows agent in msi mode (#727)

* add private link support for windows agent in msi auth

* remove Microsoft-KubeHealth

* add private link support for windows msi

* fix bug

* fix bug

* fix bug

* fix bug

* check platform specific tags (#730) (#731)

* PodReadyPercentage metric bug fix (#734)

* update windows to ruby 2.7 (#732)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Improve CI/CD for multi-arch (#733)

* selective push + trivy test

* keep size down

* improve CI and PR builds

* improve checks

* remove IMAGE_TAG build_arg from prod pipeline

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/ts updates for msi (#736)

* ts updates for msi based onboarding

* ts updates for msi based onboarding

* fix typo

* fix typo

* improve log message

* Sarah/health deprecation (#735)

Removes all health feature related code

* check platform specific tags (#738)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/msi test instructions (#739)

* instructions for msi test validation

* readme updates

* readme updates

* readme updates

* readme updates

* Add CI Windows Build to MultiArch Dev pipeline (#740)

* test image in pools

* update dev pipeline - 1

* update dev -1

* fix job names

* correct paths

* test pool name

* update pool name

* updated urls

* speed up installs

* add base build

* fix paths

* do both builds

* fix bug

* add pool for common

* fix bug

* create path

* temp remove metadata windows

* fix bug

* fix docker command

* almost there

* login to acr

* create windows metadata file

* address PR comments I

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Add Windows phase (#741)

* build and release windows for prod

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Sarah/add onboarding templates (#742)

* add onboarding templates for legacy auth

* fix download (#749)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* force run trivy stage (#745)

- scans for HIGH, MEDIUM, CRITICAL CVEs with fixes available in / and /usr/lib
- breaks build if CVEs with existing fixes found
- adds trivyignore to accomodate CVEs which are understood and should not get flagged
- adds CVEs to trivyignore to unblock builds; CVEs will be fixed and removed from trivyignore in later PRs

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* update telegraf to 1.22.2 to fix vulns (#752)

* update telegraf to 1.22.2 to fix vulns

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/arc k8s aad msi auth  (#743)

* arc k8s msi

* wip

* extension identity role

* imds sidecar integration for arc k8s

* imds sidecar integration for arc k8s

* imds endpoint for windows

* imds endpoint for windows

* wip

* fix exception

* rename param name

* arc msi imdsd container changes

* arc msi imdsd container changes

* arc msi imdsd container changes

* arc msi imdsd container changes

* arc msi imdsd container changes

* revert unneeded yaml changes

* revert unneeded yaml changes

* wip

* wip

* working

* working

* working

* add implementation for msi token for windows mdm metrics

* fix comment

* arc k8s msi onboarding templates

* fix template bug

* fix template bug

* fix template bug

* rename flag name

* fix template bug

* make useAADAuth specific to arc k8s

* set k8sport at machine scope for windows

* fix bug

* fix bug

* update rbac for arc k8s imds

* bump chart version for conformance test run

* conf test updates for msi auth

* cli extension whl file

* add containerinsights solution in msi auth mode

* unify tags

* revert test chart and image versions

* remove test whl file and fix conf test

* conf test updates for addon-token-adapter

* remove container insights solution add for msi auth

* add missing arm template param

* Gangams/ws2022 support (#756)

* use hyperv isolation

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* multi-arc image support

* doc and script updates

* add common as dependency for multi-arc job

* merge into single job for perf evaluation

* merge into single job for perf evaluation

* merge into single job for perf evaluation

* separate jobs for ltsc2019 & ltsc2022

* separate jobs for ltsc2019 & ltsc2022

* update dev image docker file & script

* remove unnecessary task

* update prod pipeline yaml for windows multi-arc image

* test yamls for ltsc2019 & ltsc2022

* fix pr checker fail

* fix repoImageWindows path in windows pipeline

* remove passing imagetag for prod

* CA Cert Fix for Mariner Hosts in Air Gap (#751)

* add cifs & fuse file systems to ignore list (#750)

* Data collection script (#759)

* Add files via upload

* Add files via upload

* Delete AKSInsightsLogCollection.sh

* Create README.md

* Add files via upload

* move script to subfolder LogCollection

* Update README.md

* Rename AKSInsightsLogCollection.sh to AgentLogCollection.sh

* Microsoft mandatory file (#763)

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* Adding v2 schema options (#762)

* Adding v2 schema options

Adding commented out section in log collection settings for v2 schema

* adding documentation link

* Agent release for ciprod05192022 and win-ciprod05192022  (#765)

* Making changes for the release ciprod05192022 (except release notes)

* Adding release notes

* Remove unnecessary spaces

* Updating release notes for configmap v2 and disk usage metrics

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
Co-authored-by: deagraw <deagraw@microsoft.com>
Co-authored-by: David Michelman <daweim0@gmail.com>
Co-authored-by: Michael Sinz <36865706+Michael-Sinz@users.noreply.github.com>
Co-authored-by: Nicolas Yuen <nicolas.yuen@gmail.com>
Co-authored-by: seenu433 <seenu433@gmail.com>
Co-authored-by: Tsubasa Nomura <tsubasa@nomupro.com>
Co-authored-by: Vladimir <vladimir.d.babichev@gmail.com>
Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>
Co-authored-by: sarahpeiffer <46665092+sarahpeiffer@users.noreply.github.com>
Co-authored-by: Anders Johansen <anjohans@microsoft.com>
Co-authored-by: Amol Agrawal <pfrcks@gmail.com>
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
Co-authored-by: Nina <47805999+MSNina123456@users.noreply.github.com>
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Auston Li <al884@cornell.edu>
2022-05-20 10:38:50 -07:00
Amol Agrawal 39b2a00a01
User/amagraw/release032022/2 (#728)
* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

* Update onboarding_instructions.md (#456)

* Update onboarding_instructions.md

Updated the documentation to reflect where to update the config map.

* Update onboarding_instructions.md

* Update onboarding_instructions.md

* Update onboarding_instructions.md

Updated the link

* chart update for sept2020 release (#457)

* add missing version update in the script (#458)

* November release fixes - activate one agent, adx schema v2, win perf issue, syslog deactivation (#459)

* activate one agent, adx schema v2, win perf issue, syslog deactivation

* update chart

* remove hiphen for params in chart (#462)

Merging as its a simple fix (remove hiphen)

* Changes for cutting a new build for ciprod10272020 release (#460)

* using latest stable version of msys2 (#465)

* fixing the windows-perf-dups (#466)

* chart updates related to new microsoft/charts repo (#467)

* Changes for creating 11092020 release (#468)

* MDM exception aggregation (#470)

* grwehner/mdm custom metric regions (#471)

Remove custom metrics region check for public cloud

* updaitng rs limit to 1gb (#474)

* grwehner/pv inventory (#455)

Add fluentd plugin to request persistent volume info from the kubernetes api and send to LA

* Gangams/fix for build release pipeline issue (#476)

* use isolated cdpx acr

* correct comment

* add pv fluentd plugin config to helm rs config (#477)

* add pv fluentd plugin to helm rs config

* helm rbac permissions for pv api calls

* Gangams/fix rs ooming (#473)

* optimize kpi

* optimize kube node inventory

* add flags for events, deployments and hpa

* have separate function parseNodeLimits

* refactor code

* fix crash

* fix bug with service name

* fix bugs related to get service name

* update oom fix test agent

* debug logs

* fix service label issue

* update to latest agent and enable ephemeral annotation

* change stream size to 200 from 250

* update yaml

* adjust chunksizes

* add ruby gc env

* yaml changes for cioomtest11282020-3

* telemetry to track pods latency

* service count telemetry

* rename variables

* wip

* nodes inventory telemetry

* configmap changes

* add emit streams in configmap

* yaml updates

* fix copy and paste bug

* add todo comments

* fix node latency telemetry bug

* update yaml with latest test image

* fix bug

* upping rs memory change

* fix mdm bug with final emit stream

* update to latest image

* fix pr feedback

* fix pr feedback

* rename health config to agent config

* fix max allowed hpa chunk size

* update to use 1k pod chunk since validated on 1.18+

* remove debug logs

* minor updates

* move defaults to common place

* chart updates

* final oomfix agent

* update to use prod image so that can be validated with build pipeline

* fix typo in comment

* Gangams/enable arc onboarding to ff (#478)

* wip

* updates

* trigger login if the ctx cloud not same as specified cloud

* add missed commit

* Convert PV type dictionary to json for telemetry so it shows up in logs (#480)

* fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX route for containerlogs in windows (for O365) (#482)

* fix ci envvar collection in large pods (#483)

* grwehner/jan agent tasks (#481)

- Windows agent fix to use log filtering settings in config map.
- Error handling for kubelet_utils get_node_capacity in case /metrics/cadvsior endpoint fails.
- Remove env variable for workspace key for windows agent

* updating fbit version and cpu limit (#485)

* reverting to older version (#487)

* Gangams/add fbsettings configurable via configmap (#486)

* wip

* fbit config settings

* add config warn message

* handle one config provided but not other

* fixed pr feedback

* fix copy paste error

* rename config parameter names

* fix typo

* fix fbit crash in helm path

* fix nil check

* Gangams/jan agent release tasks (#484)

* wip

* explicit amd64 affinity for hybrid workloads

* fix space issue

* wip

* revert vscode setting file

* remove per container logs in ci (#488)

* updates for ciprod01112021 release (#489)

* new yaml files (#491)

* Use cloud-specific instrumentation keys (#494)

If APPLICATIONINSIGHTS_AUTH_URL is set/non-empty then the agent will now grab a custom IKey from a URL stored in APPLICATIONINSIGHTS_AUTH_URL

* upgrade apt to latest version (#492)

* upgrade apt to latest version

* fix pr feedback

* Gangams/add support for extension msi for arc k8s cluster (#495)

* wip

* add env var for the arc k8s extension name

* chart update

* extension msi updates

* fix bug

* revert chart and image to prod version

* minor text changes

* image tag to prod

* wip

* wip

* wip

* wip

* final updates

* fix whitespaces

* simplify crd yaml

* Gangams/arm template arc k8s extension (#496)

* arm templates for arc k8s extension

* update to use official extension type name

* update

* add identity property

* add proxyendpointurl parameter

* add default values

* Gangams/aks monitoring via policy (#497)

* enable monitoring through policy

* wip

* handle tags

* wip

* add alias

* wip

* working

* updates

* working

* with deployment name

* doc updates

* doc updates

* fix typo in the docs

* revert to use operatingSystem from osImage for node os telemety (#498)

* Container log v2 schema changes (#499)

* make pod name in mdsd definition as str for consistency. msgp has no type checking, as it has type metadata in it the message itself.

* Add priority class to the daemonsets (#500)

* Add priority class to the daemonsets

Add a priority class for omsagent and have the daemonsets use this
to be sure to schedule the pods.

Daemonset pods are constrained in scheduling to run on specific
nodes.  This is done by the daemonset controller.  When a node shows
up it will create a pod with a strong affinity to that node.  When a
node goes away, it will delete the pod with the node affinity to that
node.

Kubernetes pod scheduling does not know it is a daemonset but it does
know it is tied to a specific node.  With default scheduling, it is
possible for the pods to be "frozen out" of a node because the node
already is full.  This can happen because "normal" pods may already
exist and are looking for a node to get scheduled on when a node is
added to the cluster.  The daemonset controller will only first
create the pod for the node at around the same time.  The kubernetes
scheduler is running async from all of this and thus there can be a
race as to who gets scheduled on the node.

The pod priority class (and thus the pod priority) is a way to indicate
that the pod has a higher scheduling priority than a default pod.

By default, all pods are at priority 0.  Higher numbers are higher
priority.  Setting the priority to something greater than zero will
allow the omsagent daemonsets to win a race against "normal" pods for
scheduled resources on a node - and will also allow for graceful
eviction in the case the node is too full.

Without this, omsagent can be left out of node in clusters that are
very busy, especially in dynamic scaling situations.

I did not test the windows pod as we have no windows clusters.

* CR feedback

* fix node metric issue (#502)

* Bug fixes for Feb release (#504)

* bug fix for mdm metrics with no limits

* fix exception bug

* Gangams/feb 2021 agent bug fix (#505)

* fix npe in getKubeServiceRecords

* use image fields from spec

* fix typo

* cover all cases

* handle scenario only digest specified

* changes for release -ciprod02232021 (#506)

* Gangams/e2e test framework (#503)

* add agent e2e fw and tests

* doc and script updates

* add validation script

* doc updates

* yaml updates

* fix typo

* doc updates

* more doc updates

* add ISTEST for helm chart to use arc conf

* refactor test code

* fix pr feedback

* fix pr feedback

* fix pr feedback

* fix pr feedback

* scrape new kubelet pod count metric name (#508)

* Adding explicit json output to az commands as the script fails if az is configured with Table output #409 (#513)

* Gangams/arc proxy contract and token renewal updates (#511)

* fix issue with crd status updates

* handle renewal token delays

* add proxy contract

* updates for proxy cert for linux

* remove proxycert related changes

* fix whitespace issue

* fix whitespace issue

* remove proxy in arm template

* doc updates for microsoft charts repo release (#512)

* doc updates for microsoft charts repo release

* wip

* Update enable-monitoring.sh (#514)

Line 314 and 343 seems to have trailing spaces for some subscriptions which is exiting the script even for valid scenarios

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Prometheus scraping from sidecar and OSM changes (#515)

* add liveness timeout for exec (#518)

* chart and other updates (#519)

* Saaror osmdoc (#523)

* Create ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Add files via upload

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* telemetry bug fix (#527)

* Fix conflicting logrotate settings (#526)

The node and the omsagent container both have a cron.daily file to rotate certain logs daily. These settings are the same for some files in /var/log (mounted from the node with read/write access), causing the rotation to fail when both try to rotate at the same time. So then the /var/log/*.1 file is written to forever. Since these files are always written to and never rotated, it causes high memory usage on the node after a while.

This fix removes the container logrotate settings for /var/log, which the container does not write to.

* bug fix (#528)

* Gangams/arc ev2 deployment (#522)

* ev2 deployment for arc k8s extension

* fix charts path issue

* rename scripts tar

* add notifications

* fix line endings

* fix line endings

* update with prod repo

* fix file endings

* added liveness and telemetry for telegraf (#517)

* added liveness and telemetry for telegraf

* code transfer

* removed windows liveness probe

* done

* Windows metric fix (#530)

* changes

* about to remove container fix

* moved caching code to existing loop

* removed un-necessary changes

* removed a few more un-necessary changes

* added windows node check

* fixed a bug

* everything works confirmed

* OSM doc update (#533)

* Adding MDM metrics for threshold violation (#531)

* Rashmi/april agent 2021 (#538)

* add Read_from_Head config for all fluentbit tail plugins (#539)

See the commit message of: fluent/fluent-bit@70e33fa
for details explaining the fluentbit change and what Read_from_Head does when set to true.

* fix programdata mount issue on containerd win nodes (#542)

* Update sidecar mem limits  (#541)

* David/release 4 22 2021 (#544)

* updating image tag and agent version

* updated liveness probe

* updated release notes again

* fixed date in version file

* 1m, 1m, 1s by default (#543)

* 1m, 1m, 1s by default

* setting default through a different method

* David/aad stage 1 release (#556)

* update to latest omsagent, add eastus2 to mdsd regions

* copied oneagent bits to a CI repository release

* mdsd inmem mode

* yaml for cl scale test

* yaml for cl scale test

* reverting dockerProviderVersion version to 15.0.0

* prepping for release (updated image version, dockerProviderVersion, and release notes

* container log scaletest yamls

* forgot to update image version in chart

* fixing windows tag in dockerfile, changing release notes wording

* missed windows tag in one more place

* forgot to change the windows dockerProviderVersion back

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Update ReleaseNotes.md (#558)

fix imagetag in the release notes

* Add wait time for telegraf and also force mdm egress to use tls 1.2 (#560)

* Add wait time for telegraf and also force mdm egress to use tls 1.2

* add wait for all telegraf dependencies across all containers (ds & rs)

* remove ssl change so we dont include as part of the other fix until we test with att nodes.

* partially disabled telegraf liveness probe check, we'll still have telemetry but the probe won't fail if telegraf isn't running (#561)

* changes for 05202021 release (#563)

* changes for 05202021 release

* fixed typos

* Rashmi/jedi wireserver (#566)

* Update ReadMe.md (#565)

* Update ReadMe.md

* Update ReadMe.md

Included feedback from OSM team and Fixed

* Gangams/aad stage2 full switch to mdsd (#559)

* full switch to mdsd, upgrade to ruby v1 & omsagent removal

* add odsdirect as fallback option

* cleanup

* cleanup

* move customRegion to stage3

* updates related to containerlog route

* make xml eventschema consistent

* add buffer settings

* address HTTPServerException deprecation in ruby 2.6

* update to official mdsd version

* fix log message issue

* fix pr feedback

* get ridoff unused code from omscommon

* fix pr feedback

* fix pr feedback

* clean up

* clean up

* fix missing conf

* Send perf metrics to MDM from windows daemonset (#568)

* updating json gem to address CVE-2020-10663 (#567)

* updating json gem to address CVE-2020-10663

* updating json gem to address CVE-2020-10663

* update recommended alerts readme (#570)

@dcbrown16 pointed out that this page links to the wrong document in [this issue](https://github.com/microsoft/Docker-Provider/issues/475). The content in the currently linked page is identitical to the page which should be linked, so it's a simple fix.

* trying again to fix the json gem (#571)

* trying again to fix the json gem

* removing installation of newer json gem

* Addressing PR comments for - https://github.com/microsoft/Docker-Provider/pull/568 (#569)

* Mem_Buf_limit  is configurable via ConfigMap (#574)

* add log rotation settings for fluentd logs (#577)

* Gangams/release 06112021 (#578)

* updates related to ciprod06112021 release

* minor update

* release note update (#579)

* Make sidecar fluentbit chunk size configurable (#573)

* Fix vulnerabilities (#583)

* test

* test1

* test-2

* test-3

* 3

* 4

* test

* 2

* 3

* 4

* 5

* 6

* rename gem for windows

* fix

* fix

* Windows build optimization (#582)

* fix windows build failure due to msys2 version

* Fix telegraf startup issue when endpoint is unreachable (#587)

* revert fbit tail plugins defaults to std defaults (#586)

* fixed another bug (#593)

* feat: add new metrics to MDM for allocatable % calculation of cpu and memory usage (#584)

* feat: allocatable cpu and memory % metrics for MDM

* maybe

* linux is working

* windwos....

* some more

* comment

* better

* syntax

* ruby

* revert omsagent.yaml

* comments

* pr feedback

* pr feedback

* testing msys2 version update

* better

* update adx sdk for perf issue (#601)

* remove md check

* Gangams/release notes update for hotfix (#596)

* release notes updates

* release notes updates for ciprod06112021-1

* Cherry picking hotfix changes to ci_dev (#605)

* release changes (#607)

* Gangams/aad stage3 msi auth (#585)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* refactor the windows agent ingestion token code

* code cleanup

* fix build errors

* code clean up

* code clean up

* code clean up

* code clean up

* more refactoring

* fix bug

* fix bug

* add debug logs

* add nil checks

* revert changes

* revert yaml change since this added in aks side

* fix pr feedback

* fix pr feedback

* refine retry code

* update mdsd env as per official build

* cleanup

* update env vars per mdsd

* update with mdsd official build

* skip cert gen & renewal incase of aad msi auth

* add nil check

* cherry windows agent nodeip issue

* fix merge issue

Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* Gangams/remove chart version dependency (#589)

* remove chart version dependency

* remove unused code

* fix resource type

* fix

* handle weird cli chars

* update release process

* Gangams/july 2021 release tasks 3 (#613)

* use artifact and pipeline creds for image push

* minor update

* add vuln fix here so that pr can be merged

* remove un-used output plugin (#614)

* fix telegraf telemetry and improve fluentd liveness (#611)

* fix telegraf telemetry and improve fluentd liveness

* address identified vuln with libsystemd0

* fix exported image file extension

* Gangams/july 2021 release tasks 2 (#612)

* tail rs mdsd err logs

* configure mdsd log rotation

* log rotation for mdsd log files

* Fix out_oms.go dependency vulnerabilities (#623)

* revert libsystemd0 update (#616)

* updates for ci-prod release instructions (#619)

* cherry pick changes from ci_prod (#622)

* Support az login for passwords starting with dash ('-') (#626)

Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>

* Gangams/add telemetry fbit settings (#628)

* add telemetry to track fbit settings

* add telemetry to track fbit settings

* check onboarding status (#629)

* Gangams/arc k8s conformance test updates (#617)

* conf test updates

* clean up

* wip

* update with mcr cidev image

* handle log path

* cleanup

* clean up

* wip

* working

* update for mcr image

* minor

* image update

* handle latency of connected cluster resource creation

* update conftest image

* upgrade golang version for windows in pipeline build and locally (#630)

* Updating a link in Readme.md (#632)

The link to the build pipelines now goes directly to our build pipelines (instead of to all github-private pipelines)

* Updating omsagent yaml to have parity with omsagent yaml file in AKS RP (#615)

* Unit test tooling (#625)

Added tooling and examples for unit tests

* run unit tests after a merge too (#634)

* flag stale PRs & issues

* Adding script to collect logs (for troubleshooting) (#636)

* added script for collecting logs

* added windows daemonset and prometheus sidecar, as well as some explanatory prints

* added kubectl describe and kubectl logs output

* changed message to make it more clear some erros are expected

* Sarah/ev2 (#640)

* ev2 artifacts for release pipeline

* update parameters reference

* add artifacts tar file

* changes to rollout and service model

* change agentimage path

* adding agentimage to artifact script

* removing charts from tarball

* change script to use blob storage

* change blob variables

* echo variables

* change blob uri

* use release id for blob prefix

* change to delete blob file

* add check for if blob storage file exists

* fix script errors

* update check for file in storage

* change true check

* comments and change storage account info to pipeline variables

* Changes for windows tar file

* PR changes

* documenting fbit tail plugin configmap settings. (#638)

* documenting fbit tail plugin configmap settings.

* Install unzip package on shell extension (#642)

* Changing installation in ev2 script (#644)

* Adjust release pipeline to use cdpx acr (#647)

* Adjust release pipeline to use cdpx acr

* Adjust release pipeline to use cdpx acr

* Update CDPX ACR path

* Add check for cdpx repo variable

* Sarah/ev2 prod (#649)

* Ev2 changes for prod

* CDPX repo naming change (#652)

* Sarah/ev2 update (#654)

* remove acr name from repo path

* add check to make sure tag does not exist in mcr repo

* change tag syntax for mcr repo check (#655)

* Gangams/optimize win livenessprobe (#653)

* livenessprobe optimization

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* Gangams/addon token adapter image tag to telemetry (#656)

* addon token adapter image tag

* addon token adapter image tag

* Sarah/ev2 helm (#658)

* Use MSI for Arc Release

* Use CIPROD_ACR AME subscription for shell extension

* remove extra line endings

* Sarah/ev2 pipeline (#661)

* testing build artifact dir changes

* add .pipelines directory and omsagent.yaml to build artifacts

* add charts directory to build artifacts (#662)

* Sarah/remove cdpx creds (#664)

* don't use cdpx acr creds from kv

* add e2etest.yaml to build output

* keep cdpx creds for now

* chart updates for rbac api version change (#660)

* chart updates for rbac api version change

* include windows ds for arc

* proxy support (for non-aks) (#665)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* initial proxy support

* merge?

* cleaning up some files which should've merged differently

* proxy should be working, but most tables don't have any data. About to merge, maybe whatever was wrong is now fixed

* linux AMA proxy works

* about to merge

* proxy support appears to be working, final mdsd build location will still change

* removing some unnecessary changes

* forgot to remove one last change

* redirected mdsd stderr to stdout instead of stdin

* addressing proxy password location comment

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Gangams/agent release ciprod10082021 & win-ciprod10082021 (#666)

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* use buildcommand for prod pipeline (#668)

* fixed merge issues. (#671) (#672)

* fix merge conflicts

* update with newimage tag

* changes related to mdsd version update (#673) (#674)

* Sarah/enable metrics (#675)

* add user assigned msi to yaml for pipeline

* update placeholders

* Gangams/chart updates oct2021 release (#676)

* chart updates for oct2021 release

* wip

* wip

* wip

* Gangams/msi mode mdsd crash fix (#677)

* update mdsd version which has fix for crash in msi mode

* image tag updates

* update to use extension GA api version (#679)

* Gangams/arm template msi onboarding (#659)

* wip

* wip

* working

* working

* working

* working

* working

* working

* shorten dcr prefix to DCR- to handle default workspace name length

* use MSCI- prefix similar to MSVMI- for dcr

* Gangams/conf test updates to handle sidecar (#681)

* wip

* test updates

* fix pr feedback

* fix pr feedback

* Fix scan break due to latest trivy changes

* Anjohans/configurable database name (#663)

* First cut at an implementation

* Reverting a change

* Moving a few lines to better align with cluster URI config

* Moving a few lines to better align with cluster URI config

* Adding an extra check that won't hurt

* Getting ADX database name from config rather than from secret

* Reverse the mangling done by editor

* Fixes to the code for reading the db name setting

* More fixes to the rb code for settings

* Tweaked and tested

* Code review

* Review follow-up

* Remove whitespace

* Gangams/troubelshooting script for arc k8s (#682)

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* doc updates

* doc updates

* wip

* wip

* update repo for issues

* fix minor one

* Sarah/remove cdpx creds (#685)

* remove download of cdpx creds

* fix: subtract number instead of string + update fluentd version 1.14.2 to fix security vulnerability (#686)

* fix: change default value to a number so that substraction happens correctly

* update fluentd version to 1.14.2

* extra end statement

* safely set to float

* big decimal precision

* revert omsagent

* keep telemetry

* Faster Linux builds (part 1) (#687)

* moved docker image arg later on to enable docker build caching

* fixing image tag (doh)

* Sarah/fluentbit windows log (#688)

* upgrade fluentbit version for windows

* saving progress--fluent bit log tailing working for windows

* use configmap values for fluent-bit.conf where necessary and make necessary files common

* revert certificategenerator

* remove tomlparser-agent-config from linux folder

* clean up fluent.conf

* clean up fluent-bit.conf

* revert image tag

* fix agent tag

* make fluent bit flush interval configurable

* clean up unecessary conf files

* remove unecessary parts of fluent and fluent-bit conf

* log level back to info

* add fbit env variables for omsagent-win

* moving db files to var directory

* default to port 10250 & containerd for linux agent (#699)

* default to port 10250 & containerd

* fix pr feedback

* Updating pod annotation for latest agent version (#697)

* fix windows build failure due to msys2 version (#700)

* fix windows build failure due to msys2 version

* 20211130.0.0

* Jan agent tasks (#698)

* remove v1 fallback hidden option (#705)

* collect telemetry containerlog records with emptystamp (#703)

* collect telemetry containerlog records with emptystamp

* collect telemetry containerlog records with emptystamp

* Fixing telegraf bug for placeholder name (#706)

* Gangams/jan 2022 release tasks 3 (#702)

* add telemetry related to windows containers records

* add telemetry related to windows containers records

* containercount telemetry

* add explicit exit code in ps scripts

* node count telemetry

* telemetry for win cirecord 64KB or more

* metric to track wintelegraf metrics with tags 64kb

* metric to track wintelegraf metrics with tags 64kb

* fix pr feedback

* Gangams/jan 2022 release tasks 2 (#701)

* mdsd proc cpu and memory telemetry

* write ai logs to file and telemetry for mdsd proc

* write ai logs to file and telemetry for mdsd proc

* write ai logs to file and telemetry for mdsd proc

* fix pr feedback

* use name_prefix

* remove mdsd telemetry changes

* remove mdsd telemetry changes

* remove mdsd telemetry changes

* release updates for ciprod01312022 & win-ciprod01312022release (#707)

* release updates for ciprod01312022 release

* release updates for ciprod01312022 release

* fix pr feedback

* fix logger exception (#709)

* Gangams/chart version update for jan release (#710)

* chart updates for jan2022 release

* add missing agentversion annotations

* fix agentversion annotation issue in chart (#712)

* adx bug + misc (#714)

* fix golang dependencies

* fix adx bug

* exclude telegraf

* fix space

* include both

* exclude files specifically

* fix build break (#715)

* fix build break

* update all places

* Explicitly use win-2019 to unblock windows PRs builds

* Fixing telegraf vulnerability (#716)

* cherry picked changes from 03112022 release (#719)

* cherry picked changes from 03112022 release

* Gangams/http proxy support (#717)

* add proxy cert support

* add proxy cert support

* add proxy cert support

* add proxy cert support

* remove arbitery username and pwd requirement

* remove arbitery username and pwd requirement

* add proxy support for mdm

* mdsd dev build

* proxy changes

* fix typo

* mdsd dev build

* add libcurl specific things

* working mdsd proxy build

* mdsd official master build

* handle proxy endpoint which endswith /

* latest official mdsd build

* add telemetry to track proxy ca cert

* build multi-arch images (#704)

* build multi-arch linux images
* new pipelines to build multi-arch images

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* add missing artifacts (#720)

* add missing artifacts

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* Gangams/msi  onboarding arm template updates for AKS (#721)

* msi arm template updates

* handle space in location

* minor fixes (#722)

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* specify go patch version (#723)

* specify go minor version

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

* User/amagraw/ciprod release 20220317 (#724)

* ciprod release march changes

Co-authored-by: Amol Agrawal <amagraw@microsoft.com>

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
Co-authored-by: deagraw <deagraw@microsoft.com>
Co-authored-by: David Michelman <daweim0@gmail.com>
Co-authored-by: Michael Sinz <36865706+Michael-Sinz@users.noreply.github.com>
Co-authored-by: Nicolas Yuen <nicolas.yuen@gmail.com>
Co-authored-by: seenu433 <seenu433@gmail.com>
Co-authored-by: Tsubasa Nomura <tsubasa@nomupro.com>
Co-authored-by: Vladimir <vladimir.d.babichev@gmail.com>
Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>
Co-authored-by: sarahpeiffer <46665092+sarahpeiffer@users.noreply.github.com>
Co-authored-by: Anders Johansen <anjohans@microsoft.com>
Co-authored-by: Amol Agrawal <amagraw@microsoft.com>
2022-03-18 17:03:42 -07:00
sarahpeiffer c71e963762
stdout/stderr log filtering for windows (#718)
* bug fix for stdout/stderr log filtering for windows

* fix build break (update go lang version, fix uuid vulnerability)

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: Rashmi Chandrashekar <rashmy@microsoft.com>
2022-03-11 13:18:42 -08:00
Ganga Mahesh Siddem d5363512a1
Gangams/cherry pick changes dev to prod (#678)
* Sarah/enable metrics (#675)

* add user assigned msi to yaml for pipeline

* update placeholders

* Gangams/chart updates oct2021 release (#676)

* chart updates for oct2021 release

* wip

* wip

* wip

* Gangams/msi mode mdsd crash fix (#677)

* update mdsd version which has fix for crash in msi mode

* image tag updates

Co-authored-by: sarahpeiffer <46665092+sarahpeiffer@users.noreply.github.com>
2021-10-13 18:47:25 -07:00
sarahpeiffer d76b7f3471
use buildcommand for prod pipeline (#668) (#670) 2021-10-08 15:27:06 -07:00
Ganga Mahesh Siddem 092ebba183
Gangams/dev to prod merge oct2021 release (#667)
* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

* Update onboarding_instructions.md (#456)

* Update onboarding_instructions.md

Updated the documentation to reflect where to update the config map.

* Update onboarding_instructions.md

* Update onboarding_instructions.md

* Update onboarding_instructions.md

Updated the link

* chart update for sept2020 release (#457)

* add missing version update in the script (#458)

* November release fixes - activate one agent, adx schema v2, win perf issue, syslog deactivation (#459)

* activate one agent, adx schema v2, win perf issue, syslog deactivation

* update chart

* remove hiphen for params in chart (#462)

Merging as its a simple fix (remove hiphen)

* Changes for cutting a new build for ciprod10272020 release (#460)

* using latest stable version of msys2 (#465)

* fixing the windows-perf-dups (#466)

* chart updates related to new microsoft/charts repo (#467)

* Changes for creating 11092020 release (#468)

* MDM exception aggregation (#470)

* grwehner/mdm custom metric regions (#471)

Remove custom metrics region check for public cloud

* updaitng rs limit to 1gb (#474)

* grwehner/pv inventory (#455)

Add fluentd plugin to request persistent volume info from the kubernetes api and send to LA

* Gangams/fix for build release pipeline issue (#476)

* use isolated cdpx acr

* correct comment

* add pv fluentd plugin config to helm rs config (#477)

* add pv fluentd plugin to helm rs config

* helm rbac permissions for pv api calls

* Gangams/fix rs ooming (#473)

* optimize kpi

* optimize kube node inventory

* add flags for events, deployments and hpa

* have separate function parseNodeLimits

* refactor code

* fix crash

* fix bug with service name

* fix bugs related to get service name

* update oom fix test agent

* debug logs

* fix service label issue

* update to latest agent and enable ephemeral annotation

* change stream size to 200 from 250

* update yaml

* adjust chunksizes

* add ruby gc env

* yaml changes for cioomtest11282020-3

* telemetry to track pods latency

* service count telemetry

* rename variables

* wip

* nodes inventory telemetry

* configmap changes

* add emit streams in configmap

* yaml updates

* fix copy and paste bug

* add todo comments

* fix node latency telemetry bug

* update yaml with latest test image

* fix bug

* upping rs memory change

* fix mdm bug with final emit stream

* update to latest image

* fix pr feedback

* fix pr feedback

* rename health config to agent config

* fix max allowed hpa chunk size

* update to use 1k pod chunk since validated on 1.18+

* remove debug logs

* minor updates

* move defaults to common place

* chart updates

* final oomfix agent

* update to use prod image so that can be validated with build pipeline

* fix typo in comment

* Gangams/enable arc onboarding to ff (#478)

* wip

* updates

* trigger login if the ctx cloud not same as specified cloud

* add missed commit

* Convert PV type dictionary to json for telemetry so it shows up in logs (#480)

* fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX route for containerlogs in windows (for O365) (#482)

* fix ci envvar collection in large pods (#483)

* grwehner/jan agent tasks (#481)

- Windows agent fix to use log filtering settings in config map.
- Error handling for kubelet_utils get_node_capacity in case /metrics/cadvsior endpoint fails.
- Remove env variable for workspace key for windows agent

* updating fbit version and cpu limit (#485)

* reverting to older version (#487)

* Gangams/add fbsettings configurable via configmap (#486)

* wip

* fbit config settings

* add config warn message

* handle one config provided but not other

* fixed pr feedback

* fix copy paste error

* rename config parameter names

* fix typo

* fix fbit crash in helm path

* fix nil check

* Gangams/jan agent release tasks (#484)

* wip

* explicit amd64 affinity for hybrid workloads

* fix space issue

* wip

* revert vscode setting file

* remove per container logs in ci (#488)

* updates for ciprod01112021 release (#489)

* new yaml files (#491)

* Use cloud-specific instrumentation keys (#494)

If APPLICATIONINSIGHTS_AUTH_URL is set/non-empty then the agent will now grab a custom IKey from a URL stored in APPLICATIONINSIGHTS_AUTH_URL

* upgrade apt to latest version (#492)

* upgrade apt to latest version

* fix pr feedback

* Gangams/add support for extension msi for arc k8s cluster (#495)

* wip

* add env var for the arc k8s extension name

* chart update

* extension msi updates

* fix bug

* revert chart and image to prod version

* minor text changes

* image tag to prod

* wip

* wip

* wip

* wip

* final updates

* fix whitespaces

* simplify crd yaml

* Gangams/arm template arc k8s extension (#496)

* arm templates for arc k8s extension

* update to use official extension type name

* update

* add identity property

* add proxyendpointurl parameter

* add default values

* Gangams/aks monitoring via policy (#497)

* enable monitoring through policy

* wip

* handle tags

* wip

* add alias

* wip

* working

* updates

* working

* with deployment name

* doc updates

* doc updates

* fix typo in the docs

* revert to use operatingSystem from osImage for node os telemety (#498)

* Container log v2 schema changes (#499)

* make pod name in mdsd definition as str for consistency. msgp has no type checking, as it has type metadata in it the message itself.

* Add priority class to the daemonsets (#500)

* Add priority class to the daemonsets

Add a priority class for omsagent and have the daemonsets use this
to be sure to schedule the pods.

Daemonset pods are constrained in scheduling to run on specific
nodes.  This is done by the daemonset controller.  When a node shows
up it will create a pod with a strong affinity to that node.  When a
node goes away, it will delete the pod with the node affinity to that
node.

Kubernetes pod scheduling does not know it is a daemonset but it does
know it is tied to a specific node.  With default scheduling, it is
possible for the pods to be "frozen out" of a node because the node
already is full.  This can happen because "normal" pods may already
exist and are looking for a node to get scheduled on when a node is
added to the cluster.  The daemonset controller will only first
create the pod for the node at around the same time.  The kubernetes
scheduler is running async from all of this and thus there can be a
race as to who gets scheduled on the node.

The pod priority class (and thus the pod priority) is a way to indicate
that the pod has a higher scheduling priority than a default pod.

By default, all pods are at priority 0.  Higher numbers are higher
priority.  Setting the priority to something greater than zero will
allow the omsagent daemonsets to win a race against "normal" pods for
scheduled resources on a node - and will also allow for graceful
eviction in the case the node is too full.

Without this, omsagent can be left out of node in clusters that are
very busy, especially in dynamic scaling situations.

I did not test the windows pod as we have no windows clusters.

* CR feedback

* fix node metric issue (#502)

* Bug fixes for Feb release (#504)

* bug fix for mdm metrics with no limits

* fix exception bug

* Gangams/feb 2021 agent bug fix (#505)

* fix npe in getKubeServiceRecords

* use image fields from spec

* fix typo

* cover all cases

* handle scenario only digest specified

* changes for release -ciprod02232021 (#506)

* Gangams/e2e test framework (#503)

* add agent e2e fw and tests

* doc and script updates

* add validation script

* doc updates

* yaml updates

* fix typo

* doc updates

* more doc updates

* add ISTEST for helm chart to use arc conf

* refactor test code

* fix pr feedback

* fix pr feedback

* fix pr feedback

* fix pr feedback

* scrape new kubelet pod count metric name (#508)

* Adding explicit json output to az commands as the script fails if az is configured with Table output #409 (#513)

* Gangams/arc proxy contract and token renewal updates (#511)

* fix issue with crd status updates

* handle renewal token delays

* add proxy contract

* updates for proxy cert for linux

* remove proxycert related changes

* fix whitespace issue

* fix whitespace issue

* remove proxy in arm template

* doc updates for microsoft charts repo release (#512)

* doc updates for microsoft charts repo release

* wip

* Update enable-monitoring.sh (#514)

Line 314 and 343 seems to have trailing spaces for some subscriptions which is exiting the script even for valid scenarios

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Prometheus scraping from sidecar and OSM changes (#515)

* add liveness timeout for exec (#518)

* chart and other updates (#519)

* Saaror osmdoc (#523)

* Create ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Add files via upload

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* telemetry bug fix (#527)

* Fix conflicting logrotate settings (#526)

The node and the omsagent container both have a cron.daily file to rotate certain logs daily. These settings are the same for some files in /var/log (mounted from the node with read/write access), causing the rotation to fail when both try to rotate at the same time. So then the /var/log/*.1 file is written to forever. Since these files are always written to and never rotated, it causes high memory usage on the node after a while.

This fix removes the container logrotate settings for /var/log, which the container does not write to.

* bug fix (#528)

* Gangams/arc ev2 deployment (#522)

* ev2 deployment for arc k8s extension

* fix charts path issue

* rename scripts tar

* add notifications

* fix line endings

* fix line endings

* update with prod repo

* fix file endings

* added liveness and telemetry for telegraf (#517)

* added liveness and telemetry for telegraf

* code transfer

* removed windows liveness probe

* done

* Windows metric fix (#530)

* changes

* about to remove container fix

* moved caching code to existing loop

* removed un-necessary changes

* removed a few more un-necessary changes

* added windows node check

* fixed a bug

* everything works confirmed

* OSM doc update (#533)

* Adding MDM metrics for threshold violation (#531)

* Rashmi/april agent 2021 (#538)

* add Read_from_Head config for all fluentbit tail plugins (#539)

See the commit message of: fluent/fluent-bit@70e33fa
for details explaining the fluentbit change and what Read_from_Head does when set to true.

* fix programdata mount issue on containerd win nodes (#542)

* Update sidecar mem limits  (#541)

* David/release 4 22 2021 (#544)

* updating image tag and agent version

* updated liveness probe

* updated release notes again

* fixed date in version file

* 1m, 1m, 1s by default (#543)

* 1m, 1m, 1s by default

* setting default through a different method

* David/aad stage 1 release (#556)

* update to latest omsagent, add eastus2 to mdsd regions

* copied oneagent bits to a CI repository release

* mdsd inmem mode

* yaml for cl scale test

* yaml for cl scale test

* reverting dockerProviderVersion version to 15.0.0

* prepping for release (updated image version, dockerProviderVersion, and release notes

* container log scaletest yamls

* forgot to update image version in chart

* fixing windows tag in dockerfile, changing release notes wording

* missed windows tag in one more place

* forgot to change the windows dockerProviderVersion back

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Update ReleaseNotes.md (#558)

fix imagetag in the release notes

* Add wait time for telegraf and also force mdm egress to use tls 1.2 (#560)

* Add wait time for telegraf and also force mdm egress to use tls 1.2

* add wait for all telegraf dependencies across all containers (ds & rs)

* remove ssl change so we dont include as part of the other fix until we test with att nodes.

* partially disabled telegraf liveness probe check, we'll still have telemetry but the probe won't fail if telegraf isn't running (#561)

* changes for 05202021 release (#563)

* changes for 05202021 release

* fixed typos

* Rashmi/jedi wireserver (#566)

* Update ReadMe.md (#565)

* Update ReadMe.md

* Update ReadMe.md

Included feedback from OSM team and Fixed

* Gangams/aad stage2 full switch to mdsd (#559)

* full switch to mdsd, upgrade to ruby v1 & omsagent removal

* add odsdirect as fallback option

* cleanup

* cleanup

* move customRegion to stage3

* updates related to containerlog route

* make xml eventschema consistent

* add buffer settings

* address HTTPServerException deprecation in ruby 2.6

* update to official mdsd version

* fix log message issue

* fix pr feedback

* get ridoff unused code from omscommon

* fix pr feedback

* fix pr feedback

* clean up

* clean up

* fix missing conf

* Send perf metrics to MDM from windows daemonset (#568)

* updating json gem to address CVE-2020-10663 (#567)

* updating json gem to address CVE-2020-10663

* updating json gem to address CVE-2020-10663

* update recommended alerts readme (#570)

@dcbrown16 pointed out that this page links to the wrong document in [this issue](https://github.com/microsoft/Docker-Provider/issues/475). The content in the currently linked page is identitical to the page which should be linked, so it's a simple fix.

* trying again to fix the json gem (#571)

* trying again to fix the json gem

* removing installation of newer json gem

* Addressing PR comments for - https://github.com/microsoft/Docker-Provider/pull/568 (#569)

* Mem_Buf_limit  is configurable via ConfigMap (#574)

* add log rotation settings for fluentd logs (#577)

* Gangams/release 06112021 (#578)

* updates related to ciprod06112021 release

* minor update

* release note update (#579)

* Make sidecar fluentbit chunk size configurable (#573)

* Fix vulnerabilities (#583)

* test

* test1

* test-2

* test-3

* 3

* 4

* test

* 2

* 3

* 4

* 5

* 6

* rename gem for windows

* fix

* fix

* Windows build optimization (#582)

* fix windows build failure due to msys2 version

* Fix telegraf startup issue when endpoint is unreachable (#587)

* revert fbit tail plugins defaults to std defaults (#586)

* fixed another bug (#593)

* feat: add new metrics to MDM for allocatable % calculation of cpu and memory usage (#584)

* feat: allocatable cpu and memory % metrics for MDM

* maybe

* linux is working

* windwos....

* some more

* comment

* better

* syntax

* ruby

* revert omsagent.yaml

* comments

* pr feedback

* pr feedback

* testing msys2 version update

* better

* update adx sdk for perf issue (#601)

* remove md check

* Gangams/release notes update for hotfix (#596)

* release notes updates

* release notes updates for ciprod06112021-1

* Cherry picking hotfix changes to ci_dev (#605)

* release changes (#607)

* Gangams/aad stage3 msi auth (#585)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* refactor the windows agent ingestion token code

* code cleanup

* fix build errors

* code clean up

* code clean up

* code clean up

* code clean up

* more refactoring

* fix bug

* fix bug

* add debug logs

* add nil checks

* revert changes

* revert yaml change since this added in aks side

* fix pr feedback

* fix pr feedback

* refine retry code

* update mdsd env as per official build

* cleanup

* update env vars per mdsd

* update with mdsd official build

* skip cert gen & renewal incase of aad msi auth

* add nil check

* cherry windows agent nodeip issue

* fix merge issue

Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* Gangams/remove chart version dependency (#589)

* remove chart version dependency

* remove unused code

* fix resource type

* fix

* handle weird cli chars

* update release process

* Gangams/july 2021 release tasks 3 (#613)

* use artifact and pipeline creds for image push

* minor update

* add vuln fix here so that pr can be merged

* remove un-used output plugin (#614)

* fix telegraf telemetry and improve fluentd liveness (#611)

* fix telegraf telemetry and improve fluentd liveness

* address identified vuln with libsystemd0

* fix exported image file extension

* Gangams/july 2021 release tasks 2 (#612)

* tail rs mdsd err logs

* configure mdsd log rotation

* log rotation for mdsd log files

* Fix out_oms.go dependency vulnerabilities (#623)

* revert libsystemd0 update (#616)

* updates for ci-prod release instructions (#619)

* cherry pick changes from ci_prod (#622)

* Support az login for passwords starting with dash ('-') (#626)

Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>

* Gangams/add telemetry fbit settings (#628)

* add telemetry to track fbit settings

* add telemetry to track fbit settings

* check onboarding status (#629)

* Gangams/arc k8s conformance test updates (#617)

* conf test updates

* clean up

* wip

* update with mcr cidev image

* handle log path

* cleanup

* clean up

* wip

* working

* update for mcr image

* minor

* image update

* handle latency of connected cluster resource creation

* update conftest image

* upgrade golang version for windows in pipeline build and locally (#630)

* Updating a link in Readme.md (#632)

The link to the build pipelines now goes directly to our build pipelines (instead of to all github-private pipelines)

* Updating omsagent yaml to have parity with omsagent yaml file in AKS RP (#615)

* Unit test tooling (#625)

Added tooling and examples for unit tests

* run unit tests after a merge too (#634)

* flag stale PRs & issues

* Adding script to collect logs (for troubleshooting) (#636)

* added script for collecting logs

* added windows daemonset and prometheus sidecar, as well as some explanatory prints

* added kubectl describe and kubectl logs output

* changed message to make it more clear some erros are expected

* Sarah/ev2 (#640)

* ev2 artifacts for release pipeline

* update parameters reference

* add artifacts tar file

* changes to rollout and service model

* change agentimage path

* adding agentimage to artifact script

* removing charts from tarball

* change script to use blob storage

* change blob variables

* echo variables

* change blob uri

* use release id for blob prefix

* change to delete blob file

* add check for if blob storage file exists

* fix script errors

* update check for file in storage

* change true check

* comments and change storage account info to pipeline variables

* Changes for windows tar file

* PR changes

* documenting fbit tail plugin configmap settings. (#638)

* documenting fbit tail plugin configmap settings.

* Install unzip package on shell extension (#642)

* Changing installation in ev2 script (#644)

* Adjust release pipeline to use cdpx acr (#647)

* Adjust release pipeline to use cdpx acr

* Adjust release pipeline to use cdpx acr

* Update CDPX ACR path

* Add check for cdpx repo variable

* Sarah/ev2 prod (#649)

* Ev2 changes for prod

* CDPX repo naming change (#652)

* Sarah/ev2 update (#654)

* remove acr name from repo path

* add check to make sure tag does not exist in mcr repo

* change tag syntax for mcr repo check (#655)

* Gangams/optimize win livenessprobe (#653)

* livenessprobe optimization

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* optimize windows agent liveness probe

* Gangams/addon token adapter image tag to telemetry (#656)

* addon token adapter image tag

* addon token adapter image tag

* Sarah/ev2 helm (#658)

* Use MSI for Arc Release

* Use CIPROD_ACR AME subscription for shell extension

* remove extra line endings

* Sarah/ev2 pipeline (#661)

* testing build artifact dir changes

* add .pipelines directory and omsagent.yaml to build artifacts

* add charts directory to build artifacts (#662)

* Sarah/remove cdpx creds (#664)

* don't use cdpx acr creds from kv

* add e2etest.yaml to build output

* keep cdpx creds for now

* chart updates for rbac api version change (#660)

* chart updates for rbac api version change

* include windows ds for arc

* proxy support (for non-aks) (#665)

* changes related to aad msi auth feature

* use existing envvars

* fix imds token expiry interval

* initial proxy support

* merge?

* cleaning up some files which should've merged differently

* proxy should be working, but most tables don't have any data. About to merge, maybe whatever was wrong is now fixed

* linux AMA proxy works

* about to merge

* proxy support appears to be working, final mdsd build location will still change

* removing some unnecessary changes

* forgot to remove one last change

* redirected mdsd stderr to stdout instead of stdin

* addressing proxy password location comment

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

* updates for the release ciprod10082021 and win-ciprod10082021

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
Co-authored-by: deagraw <deagraw@microsoft.com>
Co-authored-by: David Michelman <daweim0@gmail.com>
Co-authored-by: Michael Sinz <36865706+Michael-Sinz@users.noreply.github.com>
Co-authored-by: Nicolas Yuen <nicolas.yuen@gmail.com>
Co-authored-by: seenu433 <seenu433@gmail.com>
Co-authored-by: Tsubasa Nomura <tsubasa@nomupro.com>
Co-authored-by: Vladimir <vladimir.d.babichev@gmail.com>
Co-authored-by: Vladimir Babichev <vladimir.babichev@finastra.com>
Co-authored-by: sarahpeiffer <46665092+sarahpeiffer@users.noreply.github.com>
2021-10-08 14:27:35 -07:00
David Michelman a01175025c
David/to merge into ciprod 04222021 (#545)
* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

* Update onboarding_instructions.md (#456)

* Update onboarding_instructions.md

Updated the documentation to reflect where to update the config map.

* Update onboarding_instructions.md

* Update onboarding_instructions.md

* Update onboarding_instructions.md

Updated the link

* chart update for sept2020 release (#457)

* add missing version update in the script (#458)

* November release fixes - activate one agent, adx schema v2, win perf issue, syslog deactivation (#459)

* activate one agent, adx schema v2, win perf issue, syslog deactivation

* update chart

* remove hiphen for params in chart (#462)

Merging as its a simple fix (remove hiphen)

* Changes for cutting a new build for ciprod10272020 release (#460)

* using latest stable version of msys2 (#465)

* fixing the windows-perf-dups (#466)

* chart updates related to new microsoft/charts repo (#467)

* Changes for creating 11092020 release (#468)

* MDM exception aggregation (#470)

* grwehner/mdm custom metric regions (#471)

Remove custom metrics region check for public cloud

* updaitng rs limit to 1gb (#474)

* grwehner/pv inventory (#455)

Add fluentd plugin to request persistent volume info from the kubernetes api and send to LA

* Gangams/fix for build release pipeline issue (#476)

* use isolated cdpx acr

* correct comment

* add pv fluentd plugin config to helm rs config (#477)

* add pv fluentd plugin to helm rs config

* helm rbac permissions for pv api calls

* Gangams/fix rs ooming (#473)

* optimize kpi

* optimize kube node inventory

* add flags for events, deployments and hpa

* have separate function parseNodeLimits

* refactor code

* fix crash

* fix bug with service name

* fix bugs related to get service name

* update oom fix test agent

* debug logs

* fix service label issue

* update to latest agent and enable ephemeral annotation

* change stream size to 200 from 250

* update yaml

* adjust chunksizes

* add ruby gc env

* yaml changes for cioomtest11282020-3

* telemetry to track pods latency

* service count telemetry

* rename variables

* wip

* nodes inventory telemetry

* configmap changes

* add emit streams in configmap

* yaml updates

* fix copy and paste bug

* add todo comments

* fix node latency telemetry bug

* update yaml with latest test image

* fix bug

* upping rs memory change

* fix mdm bug with final emit stream

* update to latest image

* fix pr feedback

* fix pr feedback

* rename health config to agent config

* fix max allowed hpa chunk size

* update to use 1k pod chunk since validated on 1.18+

* remove debug logs

* minor updates

* move defaults to common place

* chart updates

* final oomfix agent

* update to use prod image so that can be validated with build pipeline

* fix typo in comment

* Gangams/enable arc onboarding to ff (#478)

* wip

* updates

* trigger login if the ctx cloud not same as specified cloud

* add missed commit

* Convert PV type dictionary to json for telemetry so it shows up in logs (#480)

* fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX route for containerlogs in windows (for O365) (#482)

* fix ci envvar collection in large pods (#483)

* grwehner/jan agent tasks (#481)

- Windows agent fix to use log filtering settings in config map.
- Error handling for kubelet_utils get_node_capacity in case /metrics/cadvsior endpoint fails.
- Remove env variable for workspace key for windows agent

* updating fbit version and cpu limit (#485)

* reverting to older version (#487)

* Gangams/add fbsettings configurable via configmap (#486)

* wip

* fbit config settings

* add config warn message

* handle one config provided but not other

* fixed pr feedback

* fix copy paste error

* rename config parameter names

* fix typo

* fix fbit crash in helm path

* fix nil check

* Gangams/jan agent release tasks (#484)

* wip

* explicit amd64 affinity for hybrid workloads

* fix space issue

* wip

* revert vscode setting file

* remove per container logs in ci (#488)

* updates for ciprod01112021 release (#489)

* new yaml files (#491)

* Use cloud-specific instrumentation keys (#494)

If APPLICATIONINSIGHTS_AUTH_URL is set/non-empty then the agent will now grab a custom IKey from a URL stored in APPLICATIONINSIGHTS_AUTH_URL

* upgrade apt to latest version (#492)

* upgrade apt to latest version

* fix pr feedback

* Gangams/add support for extension msi for arc k8s cluster (#495)

* wip

* add env var for the arc k8s extension name

* chart update

* extension msi updates

* fix bug

* revert chart and image to prod version

* minor text changes

* image tag to prod

* wip

* wip

* wip

* wip

* final updates

* fix whitespaces

* simplify crd yaml

* Gangams/arm template arc k8s extension (#496)

* arm templates for arc k8s extension

* update to use official extension type name

* update

* add identity property

* add proxyendpointurl parameter

* add default values

* Gangams/aks monitoring via policy (#497)

* enable monitoring through policy

* wip

* handle tags

* wip

* add alias

* wip

* working

* updates

* working

* with deployment name

* doc updates

* doc updates

* fix typo in the docs

* revert to use operatingSystem from osImage for node os telemety (#498)

* Container log v2 schema changes (#499)

* make pod name in mdsd definition as str for consistency. msgp has no type checking, as it has type metadata in it the message itself.

* Add priority class to the daemonsets (#500)

* Add priority class to the daemonsets

Add a priority class for omsagent and have the daemonsets use this
to be sure to schedule the pods.

Daemonset pods are constrained in scheduling to run on specific
nodes.  This is done by the daemonset controller.  When a node shows
up it will create a pod with a strong affinity to that node.  When a
node goes away, it will delete the pod with the node affinity to that
node.

Kubernetes pod scheduling does not know it is a daemonset but it does
know it is tied to a specific node.  With default scheduling, it is
possible for the pods to be "frozen out" of a node because the node
already is full.  This can happen because "normal" pods may already
exist and are looking for a node to get scheduled on when a node is
added to the cluster.  The daemonset controller will only first
create the pod for the node at around the same time.  The kubernetes
scheduler is running async from all of this and thus there can be a
race as to who gets scheduled on the node.

The pod priority class (and thus the pod priority) is a way to indicate
that the pod has a higher scheduling priority than a default pod.

By default, all pods are at priority 0.  Higher numbers are higher
priority.  Setting the priority to something greater than zero will
allow the omsagent daemonsets to win a race against "normal" pods for
scheduled resources on a node - and will also allow for graceful
eviction in the case the node is too full.

Without this, omsagent can be left out of node in clusters that are
very busy, especially in dynamic scaling situations.

I did not test the windows pod as we have no windows clusters.

* CR feedback

* fix node metric issue (#502)

* Bug fixes for Feb release (#504)

* bug fix for mdm metrics with no limits

* fix exception bug

* Gangams/feb 2021 agent bug fix (#505)

* fix npe in getKubeServiceRecords

* use image fields from spec

* fix typo

* cover all cases

* handle scenario only digest specified

* changes for release -ciprod02232021 (#506)

* Gangams/e2e test framework (#503)

* add agent e2e fw and tests

* doc and script updates

* add validation script

* doc updates

* yaml updates

* fix typo

* doc updates

* more doc updates

* add ISTEST for helm chart to use arc conf

* refactor test code

* fix pr feedback

* fix pr feedback

* fix pr feedback

* fix pr feedback

* scrape new kubelet pod count metric name (#508)

* Adding explicit json output to az commands as the script fails if az is configured with Table output #409 (#513)

* Gangams/arc proxy contract and token renewal updates (#511)

* fix issue with crd status updates

* handle renewal token delays

* add proxy contract

* updates for proxy cert for linux

* remove proxycert related changes

* fix whitespace issue

* fix whitespace issue

* remove proxy in arm template

* doc updates for microsoft charts repo release (#512)

* doc updates for microsoft charts repo release

* wip

* Update enable-monitoring.sh (#514)

Line 314 and 343 seems to have trailing spaces for some subscriptions which is exiting the script even for valid scenarios

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>

* Prometheus scraping from sidecar and OSM changes (#515)

* add liveness timeout for exec (#518)

* chart and other updates (#519)

* Saaror osmdoc (#523)

* Create ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Add files via upload

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* Update ReadMe.md

* telemetry bug fix (#527)

* Fix conflicting logrotate settings (#526)

The node and the omsagent container both have a cron.daily file to rotate certain logs daily. These settings are the same for some files in /var/log (mounted from the node with read/write access), causing the rotation to fail when both try to rotate at the same time. So then the /var/log/*.1 file is written to forever. Since these files are always written to and never rotated, it causes high memory usage on the node after a while.

This fix removes the container logrotate settings for /var/log, which the container does not write to.

* bug fix (#528)

* Gangams/arc ev2 deployment (#522)

* ev2 deployment for arc k8s extension

* fix charts path issue

* rename scripts tar

* add notifications

* fix line endings

* fix line endings

* update with prod repo

* fix file endings

* added liveness and telemetry for telegraf (#517)

* added liveness and telemetry for telegraf

* code transfer

* removed windows liveness probe

* done

* Windows metric fix (#530)

* changes

* about to remove container fix

* moved caching code to existing loop

* removed un-necessary changes

* removed a few more un-necessary changes

* added windows node check

* fixed a bug

* everything works confirmed

* OSM doc update (#533)

* Adding MDM metrics for threshold violation (#531)

* Rashmi/april agent 2021 (#538)

* add Read_from_Head config for all fluentbit tail plugins (#539)

See the commit message of: fluent/fluent-bit@70e33fa
for details explaining the fluentbit change and what Read_from_Head does when set to true.

* fix programdata mount issue on containerd win nodes (#542)

* Update sidecar mem limits  (#541)

* David/release 4 22 2021 (#544)

* updating image tag and agent version

* updated liveness probe

* updated release notes again

* fixed date in version file

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
Co-authored-by: deagraw <deagraw@microsoft.com>
Co-authored-by: Michael Sinz <36865706+Michael-Sinz@users.noreply.github.com>
Co-authored-by: Nicolas Yuen <nicolas.yuen@gmail.com>
Co-authored-by: seenu433 <seenu433@gmail.com>
2021-04-22 15:33:22 -07:00
Vishwanath dd7afba366
Merge ci_dev into ci_prod for 02232021 release (#507)
* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

* Update onboarding_instructions.md (#456)

* Update onboarding_instructions.md

Updated the documentation to reflect where to update the config map.

* Update onboarding_instructions.md

* Update onboarding_instructions.md

* Update onboarding_instructions.md

Updated the link

* chart update for sept2020 release (#457)

* add missing version update in the script (#458)

* November release fixes - activate one agent, adx schema v2, win perf issue, syslog deactivation (#459)

* activate one agent, adx schema v2, win perf issue, syslog deactivation

* update chart

* remove hiphen for params in chart (#462)

Merging as its a simple fix (remove hiphen)

* Changes for cutting a new build for ciprod10272020 release (#460)

* using latest stable version of msys2 (#465)

* fixing the windows-perf-dups (#466)

* chart updates related to new microsoft/charts repo (#467)

* Changes for creating 11092020 release (#468)

* MDM exception aggregation (#470)

* grwehner/mdm custom metric regions (#471)

Remove custom metrics region check for public cloud

* updaitng rs limit to 1gb (#474)

* grwehner/pv inventory (#455)

Add fluentd plugin to request persistent volume info from the kubernetes api and send to LA

* Gangams/fix for build release pipeline issue (#476)

* use isolated cdpx acr

* correct comment

* add pv fluentd plugin config to helm rs config (#477)

* add pv fluentd plugin to helm rs config

* helm rbac permissions for pv api calls

* Gangams/fix rs ooming (#473)

* optimize kpi

* optimize kube node inventory

* add flags for events, deployments and hpa

* have separate function parseNodeLimits

* refactor code

* fix crash

* fix bug with service name

* fix bugs related to get service name

* update oom fix test agent

* debug logs

* fix service label issue

* update to latest agent and enable ephemeral annotation

* change stream size to 200 from 250

* update yaml

* adjust chunksizes

* add ruby gc env

* yaml changes for cioomtest11282020-3

* telemetry to track pods latency

* service count telemetry

* rename variables

* wip

* nodes inventory telemetry

* configmap changes

* add emit streams in configmap

* yaml updates

* fix copy and paste bug

* add todo comments

* fix node latency telemetry bug

* update yaml with latest test image

* fix bug

* upping rs memory change

* fix mdm bug with final emit stream

* update to latest image

* fix pr feedback

* fix pr feedback

* rename health config to agent config

* fix max allowed hpa chunk size

* update to use 1k pod chunk since validated on 1.18+

* remove debug logs

* minor updates

* move defaults to common place

* chart updates

* final oomfix agent

* update to use prod image so that can be validated with build pipeline

* fix typo in comment

* Gangams/enable arc onboarding to ff (#478)

* wip

* updates

* trigger login if the ctx cloud not same as specified cloud

* add missed commit

* Convert PV type dictionary to json for telemetry so it shows up in logs (#480)

* fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX route for containerlogs in windows (for O365) (#482)

* fix ci envvar collection in large pods (#483)

* grwehner/jan agent tasks (#481)

- Windows agent fix to use log filtering settings in config map.
- Error handling for kubelet_utils get_node_capacity in case /metrics/cadvsior endpoint fails.
- Remove env variable for workspace key for windows agent

* updating fbit version and cpu limit (#485)

* reverting to older version (#487)

* Gangams/add fbsettings configurable via configmap (#486)

* wip

* fbit config settings

* add config warn message

* handle one config provided but not other

* fixed pr feedback

* fix copy paste error

* rename config parameter names

* fix typo

* fix fbit crash in helm path

* fix nil check

* Gangams/jan agent release tasks (#484)

* wip

* explicit amd64 affinity for hybrid workloads

* fix space issue

* wip

* revert vscode setting file

* remove per container logs in ci (#488)

* updates for ciprod01112021 release (#489)

* new yaml files (#491)

* Use cloud-specific instrumentation keys (#494)

If APPLICATIONINSIGHTS_AUTH_URL is set/non-empty then the agent will now grab a custom IKey from a URL stored in APPLICATIONINSIGHTS_AUTH_URL

* upgrade apt to latest version (#492)

* upgrade apt to latest version

* fix pr feedback

* Gangams/add support for extension msi for arc k8s cluster (#495)

* wip

* add env var for the arc k8s extension name

* chart update

* extension msi updates

* fix bug

* revert chart and image to prod version

* minor text changes

* image tag to prod

* wip

* wip

* wip

* wip

* final updates

* fix whitespaces

* simplify crd yaml

* Gangams/arm template arc k8s extension (#496)

* arm templates for arc k8s extension

* update to use official extension type name

* update

* add identity property

* add proxyendpointurl parameter

* add default values

* Gangams/aks monitoring via policy (#497)

* enable monitoring through policy

* wip

* handle tags

* wip

* add alias

* wip

* working

* updates

* working

* with deployment name

* doc updates

* doc updates

* fix typo in the docs

* revert to use operatingSystem from osImage for node os telemety (#498)

* Container log v2 schema changes (#499)

* make pod name in mdsd definition as str for consistency. msgp has no type checking, as it has type metadata in it the message itself.

* Add priority class to the daemonsets (#500)

* Add priority class to the daemonsets

Add a priority class for omsagent and have the daemonsets use this
to be sure to schedule the pods.

Daemonset pods are constrained in scheduling to run on specific
nodes.  This is done by the daemonset controller.  When a node shows
up it will create a pod with a strong affinity to that node.  When a
node goes away, it will delete the pod with the node affinity to that
node.

Kubernetes pod scheduling does not know it is a daemonset but it does
know it is tied to a specific node.  With default scheduling, it is
possible for the pods to be "frozen out" of a node because the node
already is full.  This can happen because "normal" pods may already
exist and are looking for a node to get scheduled on when a node is
added to the cluster.  The daemonset controller will only first
create the pod for the node at around the same time.  The kubernetes
scheduler is running async from all of this and thus there can be a
race as to who gets scheduled on the node.

The pod priority class (and thus the pod priority) is a way to indicate
that the pod has a higher scheduling priority than a default pod.

By default, all pods are at priority 0.  Higher numbers are higher
priority.  Setting the priority to something greater than zero will
allow the omsagent daemonsets to win a race against "normal" pods for
scheduled resources on a node - and will also allow for graceful
eviction in the case the node is too full.

Without this, omsagent can be left out of node in clusters that are
very busy, especially in dynamic scaling situations.

I did not test the windows pod as we have no windows clusters.

* CR feedback

* fix node metric issue (#502)

* Bug fixes for Feb release (#504)

* bug fix for mdm metrics with no limits

* fix exception bug

* Gangams/feb 2021 agent bug fix (#505)

* fix npe in getKubeServiceRecords

* use image fields from spec

* fix typo

* cover all cases

* handle scenario only digest specified

* changes for release -ciprod02232021 (#506)

* Gangams/e2e test framework (#503)

* add agent e2e fw and tests

* doc and script updates

* add validation script

* doc updates

* yaml updates

* fix typo

* doc updates

* more doc updates

* add ISTEST for helm chart to use arc conf

* refactor test code

* fix pr feedback

* fix pr feedback

* fix pr feedback

* fix pr feedback

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
Co-authored-by: deagraw <deagraw@microsoft.com>
Co-authored-by: David Michelman <daweim0@gmail.com>
Co-authored-by: Michael Sinz <36865706+Michael-Sinz@users.noreply.github.com>
2021-02-23 16:53:28 -08:00
Ganga Mahesh Siddem 9287425be5
Gangams/changes for release ciprod01112021 (#490)
* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

* Update onboarding_instructions.md (#456)

* Update onboarding_instructions.md

Updated the documentation to reflect where to update the config map.

* Update onboarding_instructions.md

* Update onboarding_instructions.md

* Update onboarding_instructions.md

Updated the link

* chart update for sept2020 release (#457)

* add missing version update in the script (#458)

* November release fixes - activate one agent, adx schema v2, win perf issue, syslog deactivation (#459)

* activate one agent, adx schema v2, win perf issue, syslog deactivation

* update chart

* remove hiphen for params in chart (#462)

Merging as its a simple fix (remove hiphen)

* Changes for cutting a new build for ciprod10272020 release (#460)

* using latest stable version of msys2 (#465)

* fixing the windows-perf-dups (#466)

* chart updates related to new microsoft/charts repo (#467)

* Changes for creating 11092020 release (#468)

* MDM exception aggregation (#470)

* grwehner/mdm custom metric regions (#471)

Remove custom metrics region check for public cloud

* updaitng rs limit to 1gb (#474)

* grwehner/pv inventory (#455)

Add fluentd plugin to request persistent volume info from the kubernetes api and send to LA

* Gangams/fix for build release pipeline issue (#476)

* use isolated cdpx acr

* correct comment

* add pv fluentd plugin config to helm rs config (#477)

* add pv fluentd plugin to helm rs config

* helm rbac permissions for pv api calls

* Gangams/fix rs ooming (#473)

* optimize kpi

* optimize kube node inventory

* add flags for events, deployments and hpa

* have separate function parseNodeLimits

* refactor code

* fix crash

* fix bug with service name

* fix bugs related to get service name

* update oom fix test agent

* debug logs

* fix service label issue

* update to latest agent and enable ephemeral annotation

* change stream size to 200 from 250

* update yaml

* adjust chunksizes

* add ruby gc env

* yaml changes for cioomtest11282020-3

* telemetry to track pods latency

* service count telemetry

* rename variables

* wip

* nodes inventory telemetry

* configmap changes

* add emit streams in configmap

* yaml updates

* fix copy and paste bug

* add todo comments

* fix node latency telemetry bug

* update yaml with latest test image

* fix bug

* upping rs memory change

* fix mdm bug with final emit stream

* update to latest image

* fix pr feedback

* fix pr feedback

* rename health config to agent config

* fix max allowed hpa chunk size

* update to use 1k pod chunk since validated on 1.18+

* remove debug logs

* minor updates

* move defaults to common place

* chart updates

* final oomfix agent

* update to use prod image so that can be validated with build pipeline

* fix typo in comment

* Gangams/enable arc onboarding to ff (#478)

* wip

* updates

* trigger login if the ctx cloud not same as specified cloud

* add missed commit

* Convert PV type dictionary to json for telemetry so it shows up in logs (#480)

* fix 2 windows tasks - 1) Dont log to termination log 2) enable ADX route for containerlogs in windows (for O365) (#482)

* fix ci envvar collection in large pods (#483)

* grwehner/jan agent tasks (#481)

- Windows agent fix to use log filtering settings in config map.
- Error handling for kubelet_utils get_node_capacity in case /metrics/cadvsior endpoint fails.
- Remove env variable for workspace key for windows agent

* updating fbit version and cpu limit (#485)

* reverting to older version (#487)

* Gangams/add fbsettings configurable via configmap (#486)

* wip

* fbit config settings

* add config warn message

* handle one config provided but not other

* fixed pr feedback

* fix copy paste error

* rename config parameter names

* fix typo

* fix fbit crash in helm path

* fix nil check

* Gangams/jan agent release tasks (#484)

* wip

* explicit amd64 affinity for hybrid workloads

* fix space issue

* wip

* revert vscode setting file

* remove per container logs in ci (#488)

* updates for ciprod01112021 release

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
2021-01-13 14:05:36 -08:00
Vishwanath 9615cbce6c
Merge from ci_dev into ci_prod (#454)
* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

* Gangams/cluster creation scripts (#414)

* onprem k8s script

* script updates

* scripts for creating non-aks clusters

* fix minor text update

* updates

* script updates

* fix

* script updates

* fix scripts to install docker

* fix: Pin to a particular version of ltsc2019 by SHA (#427)

* enable collecting npm metrics (optionally) (#425)

* enable collecting npm metrics (optionally)

* fix default enrichment value

* fix adx

* Saaror patch 3 (#426)

* Create README.MD

Creating content for Kubecon lab

* Update README.MD

* Update README.MD

* Gangams/add containerd support to windows agent (#428)

* wip

* wip

* wip

* wip

* bug fix related to uri

* wip

* wip

* fix bug with ignore cert validation

* logic to ignore cert validation

* minor

* fix minor debug log issue

* improve log message

* debug message

* fix bug with nullorempty check

* remove debug statements

* refactor parsers

* add debug message

* clean up

* chart updates

* fix formatting issues

* Gangams/arc k8s metrics  (#413)

* cluster identity token

* wip

* fix exception

* fix exceptions

* fix exception

* fix bug

* fix bug

* minor update

* refactor the code

* more refactoring

* fix bug

* typo fix

* fix typo

* wait for 1min after token renewal request

* add proxy support for arc k8s mdm endpoint

* avoid additional get call

* minor line ending fix

* wip

* have separate log for arc k8s cluster identity

* fix bug on creating crd resource

* remove update permission since not required

* fixed some bugs

* fix pr feedback

* remove list since its not required

* fix: Reverting back to ltsc2019 tag (#429)

* more kubelet metrics (#430)

* more kubelet metrics

* celan up new config

* fix nom issue when config is empty (#432)

* support multiple docker paths when docker root is updated thru knode (#433)

* Gangams/doc and other related updates (#434)

* bring back nodeslector changes for windows agent ds

* readme updates

* chart updates for azure cluster resourceid and region

* set cluster region during onboarding for managed clusters

* wip

* fix for onboarding script

* add sp support for the login

* update help

* add sp support for powershell

* script updates for sp login

* wip

* wip

* wip

* readme updates

* update the links to use ci_prod branch

* fix links

* fix image link

* some more readme updates

* add missing serviceprincipal in ps scripts (#435)

* fix telemetry bug (#436)

* Gangams/readmeupdates non aks 09162020 (#437)

* changes for ciprod09162020 non-aks release

* fix script to handle cross sub scenario

* fix minor comment

* fix date in version file

* fix pr comments

* Gangams/fix weird conflicts (#439)

* separate build yamls for ci_prod branch (#415) (#416)

* [Merge] dev to prod for ciprod08072020 release (#424)

* separate build yamls for ci_prod branch (#415)

* re-enable adx path (#420)

* Gangams/release changes (#419)

* updates related to release

* updates related to release

* fix the incorrect version

* fix pr feedback

* fix some typos in the release notes

* fix for zero filled metrics (#423)

* consolidate windows agent image docker files (#422)

* consolidate windows agent image docker files

* revert docker file consolidation

* revert readme updates

* merge back windows dockerfiles

* image tag update

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

Co-authored-by: Vishwanath <visnara@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>

* fix quote issue for the region (#441)

* fix cpucapacity/limit bug (#442)

* grwehner/pv-usage-metrics (#431)

- Send persistent volume usage and capacity metrics to LA for PVs with PVCs at the pod level; config to include or exclude kube-system namespace.
- Send PV usage percentage to MDM if over the configurable threshold.
- Add PV usage recommended alert template.

* add new custom metric regions (#444)

* add new custom metric regions

* fix commas

* add 'Terminating' state (#443)

* Gangams/sept agent release tasks (#445)

* turnoff mdm nonsupported cluster types

* enable validation of server cert for ai ruby http client

* add kubelet operations total and total error metrics

* node selector label change

* label update

* wip

* wip

* wip

* revert quotes

* grwehner/pv-collect-volume-name (#448)

Collect and send the volume name as another tag for pvUsedBytes in InsightsMetrics, so that it can be displayed in the workload workbook. Does not affect the PV MDM metric

* Changes for september agent release (#449)

Moving from v1beta1 to v1 for health CRD
Adding timer for zero filling
Adding zero filling for PV metrics

* Gangams/arc k8s related scripts, charts and doc updates (#450)

* checksum annotations

* script update for chart from mcr

* chart updates

* update chart version to match with chart release

* script updates

* latest chart updates

* version updates for chart release

* script updates

* script updates

* doc updates

* doc updates

* update comments

* fix bug in ps script

* fix bug in ps script

* minor update

* release process updates

* use consistent name across scripts

* use consistent names

* Install CA certs from wireserver (#451)

* grwehner/pv-volume-name-in-mdm (#452)

Add volume name for PV to mdm dimensions and zero fill it

* Release changes for 10052020 release (#453)

* Release changes for 10052020 release

* remove redundant kubelet metrics as part of PR feedback

Co-authored-by: Ganga Mahesh Siddem <gangams@microsoft.com>
Co-authored-by: rashmichandrashekar <rashmy@microsoft.com>
Co-authored-by: bragi92 <kadubey@microsoft.com>
Co-authored-by: saaror <31900410+saaror@users.noreply.github.com>
Co-authored-by: Grace Wehner <grace.wehner@microsoft.com>
2020-10-05 20:19:43 -07:00
Ganga Mahesh Siddem 7c6048e4f7
separate build yamls for ci_prod branch (#415) (#416) 2020-08-04 17:18:26 -07:00
Ganga Mahesh Siddem 9d4b31c468
Gangams/extend release pipeline non aks (#399)
* comment acs env and uncomment aks

* fix line ending issues

* readme update

* scripts for ado release pipeline

* script to update placeholders

* fix issue with tag

* readme updates

* release pipeline scripts

* script updates

* trim line endings

* improve regex

* fix file endings

* add comment to yaml

* readme updates

* update release process instructions

* update readme

* readme updates

* release process updates

* updates to release process

* wip: chart add

* remove readme and owners file

* script to install chart

* change parameter name

* readme update

* fix script error

* script update to get the kubeconfig

* script to get the kubeconfig for akse cluster

* script updates

* remove secret logging

* update to hotfix version

* add charts readme

* test yamls

* fix new line in yaml

* update the test scenario yamls

* readme updates

* push chart as an oci artifact

* fix script error

* install oci artifact helm chart to arc k8s

* updates to latest yaml changes

* fix line endings

* fix line endings in test yamls
2020-08-03 15:34:03 -07:00
Ganga Mahesh Siddem 0260ebabe8
Gangams/enable release pipe line (#393)
* comment acs env and uncomment aks

* fix line ending issues

* readme update

* scripts for ado release pipeline

* script to update placeholders

* fix issue with tag

* readme updates

* release pipeline scripts

* script updates

* trim line endings

* improve regex

* fix file endings

* add comment to yaml

* readme updates

* update release process instructions

* update readme

* readme updates

* release process updates

* updates to release process

* pr feedback
2020-07-14 13:32:08 -07:00