Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Health private preview agent #253

Open
wants to merge 64 commits into
base: ci_feature
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
6e8832e
Pushing to remote for generating image
r-dilip Apr 11, 2019
4b2e5aa
Merging from ci_feature
r-dilip Apr 12, 2019
7c8f4b3
Building New Version of the agent
r-dilip Apr 12, 2019
d4ae283
Publish docker provider as a release, Update image tag
r-dilip Apr 15, 2019
c092910
Onboard Script
r-dilip Apr 18, 2019
e251cc9
Update Agent Version, do actual ARM Deployment
r-dilip Apr 18, 2019
733be41
Use Import-AzAks instead of az cli
r-dilip Apr 19, 2019
ba99de4
Pushing doc to OMS-docker repo
r-dilip Apr 23, 2019
a266899
Adding description
r-dilip Apr 23, 2019
5683b4a
Update HealthAgentOnboarding.ps1
r-dilip Apr 23, 2019
651d271
Update HealthOnboarding.md
r-dilip Apr 23, 2019
ef64af0
Update HealthOnboarding.md
r-dilip Apr 23, 2019
b15fe92
Update HealthOnboarding.md
r-dilip Apr 23, 2019
5332ff0
Update HealthOnboarding.md
r-dilip Apr 23, 2019
584d922
Update HealthOnboarding.md
r-dilip Apr 23, 2019
4186c9c
Integrating telegraf changes
r-dilip Apr 26, 2019
09ca730
Integrate telegraf changes
r-dilip Apr 26, 2019
3f00b86
Fix a bug in the script
r-dilip Apr 26, 2019
444a23b
Merge from ci_feature
r-dilip Jun 18, 2019
5a5882e
Merge remote-tracking branch 'origin/dilipr/onboardHealth' into dilip…
r-dilip Jun 18, 2019
cfb0a6d
Updating template
r-dilip Jun 25, 2019
49c858a
updating agent onboarding script
r-dilip Jun 25, 2019
91a79f1
Updating image name
r-dilip Jun 27, 2019
68b31ba
AKS Engine Template
r-dilip Jun 27, 2019
7a80b1e
Added AKS Engine Onboarding steps
r-dilip Jun 27, 2019
a462aef
Fix Links
r-dilip Jun 27, 2019
b553bce
Minor Update
r-dilip Jun 27, 2019
059f237
Update HealthOnboarding.md
r-dilip Jul 1, 2019
7b6c550
Update HealthOnboarding.md
r-dilip Jul 1, 2019
2292298
Create optouttemplate.json
r-dilip Jul 1, 2019
e4b6189
Update optouttemplate.json
r-dilip Jul 1, 2019
bacd58c
update optouttemplate
r-dilip Jul 1, 2019
ee36ca3
Update optouttemplate.json
r-dilip Jul 1, 2019
e0a4fa6
update optouttemplate
r-dilip Jul 1, 2019
0bb250e
Merge branch 'dilipr/kubeHealth' of github.com:Microsoft/OMS-docker i…
r-dilip Jul 1, 2019
3d2d456
Update optouttemplate.json
r-dilip Jul 1, 2019
e5b9ac8
Update optouttemplate.json
r-dilip Jul 1, 2019
d8dc4da
Update optouttemplate.json
r-dilip Jul 1, 2019
34c36cd
Updatr
r-dilip Jul 1, 2019
709f993
Update HealthOnboarding.md
r-dilip Jul 1, 2019
e98dcd0
Update HealthOnboarding.md
r-dilip Jul 1, 2019
b4c1098
Update HealthOnboarding.md
r-dilip Jul 1, 2019
af603c6
Update HealthOnboarding.md
r-dilip Jul 1, 2019
ad8a5d5
Update HealthOnboarding.md
r-dilip Jul 1, 2019
cf2d2ba
Fix issue where cluster and workspace are in different
r-dilip Jul 1, 2019
00d240e
Merge branch 'dilipr/kubeHealth' of github.com:Microsoft/OMS-docker i…
r-dilip Jul 1, 2019
8c3939f
Update HealthOnboarding.md
r-dilip Jul 1, 2019
71bcd4c
Update HealthOnboarding.md
r-dilip Jul 1, 2019
78cdbda
Update HealthOnboarding.md
r-dilip Jul 1, 2019
95f8caa
Update HealthOnboarding.md
r-dilip Jul 1, 2019
4d867fe
A few changes based on Feedback
r-dilip Jul 3, 2019
2e9e56b
Merge branch 'dilipr/kubeHealth' of github.com:Microsoft/OMS-docker i…
r-dilip Jul 3, 2019
c0fec92
Update HealthOnboarding.md
r-dilip Jul 3, 2019
e584bf6
Update HealthOnboarding.md
r-dilip Jul 4, 2019
1b78f9d
Update HealthOnboarding.md
r-dilip Jul 5, 2019
e78c7cd
updating agent version with bug fix
r-dilip Jul 18, 2019
b968f5c
merged markdown file
r-dilip Jul 18, 2019
389bd02
Making changes to work in Azure CloudShell PowerShell
r-dilip Jul 25, 2019
db3f461
Preliminary merge
r-dilip Jul 30, 2019
5f39989
Update path, and finish merge from ci_feature
r-dilip Aug 1, 2019
09e01fd
Fixing agent version and docker version
r-dilip Aug 1, 2019
3d9d24b
Change pull policy to always for private preview
r-dilip Aug 7, 2019
b56a1cb
Add sleep before kubectl apply
r-dilip Aug 7, 2019
67caad8
Update HealthAgentOnboarding.ps1
r-dilip Aug 16, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions Kubernetes/omsagent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,14 @@ data:
log_level debug
</source>

