Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
add deprecation notice after installation (#1481)
Browse files Browse the repository at this point in the history
  • Loading branch information
peizhen-w authored Jul 18, 2022
1 parent af594b7 commit a7d1c7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## Overview
Welcome to the Log Analytics agent for Linux! The agent for Linux enables rich and real-time analytics for operational data (Syslog, performance, alerts, inventory) from Linux servers, Docker containers and monitoring tools like Nagios, Zabbix and System Center.

> :warning: The Log Analytics agent is on a **deprecation path** and won't be supported after **August 31, 2024.** If you use the Log Analytics agent to ingest data to Azure Monitor, make sure to  [migrate to the new Azure Monitor agent](https://docs.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-migration)  prior to that date.
>
## Quick Install guide
The following steps configure setup of the Log Analytics agent in Azure and Azure Government cloud. *Commands are for 64-bit*. Before installing the Log Analytics agent for Linux, you need the workspace ID and key for your Azure Monitor Log Analytics workspace.

Expand Down
5 changes: 5 additions & 0 deletions installer/bundle/bundle_skel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ OPENSSL_PATH="openssl"
BUNDLES_PATH="bundles"
BUNDLES_LEGACY_PATH="bundles/v1"

# OMS Deprecation notice
DEPRECATION_NOTICE="The Log Analytics agent is on a deprecation path and won't be supported after August 31, 2024. If you use the Log Analytics agent to ingest data to Azure Monitor, make sure to migrate to the new Azure Monitor agent (https://docs.microsoft.com/en-us/azure/azure-monitor/agents/azure-monitor-agent-migration) prior to that date."

usage()
{
echo "usage: $1 [OPTIONS]"
Expand Down Expand Up @@ -145,8 +148,10 @@ cleanup_and_exit()

if [ -n "$1" ]; then
echo "OMS agent shell bundle exiting with status code $1"
echo "\033[0;31m${DEPRECATION_NOTICE}\033[0m"
exit $1
else
echo "\033[0;31m${DEPRECATION_NOTICE}\033[0m"
exit 0
fi
}
Expand Down

0 comments on commit a7d1c7b

Please sign in to comment.