Hi Venkata:
I wrote a Python script to send metrics through the StatsD sensor in the agent.
In Python, we use the socket module because this module provides an interface for working with network communication (to communicate using protocols like TCP or UDP).
Review the Monitoring StatsD documentation:
https://www.ibm.com/docs/en/instana-observability/current?topic=technologies-monitoring-statsd
Then, you will access the custom metric from the custom dashboard.
Regards,
Christian