'sending jmeter variable as metrics to prometheus endpoint

We are using jmeter-prometheus-plugin to populate data to prometheus end point. I want to send the value of a specific Jmeter variable to the metrics endpoint (as a metrics), the only way available is as a label as per the documentation. How can i achieve this ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source