From: Timo Sirainen Date: Tue, 27 Jul 2021 17:13:24 +0000 (+0300) Subject: stats: Revert the previous OpenMetrics info type revert X-Git-Tag: 2.3.17~259 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=23388cf96e21f069d04f8c83c074872e74f7b53f;p=thirdparty%2Fdovecot%2Fcore.git stats: Revert the previous OpenMetrics info type revert The OpenMetrics standard does support "info" type. The original Prometheus format doesn't support it, but our support is for OpenMetrics. They don't even have any overlapping types that could be used for this, so the only other possibility would have been to make this configurable. Reverts 55a519d18fbbb8435854f1fcf2642b908d6fc074 --- diff --git a/src/stats/stats-service-openmetrics.c b/src/stats/stats-service-openmetrics.c index 5ab1a121b0..9c50592e2e 100644 --- a/src/stats/stats-service-openmetrics.c +++ b/src/stats/stats-service-openmetrics.c @@ -105,7 +105,7 @@ static void openmetrics_export_dovecot(string_t *out) str_append(out, "# HELP dovecot_build " "Dovecot build information\n"); - str_append(out, "# TYPE dovecot_build untyped\n"); + str_append(out, "# TYPE dovecot_build info\n"); str_append(out, "dovecot_build_info{"OPENMETRICS_BUILD_INFO"} 1\n"); }