Skip to content

MetricFamily has no metrics for type:SUMMARY #55

@mrgleeco

Description

@mrgleeco

When I examine the GET /metrics endpoint i see this in the output:

An error has occurred during metrics encoding:

MetricFamily has no metrics: name:"usage_summary" help:"Report Usage Summary" type:SUMMARY

I've identified the sender and it is a cronjob that is every ~24h which sends the summary type. So I see this error only sometimes. If I had to guess, the nil here is the episodic cause/effect. Is this something that could be handled more gracefully with an empty struct?

Or maybe it is possible to suppress the error in the /metrics output?

As it is now, the error acts as a DoS of any user of the aggregation gateway stats as consumers encounter the error in the endpoint's invalid format and fail.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions