Skip to content

Commit 01d6df1

Browse files
committed
edit pass: app-articles-batch-14
1 parent d78544d commit 01d6df1

File tree

3 files changed

+116
-130
lines changed

3 files changed

+116
-130
lines changed
Lines changed: 48 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Automate Azure Application Insights processes by using Logic Apps
2+
title: Automate Application Insights processes by using Logic Apps
33
description: Learn how you can quickly automate repeatable processes by adding the Application Insights connector to your logic app.
44
ms.topic: conceptual
55
ms.date: 07/31/2022
@@ -10,63 +10,64 @@ ms.reviewer: yossi-y
1010

1111
# Automate Application Insights processes by using Logic Apps
1212

13-
Do you find yourself repeatedly running the same queries on your telemetry data to check whether your service is functioning properly? Are you looking to automate these queries for finding trends and anomalies and then build your own workflows around them? The Azure Application Insights connector for Logic Apps is the right tool for this purpose.
13+
Do you find yourself repeatedly running the same queries on your telemetry data to check whether your service is functioning properly? Are you looking to automate these queries for finding trends and anomalies and then build your own workflows around them? The Application Insights connector for Azure Logic Apps is the right tool for this purpose.
1414

1515
> [!NOTE]
16-
> The Azure Application Insights connector has been replaced by the [Azure Monitor connector](../logs/logicapp-flow-connector.md), which is integrated with Azure Active Directory instead of requiring an API key and also allows you to retrieve data from a Log Analytics workspace.
16+
> The Application Insights connector has been replaced by the [Azure Monitor connector](../logs/logicapp-flow-connector.md). It's integrated with Azure Active Directory instead of requiring an API key. You can also use it to retrieve data from a Log Analytics workspace.
1717
18-
With this integration, you can automate numerous processes without writing a single line of code. You can create a logic app with the Application Insights connector to quickly automate any Application Insights process.
18+
With this integration, you can automate numerous processes without writing a single line of code. You can create a logic app with the Application Insights connector to quickly automate any Application Insights process.
1919

20-
You can also add other actions. The Logic Apps feature of Azure App Service makes hundreds of actions available. For example, by using a logic app, you can automatically send an email notification or create a bug in Azure DevOps. You can also use one of the many available [templates](../../logic-apps/logic-apps-create-logic-apps-from-templates.md) to help speed up the process of creating your logic app.
20+
You can also add other actions. The Logic Apps feature of Azure App Service makes hundreds of actions available. For example, by using a logic app, you can automatically send an email notification or create a bug in Azure DevOps. You can also use one of the many available [templates](../../logic-apps/logic-apps-create-logic-apps-from-templates.md) to help speed up the process of creating your logic app.
2121

2222
## Create a logic app for Application Insights
2323

24-
In this tutorial, you learn how to create a logic app that uses the Analytics autocluster algorithm to group attributes in the data for a web application. The flow automatically sends the results by email, just one example of how you can use Application Insights Analytics and Logic Apps together.
24+
In this tutorial, you learn how to create a logic app that uses the Analytics autocluster algorithm to group attributes in the data for a web application. The flow automatically sends the results by email. This example shows how you can use Application Insights Analytics and Logic Apps together.
2525

