Skip to content

Commit

Permalink
Fix Kafka e2e format and typos (#11471)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhuWang1112 authored Nov 1, 2023
1 parent ced3f22 commit 19a7fa5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 26 deletions.
1 change: 1 addition & 0 deletions docs/en/changes/changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* Add a component ID for Fiber (ID=5021).
* BanyanDBStorageClient: Add `define(Property property, PropertyStore.Strategy strategy)` API.
* Support GraalVM native-image (Experimental).
* Correct the file format and fix typos in the filenames for monitoring Kafka's e2e tests.

#### UI

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ results:
- key: _
value: "G1 Old Generation"
values:
{ { - contains .values } }
- id: { { notEmpty .id } }
value: { { .value } }
{{- contains .values }}
- id: {{ notEmpty .id }}
value: {{ .value }}
traceid: null
- id: { { notEmpty .id } }
- id: {{ notEmpty .id }}
value: null
traceid: null
{ { - end } }
{{- end}}
{{- end}}
error: null
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ results:
- key: _
value: "Fetch"
values:
{ { - contains .values } }
- id: { { notEmpty .id } }
value: { { .value } }
{{- contains .values }}
- id: {{ notEmpty .id }}
value: {{ .value }}
traceid: null
- id: { { notEmpty .id } }
- id: {{ notEmpty .id }}
value: null
traceid: null
{ { - end } }
{{- end}}
{{- end}}
error: null
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ results:
- key: _
value: "FetchFollower"
values:
{ { - contains .values } }
- id: { { notEmpty .id } }
value: { { .value } }
{{- contains .values }}
- id: {{ notEmpty .id }}
value: {{ .value }}
traceid: null
- id: { { notEmpty .id } }
- id: {{ notEmpty .id }}
value: null
traceid: null
{ { - end } }
{{- end}}
- metric:
labels:
- key: _
value: "FetchConsumer"
values:
{ { - contains .values } }
- id: { { notEmpty .id } }
value: { { .value } }
{{- contains .values }}
- id: {{ notEmpty .id }}
value: {{ .value }}
traceid: null
- id: { { notEmpty .id } }
- id: {{ notEmpty .id }}
value: null
traceid: null
{ { - end } }
{{- end}}
{{- end}}
error: null
10 changes: 4 additions & 6 deletions test/e2e-v2/cases/kafka/kafka-monitoring/kafka-cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,12 @@ cases:
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_kafka_broker_garbage_collector_count --service-name=kafka::kafka-cluster --instance-name=broker1:7071
expected: expected/metrics-has-value-gc-label.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_kafka_broker_request_queue_time_ms --service-name=kafka::kafka-cluster --instance-name=broker1:7071
expected: expected/metrics-has-value-scource-label.yml
expected: expected/metrics-has-value-source-label.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_kafka_broker_remote_time_ms --service-name=kafka::kafka-cluster --instance-name=broker1:7071
expected: expected/metrics-has-value-scource-label.yml
expected: expected/metrics-has-value-source-label.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_kafka_broker_response_queue_time_ms --service-name=kafka::kafka-cluster --instance-name=broker1:7071
expected: expected/metrics-has-value-scource-label.yml
expected: expected/metrics-has-value-source-label.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_kafka_broker_response_send_time_ms --service-name=kafka::kafka-cluster --instance-name=broker1:7071
expected: expected/metrics-has-value-scource-label.yml
expected: expected/metrics-has-value-source-label.yml
- query: swctl --display yaml --base-url=http://${oap_host}:${oap_12800}/graphql metrics exec --expression=meter_kafka_broker_network_processor_avg_idle_percent --service-name=kafka::kafka-cluster --instance-name=broker1:7071
expected: expected/metrics-has-value.yml


0 comments on commit 19a7fa5

Please sign in to comment.