Skip to content

Commit 53366f4

Browse files
author
Vishaka Sekar
authored
Merge pull request #6 from Appdynamics/aws-commons-update
Aws commons update to 2.2.0
2 parents 989d9e4 + 60013dc commit 53366f4

File tree

4 files changed

+27
-12
lines changed

4 files changed

+27
-12
lines changed

CHANGELOG.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
### 2.0.2
2+
1. Updated aws-cloudwatch-exts-commons 2.0.0 to 2.2.0
3+
### 2.0.1 - March 22, 2019
4+
1. Updated the aws-cloudwatch-exts-commons to 2.0.1.1 from 2.0.0
5+
16
### 2.0.0 - August 10, 2018
27
1. Porting to aws-cloudwatch-exts-commons 2.0.1
38
2. Moved all the region-endpoints into config.yml
49
3. Covered tests
510
4. Updated readme as per the guidelines.
611

7-
### 2.0.1 - March 22, 2019
8-
1. Updated the aws-cloudwatch-exts-commons to 2.0.1.1 from 2.0.0

README.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# AWS Lambda Monitoring Extension
22

33
## Use Case
4-
AWS LAmbda Monitoring Extension captures Lambda statistics from Amazon CloudWatch and displays them in the AppDynamics Metric Browser.
4+
AWS Lambda Monitoring Extension captures Lambda statistics from Amazon CloudWatch and displays them in the AppDynamics Metric Browser.
55
**Note : By default, the Machine agent can only send a fixed number of metrics to the controller. This extension potentially reports thousands of metrics, so to change this limit, please follow the instructions mentioned [here](https://docs.appdynamics.com/display/PRO40/Metrics+Limits).**
66

77
## Prerequisites
@@ -12,8 +12,13 @@ Please give the following permissions to the account being used to with the exte
1212
**cloudwatch:GetMetricStatistics**
1313
```
1414
In order to use this extension, you do need a [Standalone JAVA Machine Agent](https://docs.appdynamics.com/display/PRO44/Standalone+Machine+Agents) or [SIM Agent](https://docs.appdynamics.com/display/PRO44/Server+Visibility). For more details on downloading these products, please visit [here](https://download.appdynamics.com/).
15-
The extension needs to be able to connect to the HAProxy in order to collect and send metrics. To do this, you will have to either establish a remote connection in between the extension and the product, or have an agent on the same machine running the product in order for the extension to collect and send the metrics.
15+
The extension needs to be able to connect to the AWS Lamda in order to collect and send metrics. To do this, you will have to either establish a remote connection in between the extension and the product, or have an agent on the same machine running the product in order for the extension to collect and send the metrics.
1616

17+
**Note : This extension is compatible with Machine Agent version 4.5.13 or later.
18+
19+
* If you are seeing warning messages while starting the Machine Agent, update the http-client and http-core JARs in {MACHINE_AGENT_HOME}/monitorsLibs to httpclient-4.5.9 and httpcore-4.4.12 to make this warning go away.
20+
* To make AWS extensions work on Machine Agent < 4.5.13:
21+
The http-client and http-core JARs in {MACHINE_AGENT_HOME}/monitorsLibs has to be manually be updated to httpclient-4.5.9 and httpcore-4.4.12
1722

1823
## Installation
1924
1. Run 'mvn clean install' from aws-lambda-monitoring-extension
@@ -215,8 +220,8 @@ Always feel free to fork and contribute any changes directly here on [GitHub](ht
215220
## Version
216221
| Name | Version |
217222
|--------------------------|------------|
218-
|Extension Version |2.0.1 |
223+
|Extension Version |2.0.2 |
219224
|Controller Compatibility |4.4 or Later|
220-
|Last Update |22nd Mar, 2019 |
221-
225+
|Agent Compatibility | 4.5.13 or later|
226+
|Last Update |04 Feb, 2020 |
222227
List of changes to this extension can be found [here](https://github.com/Appdynamics/aws-lambda-monitoring-extension/blob/master/CHANGELOG.md)

pom.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<modelVersion>4.0.0</modelVersion>
1212
<groupId>com.appdynamics.extensions</groupId>
1313
<artifactId>aws-lambda-monitoring-extension</artifactId>
14-
<version>2.0.1</version>
14+
<version>2.0.2</version>
1515
<name>AWS Lambda Monitoring Extension</name>
1616

1717
<properties>
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>com.appdynamics.extensions</groupId>
3333
<artifactId>aws-cloudwatch-exts-commons</artifactId>
34-
<version>2.0.1.1</version>
34+
<version>2.2.0</version>
3535
</dependency>
3636
<dependency>
3737
<groupId>junit</groupId>

src/main/java/com/appdynamics/extensions/aws/lambda/LambdaMonitor.java

+10-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414
import com.appdynamics.extensions.aws.metric.processors.MetricsProcessor;
1515
import org.apache.log4j.Logger;
1616

17+
import java.util.ArrayList;
18+
import java.util.HashMap;
19+
import java.util.List;
20+
import java.util.Map;
21+
1722
import static com.appdynamics.extensions.aws.Constants.METRIC_PATH_SEPARATOR;
1823

1924
/**
@@ -43,10 +48,12 @@ public String getMonitorName() {
4348
}
4449

4550
@Override
46-
protected int getTaskCount() {
47-
return 3;
51+
protected List<Map<String, ?>> getServers() {
52+
Map<String, String> serversMap = new HashMap<String, String>();
53+
List<Map<String, ?>> serversList = new ArrayList<Map<String, ?>>();
54+
serversList.add(serversMap);
55+
return serversList;
4856
}
49-
5057
@Override
5158
protected NamespaceMetricStatisticsCollector getNamespaceMetricsCollector(Configuration config) {
5259
MetricsProcessor metricsProcessor = createMetricsProcessor(config);

0 commit comments

Comments
 (0)