fix typo (#12176)
diff --git a/docs/en/setup/backend/backend-activemq-monitoring.md b/docs/en/setup/backend/backend-activemq-monitoring.md
index 0f9f38a..912e7dc 100644
--- a/docs/en/setup/backend/backend-activemq-monitoring.md
+++ b/docs/en/setup/backend/backend-activemq-monitoring.md
@@ -59,7 +59,7 @@
|--------------------------------------------|-----------|-------------------------------------------------------------------------|----------------------------------------------------------------------------------------------- |-------------------------|
| Uptime | sec | meter_activemq_broker_uptime | Uptime of the broker in day. | JMX Prometheus Exporter |
| State | | meter_activemq_broker_state | If slave broker 1 else 0. | JMX Prometheus Exporter |
-| Current Connentions | Count | meter_activemq_broker_current_connentions | The number of clients connected to the broker currently. | JMX Prometheus Exporter |
+| Current Connections | Count | meter_activemq_broker_current_connections | The number of clients connected to the broker currently. | JMX Prometheus Exporter |
| Current Producer Count | Count | meter_activemq_broker_current_producer_count | The number of producers currently attached to the broker. | JMX Prometheus Exporter |
| Current Consumer Count | Count | meter_activemq_broker_current_consumer_count | The number of consumers consuming messages from the broker. | JMX Prometheus Exporter |
| Producer Count | Count | meter_activemq_broker_producer_count | Number of message producers active on destinations. | JMX Prometheus Exporter |
@@ -104,4 +104,4 @@
You can customize your own metrics/expression/dashboard panel.
The metrics definition and expression rules are found
in `otel-rules/activemq/activemq-cluster.yaml, otel-rules/activemq/activemq-broker.yaml, otel-rules/activemq/activemq-destination.yaml`.
-The ActiveMQ dashboard panel configurations are found in `ui-initialized-templates/activemq`.
\ No newline at end of file
+The ActiveMQ dashboard panel configurations are found in `ui-initialized-templates/activemq`.
diff --git a/oap-server/server-starter/src/main/resources/otel-rules/activemq/activemq-broker.yaml b/oap-server/server-starter/src/main/resources/otel-rules/activemq/activemq-broker.yaml
index c3a2cd2..8a1ea65 100644
--- a/oap-server/server-starter/src/main/resources/otel-rules/activemq/activemq-broker.yaml
+++ b/oap-server/server-starter/src/main/resources/otel-rules/activemq/activemq-broker.yaml
@@ -39,7 +39,7 @@
- name: state
exp: org_apache_activemq_Broker_Slave.sum(['cluster','brokerName','service_instance_id'])
# The number of clients connected to the broker currently.
- - name: current_connentions
+ - name: current_connections
exp: org_apache_activemq_Broker_CurrentConnectionsCount.sum(['cluster','brokerName','service_instance_id'])
# The number of producers currently attached to the broker.
- name: current_producer_count
diff --git a/oap-server/server-starter/src/main/resources/ui-initialized-templates/activemq/activemq-broker.json b/oap-server/server-starter/src/main/resources/ui-initialized-templates/activemq/activemq-broker.json
index c5094f6..a7545dd 100644
--- a/oap-server/server-starter/src/main/resources/ui-initialized-templates/activemq/activemq-broker.json
+++ b/oap-server/server-starter/src/main/resources/ui-initialized-templates/activemq/activemq-broker.json
@@ -60,7 +60,7 @@
"i": "2",
"type": "Widget",
"expressions": [
- "meter_activemq_broker_current_connentions"
+ "meter_activemq_broker_current_connections"
],
"graph": {
"type": "Area",
@@ -352,4 +352,4 @@
"isRoot": false
}
}
-]
\ No newline at end of file
+]
diff --git a/test/e2e-v2/cases/activemq/activemq-cases.yaml b/test/e2e-v2/cases/activemq/activemq-cases.yaml
index 1ea23b5..433b7ba 100644
--- a/test/e2e-v2/cases/activemq/activemq-cases.yaml
+++ b/test/e2e-v2/cases/activemq/activemq-cases.yaml
@@ -59,7 +59,7 @@
expected: expected/metrics-has-value-label-serviceinstanceid.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_activemq_broker_state --service-name=activemq::activemq-cluster --instance-name=activemq-broker
expected: expected/metrics-has-value-label-serviceinstanceid.yml
- - query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_activemq_broker_current_connentions --service-name=activemq::activemq-cluster --instance-name=activemq-broker
+ - query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_activemq_broker_current_connections --service-name=activemq::activemq-cluster --instance-name=activemq-broker
expected: expected/metrics-has-value-label-serviceinstanceid.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_activemq_broker_current_producer_count --service-name=activemq::activemq-cluster --instance-name=activemq-broker
expected: expected/metrics-has-value-label-serviceinstanceid.yml
@@ -130,4 +130,4 @@
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_activemq_destination_average_message_size --service-name=activemq::activemq-cluster --endpoint-name=testQueue
expected: expected/metrics-has-value-label-destinationtype.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_activemq_destination_max_message_size --service-name=activemq::activemq-cluster --endpoint-name=testQueue
- expected: expected/metrics-has-value-label-destinationtype.yml
\ No newline at end of file
+ expected: expected/metrics-has-value-label-destinationtype.yml