Discussion Feed
07-15-2020
10:18 AM
Hi Vikrant,
Thanks for posting in the AppDynamics Community!
Can you please open a ticket with AppDynamics support by going to www.appdynamics.com/support and clicking Support Portal? We will make sure that it gets assigned to the right team and is resolved ASAP.
Thanks,
Vishaka Sekar
revised method of opening Support ticket C. Landivar, Community Manager
... View more
02-03-2020
08:19 PM
02-03-2020
08:19 PM
For faster resolution and tracking, can you please send the attachment in an email to [Redacted]? That will ensure that the support team responds to your queries better and faster.
Thanks,
Vishaka
^ Post edited by @Ryan.Paredez to remove email from post. We suggest not sharing emails in community posts.
... View more
02-03-2020
01:54 PM
1 Kudo
02-03-2020
01:54 PM
1 Kudo
Thanks for reaching out to us. While this is an author supported extension and is not officially supported by AppDynamics, we will troubleshoot any basic machine agent configuration related issues on a best-effort basis.
To troubleshoot missing custom metrics, please go through every step in the Extensions Troubleshooting Document.
If the issues still persist, please email us at [Email redacted] with the following for us to assist you better:
1. monitor.xml (<MachineAgentHome>/monitors/<ExtensionMonitor>)
2. Controller-info.xml (<MachineAgentHome>/conf/controller-info.xml)
3. Enable Machine Agent `DEBUG` logging by changing the level values of the following logger elements from `INFO` to `DEBUG` in `<MachineAgent>/conf/logging/log4j.xml`:
<logger name="com.singularity"> <logger name="com.appdynamics">
4. After letting the Machine Agent run for 10-15 minutes, attach the complete `<MachineAgentHome>/logs/` directory.
^ Post edited by @Ryan.Paredez to redact the email. Please do not share emails publicly on posts.
... View more
09-24-2019
02:08 PM
1 Kudo
Using the jConsole utility for connectivity testing and troubleshooting
jConsole is a utility that comes with the Java Development Kit (JDK). It helps to test the connection between the extension and the JMX artifact being monitored. You can use jConsole to troubleshoot connection issues in the extension. You can also use it to configure the MBeans the extension collects.
This article walks you through using jConsole with the artifact that you want to monitor.
Prerequisite
The JDK needs to be installed on the machine where the extension is installed.
Table of Contents
How do I get started with jConsole? How do I troubleshoot JMX connection fails? How do I view and configure the JMX MBeans?
How do I get started with jConsole?
To start using jConsole with a JMX artifact, you'll need to launch jConsole, and then connect the artifact to it.
Step 1: Launch jConsole
Open a terminal from the machine where the extension is installed.
If JMX monitoring over SSL is not enabled, type jconsole in the terminal.
If you have enabled JMX monitoring via SSL on the artifact, you need to run jConsole as follows.
jconsole -J-Djavax.net.ssl.trustStore=/path/to/truststore \
-J-Djavax.net.ssl.trustStorePassword=trustword
This will open a jConsole window.
Step 2: Connect to the artifact.
On the jConsole window, select “Remote Process” .
You can enter the JMX service URL from either the config.yml or a host JMX-port pair to connect to the artifact. If you are using the JMX service URL , the format is: service:jmx:rmi:///jndi/rmi://host:JMXport/jmxrmi
jConsole Window, Remote Process, JMX service URL format
If you're choosing the host and JMX port to connect, the format of the Host JMX-port pair is <IP address of the machine on which the artifact is running>:<JMX-port> jConsole window, Remote Process, host and JMX-port pair format
For example:
34.222.32.114:9999 localhost:9999
Only provide a Username and Password if authentication is enabled on the artifact you’re installing. The JMX username and JMX password are not the same as the credentials used to connect to the artifact via REST API, terminal. If you don’t have password authentication enabled on the artifact that you’re trying to monitor, please leave the fields blank.
Click the “ Connect ” button. If monitoring via SSL is not enabled, you will see a “Secure connection failed” pop-up window. Click the "Insecure Connection " button.
If SSL monitoring is not enabled, a "Secure connection failed" pop-up window will appear. Click the "Insecure Connection" button. If the configuration is correct, the connection between the extension and the artifact will be successful, and metrics will be reported. If you see any error messages, please refer to the How do I troubleshoot JMX connection fails? section below.
Step 3: Setting up the Machine Agent after a successful jConsole Connection
If your connection was successful, you can now set up the Machine Agent.
If there is a problem with your connection, please go to How do I troubleshoot JMX connection fails? below
If you are using JMX over SSL, then you need to add the same SSL parameters to your Machine Agent startup command:
java -Djavax.net.ssl.trustStore=/path/to/truststore \ -Djavax.net.ssl.trustStorePassword=trustword <other parameters go here> -jar machine-agent.jar
How do I troubleshoot JMX connection fails?
If you see a jConsole connection failing, as shown with the “connection refused” message, it might be caused by one or more of the following reasons:
JMX monitoring is not enabled. See the extension documentation for the steps to enable JMX monitoring.
The serviceUrl may be incorrect.
The hostname/port pair may be incorrect.
SSL may be required, and the jConsole was launched in non-SSL mode.
JMX port might not be configured on the artifact.
The username or password may be incorrect.
A proxy or firewall between the machine on which jConsole was launched and the artifact may be blocking incoming JMX connections.
How do I view and configure the JMX MBeans?
Once the connection is successful (starting from the Java Monitoring and Management Console), navigate to the MBeans tab.
MBeans tab in the Java monitoring and management console
The extension is configured to fetch some metrics by default. But if you find that the metrics that you want aren’t listed in config.yml by default, you can configure config.yml to add them.
Once you have followed How do I get started with jConsole steps 1 and 2, the jConsole should be up. You should see the MBean Explorer on the left pane of the jConsole window. Each MBean has a few metrics listed underneath it: navigate through the MBeans down to the metric(s) you're interested in.
Examples of metrics you can track
As an example, let's consider using the Kafka monitoring extension to track metrics:
How do I use Kafka to see the number under-replicated partitions?
How do I use Kafka with multiple metrics under a single object?
How do I use wildcards with Kafka?
How do I use Kafka to see the number of under-replicated partitions?
You can use Kafka to see the number of UnderReplicatedPartitions in your partition.
Add the MBean in your config.yml MBeans:
<<Other MBeans>> <<add your MBean here>> <<Example of adding UnderReplicatedPartitions.Value here>> - objectName: 'kafka.server:type=ReplicaManager,name=UnderReplicatedPartitions' metrics: - Value: alias: 'Value' multiplier: '' delta: false aggregationType: 'OBSERVATION' timeRollUpType: 'CURRENT' clusterRollUpType: 'INDIVIDUAL'
How do I use Kafka with multiple metrics under a single object?
Let’s consider another case where there are multiple metrics under one object: FailedIsrUpdatesPerSec . Those metrics are listed under kafka.server -> Replica Manager ->object:FailedIsrUpdatesPerSec -> Attributes .
For example, to fetch all metrics(stats) about FailedIsrUpdatesPerSec (Count, MeanRate, OneMinuteRate, etc.), list each of them in the metrics section of the FailedIsrUpdatesPerSec. The Value metric is listed as an example.
How do I use wildcards with Kafka?
If you want to add all the MBeans under ReplicaManager, you can add a wildcard (a *) in your config.yml MBeans:
<<Other MBeans>> <<add your MBean here>> <<Example of adding UnderReplicatedPartitions.Value here>> - objectName: 'kafka.server:type=ReplicaManager,name= * ' metrics: - Value: alias: 'Value' multiplier: '' delta: false aggregationType: 'OBSERVATION' timeRollUpType: 'CURRENT' clusterRollUpType: 'INDIVIDUAL'
The extension can only collect metrics if the JMX connection is successful.
... View more
Labels:
02-25-2019
05:12 PM
1 Kudo
Hi Todd,
The pre-requisities, installation and configuration steps of the IBM MQ Monitoring extension have been listed on the Exchange Page.
You can find out how to enable debug logs and trouble missing metrics using Troubleshooting Document. If you still run into issues, please feel free to contact us at help@appdynamics.com.
Thanks,
Vishaka Sekar
... View more
Latest Activity
- Posted Re: How do I troubleshoot missing custom metrics or extensions metrics in the Controller? on Knowledge Base. 07-15-2020 10:18 AM
- Got a Kudo for Re: Monitor jboss connection pool. 02-04-2020 01:19 PM
- Posted Re: Monitor jboss connection pool on Java (Java Agent, Installation, JVM, and Controller Installation). 02-03-2020 08:19 PM
- Posted Re: Monitor jboss connection pool on Java (Java Agent, Installation, JVM, and Controller Installation). 02-03-2020 01:54 PM
- Got a Kudo for How do I use jConsole to test and troubleshoot connectivity issues?. 09-25-2019 11:10 PM
- Posted How do I use jConsole to test and troubleshoot connectivity issues? on Knowledge Base. 09-24-2019 02:08 PM
- Got a Kudo for Re: IBM MQ monitoring with AppDynamics prerequisites. 02-26-2019 08:36 AM
- Posted Re: IBM MQ monitoring with AppDynamics prerequisites on Java (Java Agent, Installation, JVM, and Controller Installation). 02-25-2019 05:12 PM
Community Stats
Date Registered | 05-31-2018 10:45 AM |
Date Last Visited | 12-11-2020 12:04 AM |
Total Messages Posted | 5 |
Total Kudos Received | 3 |