Skip to content

Commit 1b9b646

Browse files
committed
Changed url to get metrics json and fixed build issue.
1 parent b6a58f8 commit 1b9b646

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

build.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
<property name="sdk.jar" value="${lib.dir}/metrics_publish-2.0.1.jar" />
2121

2222
<path id="classpath">
23-
<pathelement location="${sdk.jar}" />
23+
<fileset dir="${lib.dir}">
24+
<include name="**/*.jar"/>
25+
</fileset>
2426
</path>
2527

2628
<target name="clean">

lib/metrics_publish-2.0.0.jar

-762 KB
Binary file not shown.

src/com/objectedge/newrelic/MonitoringAgent.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class MonitoringAgent extends Agent {
3131
private static final String VERSION = "1.0.0";
3232

3333
private static final String HTTP = "http";
34-
private static final String ATG_INSTANCE_URL = "/AtgStatisticsEngine/index.jsp";
34+
private static final String ATG_INSTANCE_URL = "/oe-diagnostics/rest/api/metrics/get";
3535

3636
private String name;
3737
private URL url;
@@ -73,7 +73,6 @@ public String getAgentName() {
7373
return name;
7474
}
7575

76-
// @SuppressWarnings("unchecked")
7776
@Override
7877
public void pollCycle() {
7978
try {

0 commit comments

Comments
 (0)