• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Swanand D. · Jul 07, 2015 at 01:17 AM ·

How to monitor CPU Usage, IO and memory usage of specific processes running on LINUX system ?

Hello ,

My objective is to monitor my application processes which are running on LINUX system and collect CPU Usage, IO, Memory Usage, Process ID specific to those processes .

I have followed following process:

  1. Created new UNIX Monitor though Local method and added LINUX host where my application is running.
  2. Please note that My agent, collector and application which I am monitoring are on LINUX system and server is on Windows machine.
  3. Then I have created new Metric Group Plugin  through Manage Plugin UI.
  4. And added following one metric which will collect CPU Usage for my one of the application process and added this as measure inside UNIX monitor..
  5. After that I have build that plugin and deployed it.
  6. Then I have added this Metric inside UNIX Monitor which I have created as a measure.
  7. Then I have executed following command inside LINUX system which shows CPU Usage for all processes running on that system.
  8. But after running UNIX monitor, I am not able to see any value for that newly added measure. It shows NULL value against that measure..

Do I need to add this command "pidstat" inside LinuxPlatform.java file for UNIX plugin ?

Also do I need to write source code for our newly added metric ?

Is there any documentation how to generate new metric group, metric ID  in UNIX plugin ?

 

 

 

Thanks And Regards,

Swanand S. Dande

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

3 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Kyle K. · Jul 07, 2015 at 08:39 PM

Hi Swanand,

Double check your Infrastructure dashboard as noted above. Below is a view from my system showing that we have a process instrumented on our server. Clicking into that we can see the PID by hovering over the i icon as well as a view of CPU and Heap. I will double check to see how to get that information from a monitor, andreas.grabner@dynatrace.com might be able to give you a clearer picture on some of this. I'll post a follow up based on my findings.

 

HTH,

Kyle

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Swanand D. · Jul 07, 2015 at 10:52 AM

Hello Kyle,

I agree that Dynatrace Application Monitoring collects host health for different processes by default, but as per my understanding it collects overall CPU Usage not single process CPU usage.

I want to collect performance data(CPU Usage, IO Operations., Memory Usage, PID) for single process..

EX: there are several applications running on LINUX machine.. Apache, Tomacat, Web Application, JAVA

So take an example that I want to know how much CPU Usage, IO Operations., Memory Usage, PID by Apache server.

In my case, I want to collect data for my application server related processes.

During windows performance monitoring, I could collect data specific to process through measures specific attributes which is disable in UNIX monitoring.

Please refer following snapshot of measure details during windows performance monitoring

Here you can see that I could give values counterName, instance name which is my application process and onject name based on PerfMon.

Because of this I could collect CPU Usage of coreServer which is my application process.

Same thing I want to do in UNIX, but as I have seen measures specific attributes are disabled.

 

So I tried with creating new metric plugin which I have mentioned in my earlier discussion.

But for that I need to mention key value pairs.

So I want to know how to do that part ? 

Or is there any easiest way to achieve my objective, please let me know that then  ?

 

Thanks in advance !!!

 

Thanks And Regards,

Swanand S. Dande

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Kyle K. · Jul 07, 2015 at 01:39 AM

Hi Swanand,

What are you really trying to get out of this? Dynatrace Application Monitoring collects host health for different processes by default (Monitoring -> Hosts) will show this information for 6.0+

 

 

Edit: sorry I just noticed you need the PID, the default host health measuring will not gather the PID

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

2 People are following this question.

avatar image avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A