Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Aspire.Confluent.Kafka publishes broken metrics #6447

@gansb

Description

@gansb

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When publishing as prometheus metrics the kafka gauge and counter metrics are exported as

# TYPE messaging_kafka_consumer_queue_message_count_Number of ops (callbacks, events, etc) waiting in queue for application to serve with rd_kafka_poll() gauge
# UNIT messaging_kafka_consumer_queue_message_count_Number of ops (callbacks, events, etc) waiting in queue for application to serve with rd_kafka_poll() Number of ops (callbacks, events, etc) waiting in queue for application to serve with rd_kafka_poll()
messaging_kafka_consumer_queue_message_count_Number of ops (callbacks, events, etc) waiting in queue for application to serve with rd_kafka_poll()

These cannot be scraped by prometheus

Expected Behavior

The metrics conform to the expected format

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

It's a bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions