Skip to content

Commit 7cb7397

Browse files
authored
Gangams/azure mdsd 1.35.1 update (#1415)
* mdsd update for amaca arm64 * add giglaport option * add paths to bashrc * remove unneeded changes
1 parent 5ca7819 commit 7cb7397

File tree

4 files changed

+6
-23
lines changed

4 files changed

+6
-23
lines changed

build/linux/installer/conf/PA.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

build/linux/installer/datafiles/base_container.data

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ MAINTAINER: 'Microsoft Corporation'
4545

4646
/opt/tomlparser-geneva-config.rb; build/common/installer/scripts/tomlparser-geneva-config.rb; 755; root; root
4747

48-
/etc/opt/microsoft/azuremonitoragent/amacoreagent/PA.json; build/linux/installer/conf/PA.json; 755; root; root
49-
5048
/opt/fluent-bit-geneva-conf-customizer.rb; build/common/installer/scripts/fluent-bit-geneva-conf-customizer.rb; 755; root; root
5149
/etc/opt/microsoft/docker-cimprov/fluent-bit-input.conf; build/linux/installer/conf/fluent-bit-input.conf; 644; root; root
5250
/etc/opt/microsoft/docker-cimprov/fluent-bit-common.conf; build/linux/installer/conf/fluent-bit-common.conf; 644; root; root
@@ -194,8 +192,6 @@ MAINTAINER: 'Microsoft Corporation'
194192
/var/opt/microsoft/linuxmonagent/amaca; 755; root; root
195193
/var/opt/microsoft/linuxmonagent/amaca/log; 755; root; root
196194

197-
/etc/opt/microsoft/azuremonitoragent/amacoreagent; 755; root; root
198-
199195
/opt/fluent-bit; 755; root; root;sysdir
200196
/opt/fluent-bit/bin; 755; root; root;sysdir
201197
/etc/telegraf; 755; root; root;sysdir

kubernetes/linux/main.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ echo "startup script start @ $(date +'%Y-%m-%dT%H:%M:%S')"
88
startAMACoreAgent() {
99
echo "AMACoreAgent: Starting AMA Core Agent since High Log scale mode is enabled"
1010

11-
AMACALogFileDir="/var/opt/microsoft/linuxmonagent/amaca/log"
12-
AMACALogFilePath="$AMACALogFileDir"/amaca.log
13-
AMACAConfigFilePath="/etc/opt/microsoft/azuremonitoragent/amacoreagent"
14-
export PA_FLUENT_SOCKET_PORT=13000
11+
export AMACALogFileDir="/var/opt/microsoft/linuxmonagent/amaca/log"
12+
export AMACALogFilePath="$AMACALogFileDir"/amaca.log
1513
export PA_DATA_PORT=13000
1614
export PA_GIG_BRIDGE_MODE=true
1715
export GIG_PA_ENABLE_OPTIMIZATION=true
@@ -20,19 +18,19 @@ startAMACoreAgent() {
2018
export CounterDataReportFrequencyInMinutes=60
2119

2220
{
23-
echo "export PA_FLUENT_SOCKET_PORT=$PA_FLUENT_SOCKET_PORT"
2421
echo "export PA_DATA_PORT=$PA_DATA_PORT"
2522
echo "export PA_GIG_BRIDGE_MODE=$PA_GIG_BRIDGE_MODE"
2623
echo "export GIG_PA_ENABLE_OPTIMIZATION=$GIG_PA_ENABLE_OPTIMIZATION"
2724
echo "export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=$DOTNET_SYSTEM_GLOBALIZATION_INVARIANT"
2825
echo "export PA_CONFIG_PORT=$PA_CONFIG_PORT"
2926
echo "export CounterDataReportFrequencyInMinutes=$CounterDataReportFrequencyInMinutes"
27+
echo "export AMACALogFilePath=$AMACALogFilePath"
3028
} >> ~/.bashrc
3129

3230
source ~/.bashrc
33-
/opt/microsoft/azure-mdsd/bin/amacoreagent -c $AMACAConfigFilePath --configport $PA_CONFIG_PORT --amacalog $AMACALogFilePath > /dev/null 2>&1 &
31+
/opt/microsoft/azure-mdsd/bin/amacoreagent --configport $PA_CONFIG_PORT --amacalog $AMACALogFilePath --giglaport $PA_DATA_PORT > /dev/null 2>&1 &
3432

35-
waitforlisteneronTCPport "$PA_FLUENT_SOCKET_PORT" "$WAITTIME_PORT_13000"
33+
waitforlisteneronTCPport "$PA_DATA_PORT" "$WAITTIME_PORT_13000"
3634
waitforlisteneronTCPport "$PA_CONFIG_PORT" "$WAITTIME_PORT_12563"
3735
# Extract AMACoreAgent version from log file
3836
version=""

kubernetes/linux/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ gem uninstall stringio --version 3.0.1
5252
gem uninstall rexml --version 3.2.5
5353
gem uninstall webrick --version 1.8.1
5454

55-
sudo tdnf install -y azure-mdsd-1.31.4
55+
sudo tdnf install -y azure-mdsd-1.35.1
5656
cp -f $TMPDIR/mdsd.xml /etc/mdsd.d
5757
cp -f $TMPDIR/envmdsd /etc/mdsd.d
5858
rm /usr/sbin/telegraf

0 commit comments

Comments
 (0)