From 0bfff355c4854ec798a6de702a3f9af4c21760c5 Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Mon, 25 Jan 2021 09:37:58 +0100 Subject: [PATCH] fix(doc): Activating the Prometheus trait at platform level must use a boolean --- .../ROOT/pages/observability/integration.adoc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/docs/modules/ROOT/pages/observability/integration.adoc b/docs/modules/ROOT/pages/observability/integration.adoc index e20b5b8427..2a35f75c90 100644 --- a/docs/modules/ROOT/pages/observability/integration.adoc +++ b/docs/modules/ROOT/pages/observability/integration.adoc @@ -19,9 +19,24 @@ Alternatively, the Prometheus trait can be enabled globally once, by updating th [source,sh] ---- -$ kubectl patch ip camel-k --type=merge -p '{"spec":{"traits":{"prometheus":{"configuration":{"enabled":"true"}}}}}' +$ kubectl patch ip camel-k --type=merge -p '{"spec":{"traits":{"prometheus":{"configuration":{"enabled":true}}}}}' ---- +Or by directly editing the `IntegrationPlatform` resource, e.g.: +[source, yaml] +---- +apiVersion: camel.apache.org/v1 +kind: IntegrationPlatform +metadata: + name: camel-k +spec: + traits: + prometheus: + configuration: + enabled: true # <1> +---- +<1> Actives the Prometheus trait at the platform level + The underlying instrumentation mechanism depends on the configured integration runtime. As a result, the set of registered metrics, as well as the naming convention they follow, also depends on it.