/// <summary>
        ///
        /// </summary>
        /// <param name="currentMetricsData"></param>
        /// <param name="healthStatus"></param>
        /// <returns></returns>
        public static string RenderMetrics(MetricsData currentMetricsData, Func <HealthStatus> healthStatus)
        {
            var report = new PrometheusReport();

            report.RunReport(currentMetricsData, healthStatus, CancellationToken.None);
            return(report._reportText.ToString());
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="config"></param>
 /// <param name="path"></param>
 /// <param name="encoding"></param>
 /// <returns></returns>
 public static MetricsEndpointReports WithPrometheusEndpointReport(this MetricsEndpointReports config,
                                                                   string path, Encoding encoding)
 {
     return(config.WithEndpointReport(path, (d, h, c) => new MetricsEndpointResponse(PrometheusReport.RenderMetrics(d, h), "text/plain", encoding)));
 }