26-
### Step 1: Create a logic app
26+
### Create a logic app
2727
1. Sign in to the [Azure portal](https://portal.azure.com).
28-
1. Select **Create a resource** > **Web + Mobile** > **Logic App**.
28+
1. Select **Create a resource** > **Web** > **Logic App**.
2929

3030
![Screenshot that shows the New logic app window.](./media/automate-with-logic-apps/1createlogicapp.png)
3131

32-
### Step 2: Create a trigger for your logic app
32+
### Create a trigger for your logic app
3333
1. In the **Logic Apps Designer** window, under **Start with a common trigger**, select **Recurrence**.
3434

35-
![Screenshot that shows the Logic App Designer window.](./media/automate-with-logic-apps/2logicappdesigner.png)
35+
![Screenshot that shows the Logic Apps Designer window.](./media/automate-with-logic-apps/2logicappdesigner.png)
3636

37-
1. In the **Interval** box, type **1** and then,**Frequency** box, select **Day**.
37+
1. In the **Interval** box, enter **1**. In the **Frequency** box, select **Day**.
3838

39-
![Screenshot that shows the Logic Apps Designer "Recurrence" window.](./media/automate-with-logic-apps/3recurrence.png)
39+
![Screenshot that shows the Logic Apps Designer Recurrence window.](./media/automate-with-logic-apps/3recurrence.png)
40+
41+
### Add an Application Insights action
4042

41-
### Step 3: Add an Application Insights action
4243
1. Select **New step**.
4344

44-
1. In the **Choose an action** search box, type **Azure Application Insights**.
45+
1. In the **Choose an action** search box, enter **Application Insights**.
46+
47+
1. Under **Actions**, select **Visualize Analytics query - Azure Application Insights**.
4548

46-
1. Under **Actions**, select **Azure Application Insights - Visualize Analytics query**.
49+
![Screenshot that shows the Logic App Designer Choose an action window.](./media/automate-with-logic-apps/4visualize.png)
4750

48-
![Screenshot that shows the Logic App Designer "Choose an action" window.](./media/automate-with-logic-apps/4visualize.png)
51+
### Connect to an Application Insights resource
4952

50-
### Step 4: Connect to an Application Insights resource
53+
For this step, you need an application ID and an API key for your resource.
5154

52-
To complete this step, you need an application ID and an API key for your resource:
55+
1. Select **API Access** > **Create API key**.
5356

54-
1. Select **API access** > **Create API key**:
57+
![Screenshot that shows the API Access page in the Azure portal with the Create API key button selected.](./media/automate-with-logic-apps/5apiaccess.png)
5558

56-
![Screenshot shows the API Access page in the Azure portal with the Create API key button selected.](./media/automate-with-logic-apps/5apiaccess.png)
57-
5859
![Screenshot that shows the Application ID in the Azure portal.](./media/automate-with-logic-apps/6apikey.png)
5960

6061
1. Provide a name for your connection, the application ID, and the API key.
6162

6263
![Screenshot that shows the Logic App Designer flow connection window.](./media/automate-with-logic-apps/7connection.png)
6364

64-
### Step 5: Specify the Analytics query and chart type
65-
In the following example, the query selects the failed requests within the last day and correlates them with exceptions that occurred as part of the operation. Analytics correlates the failed requests, based on the operation_Id identifier. The query then segments the results by using the autocluster algorithm.
65+
### Specify the Analytics query and chart type
66+
In the following example, the query selects the failed requests within the last day and correlates them with exceptions that occurred as part of the operation. Analytics correlates the failed requests based on the `operation_Id` identifier. The query then segments the results by using the autocluster algorithm.
6667

67-
When you create your own queries, verify that they're working properly in Analytics before you add it to your flow.
68+
When you create your own queries, verify that they're working properly in Analytics before you add them to your flow.
6869

69-
1. In the **Query** box, add the following Analytics query:
70+
1. In the **Query** box, add the following Log Analytics query:
7071

7172
```
7273
requests
@@ -83,59 +84,51 @@ When you create your own queries, verify that they're working properly in Analyt
8384
8485
![Screenshot that shows the Analytics query configuration window.](./media/automate-with-logic-apps/8query.png)
8586
86-
### Step 6: Configure the logic app to send email
87+
### Configure the logic app to send email
8788
8889
1. Select **New step**.
8990
90-
1. In the search box, type **Office 365 Outlook**.
91+
1. In the search box, enter **Office 365 Outlook**.
9192
92-
1. Select **Office 365 Outlook - Send an email**.
93+
1. Select **Send an email - Office 365 Outlook**.
9394
9495
![Screenshot that shows the Send an email button on the Office 365 Outlook screen.](./media/automate-with-logic-apps/9sendemail.png)
9596
9697
1. In the **Send an email** window:
9798
98-
a. Type the email address of the recipient.
99-
100-
b. Type a subject for the email.
101-
102-
c. Select anywhere in the **Body** box and then, on the dynamic content menu that opens at the right, select **Body**.
103-
104-
d. Select the **Add new parameter** dropdown and select Attachments and Is HTML.
99+
1. Enter the email address of the recipient.
100+
1. Enter a subject for the email.
101+
1. Select anywhere in the **Body** box. On the **Dynamic content** menu that opens at the right, select **Body**.
102+
1. Select the **Add new parameter** dropdown list and select **Attachments** and **Is HTML**.
105103
106104
![Screenshot that shows the Send an email window with the Body box highlighted and the Dynamic content menu with Body highlighted on the right side.](./media/automate-with-logic-apps/10emailbody.png)
107105
108-
![Screenshot that shows the Add new parameter dropdown in the Send an email window with the Attachments and Is HTML checkboxes selected](./media/automate-with-logic-apps/11emailparameter.png)
109-
110-
1. On the dynamic content menu:
106+
![Screenshot that shows the Add new parameter dropdown list in the Send an email window with the Attachments and Is HTML checkboxes selected.](./media/automate-with-logic-apps/11emailparameter.png)
111107
112-
a. Select **Attachment Name**.
108+
1. On the **Dynamic content** menu:
113109
114-
b. Select **Attachment Content**.
115-
116-
c. In the **Is HTML** box, select **Yes**.
110+
1. Select **Attachment Name**.
111+
1. Select **Attachment Content**.
112+
1. In the **Is HTML** box, select **Yes**.
117113
118-
![Screenshot that shows the Office 365 email configuration screen.](./media/automate-with-logic-apps/12emailattachment.png)
114+
![Screenshot that shows the Office 365 email configuration screen.](./media/automate-with-logic-apps/12emailattachment.png)
119115
120-
### Step 7: Save and test your logic app
116+
### Save and test your logic app
121117
122118
1. Select **Save** to save your changes.
123119
124120
You can wait for the trigger to run the logic app, or you can run the logic app immediately by selecting **Run**.
125-
126-
![Screenshot that shows the Save button on the Logic Apps Designer screen](./media/automate-with-logic-apps/13save.png)
127-
128-
When your logic app runs, the recipients you specified in the email list will receive an email that looks like this:
129-
130-
![Image showing email message generated by logic app with query result set](./media/automate-with-logic-apps/email-generated-by-logic-app-generated-email.png)
121+
122+
![Screenshot that shows the Save button on the Logic Apps Designer screen.](./media/automate-with-logic-apps/13save.png)
123+
124+
When your logic app runs, the recipients you specified in the email list will receive an email that looks like this example:
125+
126+
![Image that shows an email message generated by a logic app with a query result set.](./media/automate-with-logic-apps/email-generated-by-logic-app-generated-email.png)
131127
132128
> [!NOTE]
133-
> The log app generates an email with a JPG file that depicts the query result set. If your query doesn't return results, the logic app won't create a JPG file.
134-
129+
> The log app generates an email with a JPG file that depicts the query result set. If your query doesn't return results, the logic app won't create a JPG file.
130+
135131
## Next steps
136132
137133
- Learn more about creating [Analytics queries](../logs/get-started-queries.md).
138134
- Learn more about [Logic Apps](../../logic-apps/logic-apps-overview.md).
139-
140-
141-

articles/azure-monitor/app/java-standalone-arguments.md

Lines changed: 34 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,57 @@
11
---
2-
title: Adding the JVM arg - Azure Monitor Application Insights for Java
3-
description: How to add the JVM arg that enables Azure Monitor Application Insights for Java
2+
title: Add the JVM arg - Azure Monitor Application Insights for Java
3+
description: Learn how to add the JVM arg that enables Azure Monitor Application Insights for Java.
44
ms.topic: conceptual
55
ms.date: 12/14/2022
66
ms.devlang: java
77
ms.custom: devx-track-java
88
ms.reviewer: mmcc
99
---
1010

11-
# Tips for updating your JVM args - Azure Monitor Application Insights for Java
11+
# Tips for updating your JVM args: Azure Monitor Application Insights for Java
1212

1313
## Azure App Services
1414

15-
See [Application Monitoring for Azure App Service and Java](./azure-web-apps-java.md).
15+
For more information, see [Application monitoring for Azure App Service and Java](./azure-web-apps-java.md).
1616

1717
## Azure Functions
1818

19-
See [Monitoring Azure Functions with Azure Monitor Application Insights](./monitor-functions.md#distributed-tracing-for-java-applications-public-preview).
19+
For more information, see [Monitoring Azure Functions with Azure Monitor Application Insights](./monitor-functions.md#distributed-tracing-for-java-applications-public-preview).
2020

2121
## Spring Boot
2222

23-
Read the Spring Boot documentation [here](../app/java-in-process-agent.md).
23+
Read the Spring Boot documentation [on this website](../app/java-in-process-agent.md).
2424

2525
## Third-party container images
2626

27-
If you are using a third-party container image which you cannot modify, mount the Application Insights Java agent jar
28-
into the container from outside, and set the environment variable for the container
27+
If you're using a third-party container image that you can't modify, mount the Application Insights Java agent jar into the container from outside. Set the environment variable for the container
2928
`JAVA_TOOL_OPTIONS=-javaagent:/path/to/applicationinsights-agent.jar`.
3029

3130
## Tomcat 8 (Linux)
3231

33-
### Tomcat installed via `apt-get` or `yum`
32+
### Tomcat installed via apt-get or yum
3433

35-
If you installed Tomcat via `apt-get` or `yum`, then you should have a file `/etc/tomcat8/tomcat8.conf`. Add this line to the end of that file:
34+
If you installed Tomcat via `apt-get` or `yum`, you should have a file `/etc/tomcat8/tomcat8.conf`. Add this line to the end of that file:
3635

3736
```
3837
JAVA_OPTS="$JAVA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.7.jar"
3938
```
4039

4140
### Tomcat installed via download and unzip
4241

43-
If you installed Tomcat via download and unzip from [https://tomcat.apache.org](https://tomcat.apache.org), then you should have a file `<tomcat>/bin/catalina.sh`. Create a new file in the same directory named `<tomcat>/bin/setenv.sh` with the following content:
42+
If you installed Tomcat via download and unzip from [https://tomcat.apache.org](https://tomcat.apache.org), you should have a file `<tomcat>/bin/catalina.sh`. Create a new file in the same directory named `<tomcat>/bin/setenv.sh` with the following content:
4443

4544
```
4645
CATALINA_OPTS="$CATALINA_OPTS -javaagent:path/to/applicationinsights-agent-3.4.7.jar"
4746
```
4847

49-
If the file `<tomcat>/bin/setenv.sh` already exists, then modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to `CATALINA_OPTS`.
50-
48+
If the file `<tomcat>/bin/setenv.sh` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to `CATALINA_OPTS`.
5149

5250
## Tomcat 8 (Windows)
5351

54-
### Running Tomcat from the command line
52+
### Run Tomcat from the command line
5553

56-
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
54+
Locate the file `<tomcat>/bin/catalina.bat`. Create a new file in the same directory named `<tomcat>/bin/setenv.bat` with the following content:
5755

5856
```
5957
set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.7.jar
@@ -65,12 +63,11 @@ Quotes aren't necessary, but if you want to include them, the proper placement i
6563
set "CATALINA_OPTS=%CATALINA_OPTS% -javaagent:path/to/applicationinsights-agent-3.4.7.jar"
6664
```
6765

68-
If the file `<tomcat>/bin/setenv.bat` already exists, just modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to `CATALINA_OPTS`.
69-
70-
### Running Tomcat as a Windows service
66+
If the file `<tomcat>/bin/setenv.bat` already exists, modify that file and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to `CATALINA_OPTS`.
7167

72-
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to the `Java Options` under the `Java` tab.
68+
### Run Tomcat as a Windows service
7369

70+
Locate the file `<tomcat>/bin/tomcat8w.exe`. Run that executable and add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to the `Java Options` under the `Java` tab.
7471

7572
## JBoss EAP 7
7673

@@ -126,19 +123,17 @@ If you're running multiple managed servers on a single host, you'll need to add
126123
...
127124
```
128125

129-
The specified `applicationinsights.agent.id` value must be unique. It's used to create a subdirectory under the application insights directory, as each JVM process needs its own local application insights config and local application insights log file. Also, if reporting to the central collector, the `applicationinsights.properties` file is shared by the multiple managed servers, and so the specified `applicationinsights.agent.id` is needed to override the `agent.id` setting in that shared file. `applicationinsights.agent.rollup.id` can be similarly specified in the server's `system-properties` if you need to override the `agent.rollup.id` setting per managed server.
130-
126+
The specified `applicationinsights.agent.id` value must be unique. It's used to create a subdirectory under the Application Insights directory. Each JVM process needs its own local Application Insights config and local Application Insights log file. Also, if reporting to the central collector, the `applicationinsights.properties` file is shared by the multiple managed servers, so the specified `applicationinsights.agent.id` is needed to override the `agent.id` setting in that shared file. The `applicationinsights.agent.rollup.id` can be similarly specified in the server's `system-properties` if you need to override the `agent.rollup.id` setting per managed server.
131127

132128
## Jetty 9
133129

134-
Add these lines to `start.ini`
130+
Add these lines to `start.ini`:
135131

136132
```
137133
--exec
138134
-javaagent:path/to/applicationinsights-agent-3.4.7.jar
139135
```
140136

141-
142137
## Payara 5
143138

144139
Add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to the existing `jvm-options` in `glassfish/domains/domain1/config/domain.xml`:
@@ -157,22 +152,25 @@ Add `-javaagent:path/to/applicationinsights-agent-3.4.7.jar` to the existing `jv
157152

158153
## WebSphere 8
159154

160-
Open Management Console
161-
Go to **servers > WebSphere application servers > Application servers**, choose the appropriate application servers and select:
162-
163-
```
164-
Java and Process Management > Process definition > Java Virtual Machine
165-
```
166-
In "Generic JVM arguments" add the following JVM argument:
167-
```
168-
-javaagent:path/to/applicationinsights-agent-3.4.7.jar
169-
```
170-
After that, save and restart the application server.
171-
155+
1. Open Management Console.
156+
1. Go to **Servers** > **WebSphere application servers** > **Application servers**. Choose the appropriate application servers and select:
157+
158+
```
159+
Java and Process Management > Process definition > Java Virtual Machine
160+
```
161+
162+
1. In `Generic JVM arguments`, add the following JVM argument:
163+
164+
```
165+
-javaagent:path/to/applicationinsights-agent-3.4.7.jar
166+
```
167+
168+
1. Save and restart the application server.
172169
173170
## OpenLiberty 18
174171
175-
Create a new file `jvm.options` in the server directory (for example `<openliberty>/usr/servers/defaultServer`), and add this line:
172+
Create a new file `jvm.options` in the server directory (for example, `<openliberty>/usr/servers/defaultServer`), and add this line:
173+
176174
```
177175
-javaagent:path/to/applicationinsights-agent-3.4.7.jar
178176
```

0 commit comments

Comments
 (0)