prometheus method
Returns all metrics gathered up to this point in prometheus format.
Result of this call can be exposed directly to prometheus scraping endpoint
globalLabels
are the labels to be added to all metrics.
Implementation
Future<String> prometheus({Map<String, String>? globalLabels}) async {
final result = await _engine.metrics(
globalLabels: globalLabels, format: MetricsFormat.prometheus);
return result.toString();
}