Overview
When running monitoring.sh, you can use the -p parameter to filter and display specific properties from the collector output (for example, cluster-info). However, the syntax requires a specific format.
This article explains the correct usage and provides examples.
Correct Syntax
To request a specific property, use:
-p propertyId:<propertyName>For example, to retrieve the cluster name:
monitoring.sh -d cluster-info -p propertyId:name
Another example:
\vds\bin>monitoring.sh -d cluster-info -p propertyId:vdsLeaderHostName
Retrieving Multiple Properties
When retrieving multiple property values, you must repeat the -p flag for each property.
Comma-separated values will not work.
Example — to retrieve name, upTime, and vdsLeaderHostName:
\vds\bin>monitoring.bat -d cluster-info -p propertyId:name -p propertyId:upTime -p propertyId:vdsLeaderHostNameSample Output
Key Notes
Always prefix values with
propertyId:.Use multiple
-pflags if you need multiple properties.This syntax applies generally across collectors supported by
monitoring.sh.
Comments
Please sign in to leave a comment.