From f9a29451f1e41e564640ca46b2a6674d6843f32f Mon Sep 17 00:00:00 2001 From: ManojaSomarathna Date: Tue, 16 Dec 2025 15:10:03 +0530 Subject: [PATCH 1/7] Add WRITE_XML_DECLARATION property for XML payloads in MI - Added to Synapse configuration to include XML declaration in outgoing messages. - Updated Step 1.4 of Grafana-based observability documentation to reflect this change. - This ensures compatibility with systems requiring XML declaration in payloads. --- .../setting-up-cloud-native-observability-on-a-vm.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/en/docs/observe-and-manage/setting-up-cloud-native-observability-on-a-vm.md b/en/docs/observe-and-manage/setting-up-cloud-native-observability-on-a-vm.md index ee13bdac0..422f5bfa0 100644 --- a/en/docs/observe-and-manage/setting-up-cloud-native-observability-on-a-vm.md +++ b/en/docs/observe-and-manage/setting-up-cloud-native-observability-on-a-vm.md @@ -108,6 +108,14 @@ In a clustered deployment, you can view the list of WSO2 Integrator: MI instance To enable observability for the WSO2 Integrator: MI servers, add the following Synapse handler to the `deployment.toml` file (stored in the `/conf/` folder). +### Step 1.5 - Enable XML Declaration in Payloads + +If you want your outgoing messages to include the XML declaration, add the following Axis2 property to your Synapse configuration: + +```xml + + + ```toml [[synapse_handlers]] name="CustomObservabilityHandler" From 9bb6cb431b48589742740c2c0f062d8e2308d4c5 Mon Sep 17 00:00:00 2001 From: ManojaSomarathna Date: Fri, 19 Dec 2025 22:29:15 +0530 Subject: [PATCH 2/7] Fix YAML formatting for MetricHandler configuration Corrected indentation and formatting in YAML configuration for MetricHandler. --- ...etting-up-cloud-native-observability-in-kubernetes.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md index 629c98ae5..2b76a291d 100644 --- a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md +++ b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md @@ -129,10 +129,11 @@ To expose metrics for Prometheus scraping, update your WSO2 Integrator: MI Helm ```yaml wso2: - config: - synapseHandlers: - - name: MetricHandler - class: org.wso2.micro.integrator.observability.metric.handler.MetricHandler + config: + synapseHandlers: + - name: MetricHandler + class: org.wso2.micro_integrator.observability.metric.handler.MetricHandler + ``` For details, refer to the [Configure Helm charts for WSO2 Integrator: MI]({{base_path}}/install-and-setup/setup/deployment/configuring-helm-charts/) guide. From f31baefe5744484f281e2176ad5f2c7c507d4c81 Mon Sep 17 00:00:00 2001 From: ManojaSomarathna Date: Fri, 19 Dec 2025 22:32:52 +0530 Subject: [PATCH 3/7] Fix indentation for JAVA_OPTS in WSO2 deployment config Correct indentation for JAVA_OPTS in configuration. --- .../setting-up-cloud-native-observability-in-kubernetes.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md index 2b76a291d..f23caf4b0 100644 --- a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md +++ b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md @@ -144,9 +144,10 @@ To expose metrics for Prometheus scraping, update your WSO2 Integrator: MI Helm ```yaml wso2: - deployment: - envs: - JAVA_OPTS: "-DenablePrometheusApi=true" + deployment: + envs: + JAVA_OPTS: "-DenablePrometheusApi=true" + ``` This enables the `/metric-service/metrics` endpoint exposed by WSO2 Integrator: MI for Prometheus scraping. From 1b253d2dffd6d7ad1d80a8b2c24f979f46148223 Mon Sep 17 00:00:00 2001 From: ManojaSomarathna Date: Sat, 20 Dec 2025 11:10:20 +0530 Subject: [PATCH 4/7] Refactor Prometheus Agent annotations and resources Updated the YAML configuration for Prometheus Agent to improve formatting and clarity. --- ...-cloud-native-observability-in-kubernetes.md | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md index f23caf4b0..a9d788714 100644 --- a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md +++ b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md @@ -158,11 +158,12 @@ To expose metrics for Prometheus scraping, update your WSO2 Integrator: MI Helm ```yaml wso2: - deployment: - annotations: - prometheus.io/wso2-path: "/metric-service/metrics" - prometheus.io/wso2-port: "9201" - prometheus.io/wso2-scrape: "true" + deployment: + annotations: + prometheus.io/wso2-path: "/metric-service/metrics" + prometheus.io/wso2-port: "9201" + prometheus.io/wso2-scrape: "true" + ``` ### Set up the Prometheus Agent @@ -200,11 +201,7 @@ To deploy the Prometheus Agent in your Kubernetes cluster, you need to create a name: prometheus-agent rules: - apiGroups: [""] - resources: - - pods - - nodes - - services - - endpoints + resources: ["pods", "nodes", "services", "endpoints"] verbs: ["get", "list", "watch"] --- apiVersion: rbac.authorization.k8s.io/v1 From 06271c4c4ae568a9d48a111838c6a8128041b2a8 Mon Sep 17 00:00:00 2001 From: ManojaSomarathna Date: Sat, 20 Dec 2025 11:17:12 +0530 Subject: [PATCH 5/7] Fix regex pattern in customParsers section --- .../setting-up-cloud-native-observability-in-kubernetes.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md index a9d788714..141e5f691 100644 --- a/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md +++ b/en/docs/observe-and-manage/setting-up-cloud-native-observability-in-kubernetes.md @@ -237,10 +237,8 @@ To deploy the Prometheus Agent in your Kubernetes cluster, you need to create a prometheus.yml: | global: scrape_interval: 15s - remote_write: - url: "http://host.docker.internal:9090/api/v1/write" - scrape_configs: - job_name: 'kubernetes-pods-wso2-integration' kubernetes_sd_configs: @@ -456,7 +454,7 @@ config: [PARSER] Name mi_log Format regex - Regex ^\[(?