Skip to content

New Tag on WebMvc Metrics To Distinguish Status Code Group #13801

@michaelmcfadyen

Description

@michaelmcfadyen

This effects spring boot actuator and specifically it's metrics classes.

Situation
I want to graph a count of calls made to an api that returned a 4xx status code.

Some monitoring systems ie. Datadog do not allow wildcards when selecting tag values.

It would be useful to have a tag on those metrics that would group the response codes appropriately. For example these groupings could be:

  • 2xx -> success
  • 4xx -> client_error
  • 5xx -> server_error

So all api calls that returned a status code in the 4xx range would all have a tag "outcome: client_error"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions