Skip to content

Commit

Permalink
metrics: expose seastar runtime metric
Browse files Browse the repository at this point in the history
Expose the "scheduler_runtime_ms" metric on the "public_metrics"
endpoint.
  • Loading branch information
Vlad Lazar committed Aug 4, 2022
1 parent 87e2bff commit ed34cda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v/redpanda/application.cc
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ void application::setup_metrics() {
if (!config::shard_local_cfg().disable_public_metrics()) {
seastar::metrics::replicate_metric_families(
seastar::metrics::default_handle(),
{{"io_queue_total_read_ops", ssx::metrics::public_metrics_handle},
{{"scheduler_runtime_ms", ssx::metrics::public_metrics_handle},
{"io_queue_total_read_ops", ssx::metrics::public_metrics_handle},
{"io_queue_total_write_ops", ssx::metrics::public_metrics_handle},
{"memory_allocated_memory", ssx::metrics::public_metrics_handle},
{"memory_free_memory", ssx::metrics::public_metrics_handle}})
Expand Down

0 comments on commit ed34cda

Please sign in to comment.