#Kubernetes health
<source>
type kubehealth
tag oms.api.KubeHealth.AgentCollectionTime
run_interval 60s
log_level debug
</source>

#cadvisor perf- Windows nodes
<source>
type wincadvisorperf
Expand Down Expand Up @@ -247,6 +255,18 @@ data:
max_retry_wait 9m
retry_mdm_post_wait_minutes 60
</match>

<match oms.api.KubeHealth.AgentCollectionTime**>
type out_oms_api
log_level debug
buffer_chunk_limit 10m
buffer_type file
buffer_path %STATE_DIR_WS%/out_oms_api_kubehealth*.buffer
buffer_queue_limit 10
flush_interval 20s
retry_limit 10
retry_wait 30s
</match>
metadata:
name: omsagent-rs-config
namespace: kube-system
Expand All @@ -259,8 +279,8 @@ metadata:
type: Opaque
data:
#BASE64 ENCODED (Both WSID & KEY) INSIDE DOUBLE QUOTE ("")
WSID: "WSID"
KEY: "KEY"
WSID: "VALUE_WSID"
KEY: "VALUE_KEY"
---
apiVersion: extensions/v1beta1
kind: DaemonSet
Expand Down Expand Up @@ -291,13 +311,13 @@ spec:
cpu: 50m
memory: 150Mi
env:
#- name: AKS_RESOURCE_ID
# value: "VALUE_AKS_RESOURCE_ID_VALUE"
#- name: AKS_REGION
# value: "VALUE_AKS_RESOURCE_REGION_VALUE"
- name: AKS_RESOURCE_ID
Copy link
Member

@vishiy vishiy Aug 5, 2019

Choose a reason for hiding this comment

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

why are you changing defaults?

value: "VALUE_AKS_RESOURCE_ID_VALUE"
- name: AKS_REGION
value: "VALUE_AKS_REGION_VALUE"
#Uncomment below two lines for ACS clusters and set the cluster names manually. Also comment out the above two lines for ACS clusters
- name: ACS_RESOURCE_NAME
value: "my_acs_cluster_name"
#- name: ACS_RESOURCE_NAME
#value: "my_acs_cluster_name"
- name: DISABLE_KUBE_SYSTEM_LOG_COLLECTION
Copy link
Member

