This repository houses samples of the recommended ways to implement module custom metrics to integrate with IoT Edge metrics monitoring with Azure Monitor.
It is organized by programming language IoT Edge modules can be written in using the Azure IoT SDKs. Even if a sample in your language of choice isn't yet available, the general approach may help you.