Closed MaximeD closed 2 years ago
Is there any way to amend our internals so we only explicitly add the label where we need it vs removing it later on?
Sure thing!
I reverted part of what was done in #148, that is the status
label is now again at the root of obj
instead of being nested in default_labels
.
cool, looks great!
Awesome! By the way, do you plan to release a new version of this gem in the coming days?
Thank you again!
I have been a bit afraid to do a new release cause we had a few breaking changes ... that said .. got to rip off the cord at some point!
Yes, only one way to battle test the new changes I guess!
Another changes that makes harder to upgrade our dashboards. Thanks.
We used to have a dashboard that shows duration per status code, as sometimes "sideeffects" (3rd Parties) can influence our app which is often seen very well isolated for a status code we're returning.
The
status
label is included in every metrics, and not only inhttp_requests_total
, even though the README states thatThis can be a problem as this
status
label can quickly increase the cardinality of the metrics.This change of behavior was introduced in #148. But I believe this is not the best pattern as it is not useful to have it everywhere, and it can quickly blow up the cardinality. See those slides about Containing your Cardinality, especially page 14.