Joyent Monitoring Extension

The Joyent Monitoring Extension collects the stats from Joyent cloud provider and reports them to the AppDynamics Controller.

This extension works only with the standalone machine agent.

 

Installation

 

  1. Download the file JoyentMonitor.zip
  2. Unzip the downloaded file and cd into JoyentMonitor
  3. Open the monitor.xml file and provide values for identity, joyent_private_key and joyent_key_name
  4. Restart the Machine Agent.
  5. In the AppDynamics controller, look for events in Custom Metrics|Joyent|


 

XML Examples

 

monitor.xml

ParamDescription
identityUser name
joyent_private_keyJoyent private key
joyent_key_nameKey name which you have given in the joyent account. You can find this in Account Summary -> SSH after logging in to Joyent
<monitor>
        <name>JoyentMonitor</name>
        <type>managed</type>
        <description>Joyent monitor</description>
        <monitor-configuration></monitor-configuration>
        <monitor-run-task>
                <execution-style>periodic</execution-style>
                <execution-frequency-in-seconds>60</execution-frequency-in-seconds>
                <name>Joyent Monitor Run Task</name>
                <display-name>Joyent Monitor Task</display-name>
                <description>Joyent Monitor Task</description>
                <type>java</type>
                <execution-timeout-in-secs>60</execution-timeout-in-secs>
                <task-arguments>
                    <argument name="identity" is-required="true" default-value="abc@appdynamics.com" />
                    <argument name="joyent_private_key" is-required="true" default-value="/home/satish/AppDynamics/Joyent/appd-joyent_id_rsa" />
                    <argument name="joyent_key_name" is-required="true" default-value="test" />
           </task-arguments>
                <java-task>
                    <classpath>joyent-monitoring-extension.jar</classpath>
                    <impl-class>com.appdynamics.monitors.joyent.JoyentMonitor</impl-class>
                </java-task>
        </monitor-run-task>
</monitor>

Metrics

 

Instances

 

Metrics related to instances

 

NameDescription
Custom Metrics/Joyent/Instances/{Zone}/{Instance ID}/DiskDisk size
Custom Metrics/Joyent/Instances/{Zone}/{Instance ID}/MemoryMemory size
Custom Metrics/Joyent/Instances/{Zone}/{Instance ID}/StateState of the machine

 

Possible states

StateDesc
0Provisioning
1failed
2Running
3Stopping
4Stopped
5Deleted
6offline
7Undefined

 

Instrumentation

 

Metrics related to instrumentation. To see instrumentation metrics user should create instrumentations in Joyent portal.

NameDescription
Custom Metrics/Joyent/Instrumentation/{Module}/{Stat}/{Zone}/{UUID}Value of the instrumentation

 

Module : Name of the module
Stat : Name of the stat
Zone : Zone in which the machine resides
UUID : UUID of the machine

 

Contributing

 

Always feel free to fork and contribute any changes directly via GitHub.

 

Support

 

For any support questions, please contact help@appdynamics.com.

 

Version:

1.0.0

Compatibility:

3.7

Last Update:

5/8/2014