Skip to content

checkHistogram metrics are over-expanded, recommended to downgrade or have a disable option #2120

@potterhe

Description

@potterhe

Is your feature request related to a problem? Please describe.

When meter otlp is enabled, the number of check_amount_buckets in the metrics pushed to otlp-collector (such as prometheus 3.x) is particularly large. The reason is that it has a label "subject_id" with user granularity. When the user reaches the thousand level, the combination with the label "le" will cause the metrics to exceed the ten thousand level. Add check_amount_sum and check_amount_count, and there will be more. From prometheus, the metrics look like this

check_amount_bucket{job="permify", le="7500", subject_id="xxx", subject_type="user"}
check_amount_sum{job="permify", subject_id="xxx", subject_type="user"}
check_amount_count{job="permify", subject_id="xxx", subject_type="user"}

Describe the solution you'd like

  • a option to disable

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions