Skip to content

prometheus output for topN is repeating help message, breaking scrapers #143

@weyrick

Description

@weyrick

The help message is repeated for each item in the top list, rather than once for the metric

# HELP dns_top_udp_ports Top UDP source port on the query side of a transaction
# TYPE dns_top_udp_ports gauge
dns_top_udp_ports{instance="gw",name="51837"} 2
# HELP dns_top_udp_ports Top UDP source port on the query side of a transaction
# TYPE dns_top_udp_ports gauge
dns_top_udp_ports{instance="gw",name="35247"} 2
# HELP dns_top_udp_ports Top UDP source port on the query side of a transaction
# TYPE dns_top_udp_ports gauge
dns_top_udp_ports{instance="gw",name="46746"} 2
# HELP dns_top_udp_ports Top UDP source port on the query side of a transaction
# TYPE dns_top_udp_ports gauge

should be

# HELP dns_top_udp_ports Top UDP source port on the query side of a transaction
# TYPE dns_top_udp_ports gauge
dns_top_udp_ports{instance="gw",name="51837"} 2
dns_top_udp_ports{instance="gw",name="35247"} 2
dns_top_udp_ports{instance="gw",name="46746"} 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions