Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit fddd7db

Browse files
authored
Merge pull request #373 from micgibso/master
Update app metrics to metrics dashboard
2 parents b2e366f + d13a240 commit fddd7db

File tree

5 files changed

+31
-32
lines changed

5 files changed

+31
-32
lines changed

docs/_data/docstoc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878

7979
- title: 'Performance monitoring'
8080
children:
81-
- title: 'Understanding Application Metrics'
82-
url: 'appmetrics.html'
81+
- title: 'Understanding the Metrics Dashboard'
82+
url: 'metrics-dashboard.html'
8383
- title: 'Monitoring applications with the performance dashboard'
8484
url: performance.html
8585

docs/_documentations/checkingstatuses.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ order: 7
1212

1313
# Checking the application and build statuses
1414

15-
Builds automatically begin when Codewind detects changes or when a build is initiated by pressing the Build button on a project.
15+
Builds automatically begin when Codewind detects changes or when a build is initiated by clicking the **Build** button on a project.
1616

1717
## Application status
1818

@@ -26,7 +26,7 @@ The application status shows the current state of your application.
2626
* To disable a project, navigate to the *Project Overview* page and click the *Disable project* button to stop the application and build containers to save resources.
2727

2828
Troubleshooting the application status
29-
* If your application goes into the **Stopped** state unexpectedly or stays in the **Starting** state longer than expected, check the application logs to see whether something went wrong. Problems with the application build or server configuration can make the application fail to start and create errors in the **Build logs** or **App logs**.
29+
* If your application goes into the **Stopped** state unexpectedly or stays in the **Starting** state longer than expected, check the application logs to see whether something went wrong. Problems with the application build or server configuration can make the application fail to start and create errors in the log files.
3030
* Even without errors, the **Stopped** state can occur if the context root of the application is unreachable.
3131

3232
## Build status
Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11
---
22
layout: docs
3-
title: Understanding Application Metrics
4-
description: Understanding Application Metrics
3+
title: Understanding the Metrics Dashboard
4+
description: Understanding the Metrics Dashboard
55
keywords: import, help, metrics, Swift, Node.js, Java, performance monitoring, app monitor, dashboard, CPU, HTTP incoming requests, memory, HTTP throughput, Heap, HTTP outbound requests, loop times, other requests, run load, HTTP Requests, environment, resource usage, profiling, enabling, graph
66
duration: 1 minute
7-
permalink: appmetrics
7+
permalink: metrics-dashboard
88
type: document
99
parent:
1010
order:
1111
---
1212

13-
# Understanding Application Metrics
13+
# Understanding the Metrics Dashboard
1414

15-
## What is Application Metrics?
15+
## What is the Metrics Dashboard?
1616

