Skip to content

Commit

Permalink
Assert more metrics (#15802)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorentClarret authored Sep 11, 2023
1 parent 81a5765 commit 59724ac
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion strimzi/tests/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@
)

USER_OPERATOR_METRICS = (
"strimzi.user_operator.jvm.gc.memory_promoted_bytes.count",
"strimzi.user_operator.jvm.buffer.count_buffers",
"strimzi.user_operator.jvm.buffer.memory_used_bytes",
"strimzi.user_operator.jvm.buffer.total_capacity_bytes",
Expand All @@ -174,6 +173,7 @@
"strimzi.user_operator.jvm.gc.live_data_size_bytes",
"strimzi.user_operator.jvm.gc.max_data_size_bytes",
"strimzi.user_operator.jvm.gc.memory_allocated_bytes.count",
"strimzi.user_operator.jvm.gc.memory_promoted_bytes.count",
"strimzi.user_operator.jvm.gc.pause_seconds.count",
"strimzi.user_operator.jvm.gc.pause_seconds.max",
"strimzi.user_operator.jvm.gc.pause_seconds.sum",
Expand All @@ -191,7 +191,9 @@
"strimzi.user_operator.reconciliations.duration_seconds.max",
"strimzi.user_operator.reconciliations.duration_seconds.sum",
"strimzi.user_operator.reconciliations.failed.count",
"strimzi.user_operator.reconciliations.locked.count",
"strimzi.user_operator.reconciliations.periodical.count",
"strimzi.user_operator.reconciliations.successful.count",
"strimzi.user_operator.resources",
"strimzi.user_operator.system.cpu_count",
"strimzi.user_operator.system.cpu_usage",
Expand Down Expand Up @@ -223,5 +225,7 @@
"strimzi.cluster_operator.vertx.http_server.errors.count",
"strimzi.cluster_operator.vertx.http_server.request_resets.count",
"strimzi.topic_operator.vertx.http_server.errors.count",
"strimzi.user_operator.reconciliations.locked.count",
"strimzi.user_operator.reconciliations.periodical.count",
"strimzi.user_operator.reconciliations.successful.count",
)
6 changes: 6 additions & 0 deletions strimzi/tests/fixtures/0.34.0/user_operator_metrics.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ system_cpu_count 5.0
# HELP strimzi_reconciliations_failed_total Number of reconciliations done by the operator for individual resources which failed
# TYPE strimzi_reconciliations_failed_total counter
strimzi_reconciliations_failed_total{kind="KafkaUser",namespace="kafka",selector="strimzi.io/cluster=my-cluster",} 18.0
# HELP strimzi_reconciliations_locked_total Number of reconciliations skipped because another reconciliation for the same resource was still running
# TYPE strimzi_reconciliations_locked_total counter
strimzi_reconciliations_locked_total{kind="KafkaUser",namespace="kafka",selector="strimzi.io/cluster=my-cluster",} 18.0
# HELP strimzi_reconciliations_successful_total Number of reconciliations done by the operator for individual resources which were successful
# TYPE strimzi_reconciliations_successful_total counter
strimzi_reconciliations_successful_total{kind="KafkaUser",namespace="kafka",selector="strimzi.io/cluster=my-cluster",} 18.0
# HELP jvm_buffer_count_buffers An estimate of the number of buffers in the pool
# TYPE jvm_buffer_count_buffers gauge
jvm_buffer_count_buffers{id="mapped - 'non-volatile memory'",} 0.0
Expand Down

0 comments on commit 59724ac

Please sign in to comment.