]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
stats: Revert the previous OpenMetrics info type revert
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 27 Jul 2021 17:13:24 +0000 (20:13 +0300)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 28 Jul 2021 21:56:21 +0000 (21:56 +0000)
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

src/stats/stats-service-openmetrics.c

index 5ab1a121b0f6ffa975c2ef7514fd9589b48ca943..9c50592e2eb0f2850712b570d676181d73282464 100644 (file)
@@ -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");
 }