Choose a reason for hiding this comment

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

this has been removed in the last release. This looks like a bad merge...

value: "true"
- name: CONTROLLER_TYPE
Expand Down
2 changes: 1 addition & 1 deletion ci_feature/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ com.microsoft.product="OMS Container Docker Provider" \
com.microsoft.version="2.0.0-7"
ENV tmpdir /opt
ENV APPLICATIONINSIGHTS_AUTH OTQzNWI0M2YtOTdkNS00ZGVkLThkOTAtYjA0Nzk1OGU2ZTg3
ENV AGENT_VERSION ciprod03122019
ENV AGENT_VERSION healthpreview04122019-1
ENV AZMON_COLLECT_ENV False
RUN /usr/bin/apt-get update && /usr/bin/apt-get install -y libc-bin wget openssl curl sudo python-ctypes sysv-rc net-tools rsyslog cron vim dmidecode apt-transport-https && rm -rf /var/lib/apt/lists/*
COPY setup.sh main.sh $tmpdir/
Expand Down
6 changes: 2 additions & 4 deletions ci_feature/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8

wget https://dockerprovider.blob.core.windows.net/omsagent/omsagent-1.8.1-422.universal.x64.sh
wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_v1.8.1.256/omsagent-1.8.1-256.universal.x64.sh

#create file to disable omi service startup script
touch /etc/.omi_disable_service_control

#wget https://github.com/Microsoft/Docker-Provider/releases/download/hotfix-01292019/docker-cimprov-3.0.0-8.universal.x86_64.sh

wget "https://dockerprovider.blob.core.windows.net/releases/download/4.0.0-0/docker-cimprov-4.0.0-0.universal.x86_64.sh"
wget https://diliprstorage.blob.core.windows.net/mycontainer/docker-cimprov-3.0.0-5.universal.x86_64.sh
Copy link
Member

Choose a reason for hiding this comment

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

can we create a release in github (against health branch) and put the bits there ? please dont ship thru private channels...


chmod 775 $TMPDIR/*.sh

Expand Down
2 changes: 1 addition & 1 deletion ci_feature_prod/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ com.microsoft.product="OMS Container Docker Provider" \
com.microsoft.version="2.0.0-3"
ENV tmpdir /opt
ENV APPLICATIONINSIGHTS_AUTH NzAwZGM5OGYtYTdhZC00NThkLWI5NWMtMjA3ZjM3NmM3YmRi
ENV AGENT_VERSION ciprod03122019
ENV AGENT_VERSION healthpreview04122019-1
ENV AZMON_COLLECT_ENV False
RUN /usr/bin/apt-get update && /usr/bin/apt-get install -y libc-bin wget openssl curl sudo python-ctypes sysv-rc net-tools rsyslog cron vim dmidecode apt-transport-https && rm -rf /var/lib/apt/lists/*
COPY setup.sh main.sh $tmpdir/
Expand Down
4 changes: 2 additions & 2 deletions ci_feature_prod/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure --frontend=noninteractive locales && \
update-locale LANG=en_US.UTF-8

wget https://dockerprovider.blob.core.windows.net/omsagent/omsagent-1.8.1-416.universal.x64.sh
wget https://github.com/Microsoft/OMS-Agent-for-Linux/releases/download/OMSAgent_v1.8.1.256/omsagent-1.8.1-256.universal.x64.sh

#create file to disable omi service startup script
touch /etc/.omi_disable_service_control

wget "https://github.com/Microsoft/Docker-Provider/releases/download/4.0.0-0/docker-cimprov-4.0.0-0.universal.x86_64.sh"
wget https://diliprstorage.blob.core.windows.net/mycontainer/docker-cimprov-3.0.0-5.universal.x86_64.sh
Copy link
Member

Choose a reason for hiding this comment

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

can we change the version from 3.0.0.5 (which is last released version) to a different version please ?


chmod 775 $TMPDIR/*.sh

Expand Down