我应该怎么做才能获得为直方图定义的 buckets 数组的长度? 我在普罗米修斯中用我的自定义桶定义了一个直方图指标。但是,在对我的所有指标运行收集器时,直方图的 Buckets 字段显示
mf.Buckets undefined (type *io_prometheus_client.MetricFamily has no field or method Buckets)
需要帮助通过我的自定义收集器访问直方图的 Buckets 字段的长度。
我希望通过直方图指标的 *mf.Buckets 获得桶长度。