Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
05-17-2023 08:35 AM
Is there a way to specify which metrics should the machine agent send to the controller; for example If I have server visibility enabled and just want to see volume metrics for a server; can I edit any xml file to achieve this?
Thanks!
05-19-2023 09:20 AM - edited 05-19-2023 09:21 AM
Hi @Rohan.Vaikkath ,
I never tried to disable default metrics in Machine Agent, But I feel that its possible. I would explore option.
• Go to path --> Machine Agent / monitors / Hardware Monitor
• Open Monitor.xml --> You will see the script name for the os type.
• Open respective script for the OS type.
• For example if it Mac OS type then I will open... macos-stat.sh , and Comment the metrics which I don't want.
## Output area
echo "name=Hardware Resources|CPU|%Idle,aggregator=OBSERVATION,value="$CPU_IDLE
echo "name=Hardware Resources|CPU|%Busy,aggregator=OBSERVATION,value="$CPU_BUSY
echo "name=Hardware Resources|Memory|Total (MB),aggregator=OBSERVATION,value="$MEM_TOTAL_MB
echo "name=Hardware Resources|Memory|Used (MB),aggregator=OBSERVATION,value="$MEM_LOGICAL_USED_MB
echo "name=Hardware Resources|Memory|Free (MB),aggregator=OBSERVATION,value="$MEM_LOGICAL_FREE_MB
echo "name=Hardware Resources|Memory|Used %,aggregator=OBSERVATION,value="$MEM_USED_PC
echo "name=Hardware Resources|Memory|Free %,aggregator=OBSERVATION,value="$MEM_FREE_PC
echo "name=Hardware Resources|Network|Incoming packets/sec,aggregator=OBSERVATION,value="$NET_PACKETS_IN
echo "name=Hardware Resources|Network|Outgoing packets/sec,aggregator=OBSERVATION,value="$NET_PACKETS_OUT
echo "name=Hardware Resources|Network|Incoming KB/sec,aggregator=OBSERVATION,value="$NET_KBYTES_IN
echo "name=Hardware Resources|Network|Outgoing KB/sec,aggregator=OBSERVATION,value="$NET_KBYTES_OUT
echo "name=Hardware Resources|Disks|Reads/sec,aggregator=OBSERVATION,value="$READS
echo "name=Hardware Resources|Disks|Writes/sec,aggregator=OBSERVATION,value="$WRITES
echo "name=Hardware Resources|Disks|KB read/sec,aggregator=OBSERVATION,value="$READS_KB
echo "name=Hardware Resources|Disks|KB written/sec,aggregator=OBSERVATION,value="$WRITES_KB
done
Please try this and let us know how it goes.
06-13-2023 04:19 PM
Hello @Rohan.Vaikkath,
The answer to your concern is NO. It is not possible to get only a few metrics that you would like to see from the machine agent. It will run the collector script which is built into the machineagent.jar file which you hit while starting the agent. So we can not restrict the machine agent metrics.
@Sunil.Agarwal the files inside the monitor's folder is something related to calculations of how the agent calculates those particular metrics.
Best Regards,
Rajesh Ganapavarapu
User | Count |
---|---|
3 | |
2 | |
2 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form