17-
Application Metrics instruments Java, Node.js, and Swift runtimes for performance monitoring and provides the monitoring data through an API. You can also visualize data with the Application Metrics Dashboard. For more information, see [Application Metrics on GitHub](https://github.com/RuntimeTools/appmetrics).
17+
Application Metrics instruments Java, Node.js, and Swift runtimes for performance monitoring and provides the monitoring data through an API. The Metrics Dashboard is a method for you to visualize this data.
1818

19-
## Application Metrics types
19+
## Metrics Dashboard types
2020

21-
Application Metrics is available in Java, Node.js, and Swift. You can monitor the projects that you create in these languages.
21+
The Metrics Dashboard is available for Java, Node.js, and Swift. You can monitor the projects that you create in these languages.
2222
* [Application Metrics for Java](https://developer.ibm.com/javasdk/application-metrics-java/)
2323
* [Application Metrics for Node.js](https://developer.ibm.com/node/monitoring-post-mortem/application-metrics-node-js/)
2424
* [Application Metrics for Swift](https://developer.ibm.com/swift/monitoring-diagnostics/application-metrics-for-swift/)
2525

26-
## Accessing Application Metrics
26+
## Accessing the Metrics Dashboard
2727

28-
Click **App monitor** in the Codewind project to access Application Metrics. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
28+
Click **Metrics Dashboard** in the Codewind project to access the Metrics Dashboard. Toggle between the **Dashboard** and **Summary** tabs. If you have a Node.js project, you can also access the **Profiling** tab.
2929

3030
## Enabling Application Metrics
3131

@@ -43,39 +43,38 @@ View these metrics to learn if your application is performing as intended. An ap
4343
* **Loop Times:** This graph indicates how fast a Node.js project is processing through an event loop.
4444
* **Other Requests:** This graph indicates the Socket.IO and other requests that the application processes.
4545

46-
## Clicking the **Run load** button
47-
48-
Click the **Run load** button to run load your microservice. This button pings endpoints by using the Codewind load runner service.
49-
5046
## Viewing metrics information in the **Summary** tab
5147

5248
View a summary of the information from the performance metrics graphs that you saw in the **Dashboard** tab.
5349
* **HTTP Requests:** This table displays how many times an endpoint is hit. If you repeatedly run a test while making code changes, you can see how the code changes are impacting application performance.
5450
* **Environment:** This table shows information about the environment you're running, such as the OS architecture and the number of processors you have. Having this information can make troubleshooting easier if you need to contact support and provide it.
55-
* **Resource usage:** This table shows the **Average Process CPU**, which shows what Codewind is doing, and the **Average System CPU**, which shows what the environment as a whole is doing. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
51+
* **Resource Usage:** This table shows the **Average Process CPU**, which shows what the application is using, and the **Average System CPU**, which shows what the environment as a whole is using. This information can help determine whether application issues are caused by something else in the environment that is external to the application.
52+
53+
![image of viewing metrics](dist/images/performanceguide/viewing_metrics.png)
5654

5755
## Viewing the graph in the **Profiling** tab
5856

5957
The **Profiling** tab is available only in Node.js projects. This tab pulls information from the CPU metric in the **Dashboard** tab. CPU cycles are caused by an execution of code. Receiving an endpoint doesn't cause many CPU cycles, but receiving an incoming payload can. Profiling shows you what occurs when a spike appears in the CPU metric. Each spike on the flame graph shows a call stack in the path. The width of a spike indicates how much time the CPU spends on a function. Wide spikes indicate that your CPU spends much time on a particular function and where you might want change the code to optimize it.
6058

61-
## Profiling Data Support
59+
## Code highlighting for profiling data
6260

63-
In Theia or VS Code, you can use the Profiling Language Server to provide code highlighting. Code highlighting displays the relative time spent in JavaScript functions based on profiling data gathered through [load testing](performance). Profiling support is only available for Node.js projects that are created through Codewind and then profiled.
61+
Code highlighting for profiing data highlights the most heavily used functions based on profiling data gathered through [load testing](performance). Support for code highlighting is available for Node.js or Java projects that are created through Codewind and then profiled.
62+
63+
To enable code hightlighting, you must install the appropriate VS Code extension:
64+
- For Node apps, install the [Codewind Node Profiler](https://marketplace.visualstudio.com/items?itemName=IBM.codewind-node-profiler).
65+
- For Java apps, install the [Codewind Java Profiler](https://marketplace.visualstudio.com/items?itemName=IBM.codewind-java-profiler).
66+
67+
Java is supported however if the Metrics Dashboard does not show profiling data, use the editor plugin to display it instead.
6468

6569
- Profiling data is written to the workspace only on a successfully completed load run. If the load run is cancelled, it won't be written to the workspace.
6670
- Run the load run for a minimum of 45 seconds for enough profiling data to be gathered to generate the `profiling.json` file.
67-
- You can configure the load run time in the `config.json` file in the `load-test` directory. The default time is 2 minutes.
71+
- You can configure the load run time in the `config.json` file in the `load-test` directory. The default time is 3 minutes.
6872
- Out of all the folders that contain a `profiling.json` file, the most up-to-date `profiling.json` file is the one that is displayed. The code for the older profiling data might be out of date, such as pointing to lines that have been moved.
6973

7074
To display code highlighting:
7175
1. Open a project created with Codewind and profiled using the [performance testing](performance) feature of Codewind. Profiling data is created in a `load-test/<datestamp>/profiling.json` file in your Codewind project.
7276
2. In the **Editor** view, open a JavaScript file. The Editor highlights any lines that were found in the profiling data and annotates them to show how often they were seen and where they were called from.
7377

74-
To enable or disable the profile highlighting in the code, access the profiling in one of the following ways:
75-
- Right-click in the editor and select `Toggle Profiling`.
76-
- Open the command palette with `cmd+shift+p` on a Mac or `ctrl+shift+p` on Windows. Then, select `Profiling: Toggle Profiling`.
77-
- Toggle the `Microprofile Profiling: Show Profiling` setting in the extensions settings.
78-
7978
For more information on sample-based profiling, see [Sample-based profiling](https://www.ibm.com/support/knowledgecenter/en/SS3KLZ/com.ibm.java.diagnostics.healthcenter.doc/topics/profiling_using.html).
8079

8180
If profiling markers do not appear, check to see if your project and load run conform to the [necessary requirements to use profiling](troubleshooting#profiling-markers-do-not-appear).
@@ -92,4 +91,4 @@ After you start the load test and the test completes, view the source code. Thei
9291

9392
## Need help?
9493

95-
If you encounter problems with application metrics, check the [Troubleshooting page](troubleshooting.html#understanding-application-metrics).
94+
If you encounter problems with the Metrics Dashboard, check the [Troubleshooting page](troubleshooting.html#understanding-application-metrics).

docs/_documentations/performance.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ You will learn how to add and enable monitoring to your application. Then, you c
2020

2121
## Prerequisites
2222

23-
- VS Code or Eclipse
23+
- VS Code, Eclipse, or Eclipse Che
2424
- A Codewind installation
2525

26-
## Accessing the performance dashboard
26+
## Accessing the Performance Dashboard
2727

2828
1. From your IDE, go to the Codewind plug-in and right-click a project.
29-
2. Then, select **Open Performance Dashboard**. A window appears that displays the performance dashboard.<br>
29+
2. Then, select **Performance Dashboard**. A window appears that displays the performance dashboard.<br>
3030

3131
![performance dashboard](dist/images/performanceguide/performancedash_window.png){:height="345px" width="691px"}. <br>
3232

@@ -40,7 +40,7 @@ You will learn how to add and enable monitoring to your application. Then, you c
4040

4141
## Modifying the load test
4242

43-
1. To modify the type of load run, click **Modify Parameters**. The **Load test configuration** window appears.
43+
1. To modify the type of load run, click **Edit load run settings**. The **Load test configuration** window appears.
4444
2. You can change the following values:
4545
- **Method**: Choose a GET or POST request.
4646
- **Path**
20.2 KB
Loading

0 commit comments

Comments
 (0)